diff --git a/pages/highWay/runData/form.vue b/pages/highWay/runData/form.vue
index c49945e..2125d03 100644
--- a/pages/highWay/runData/form.vue
+++ b/pages/highWay/runData/form.vue
@@ -206,20 +206,15 @@
userInfo: {},
yoyMom: {},//同比环比
showStaion: false,//展开收起
+ pageType: '',
}
},
onLoad(options) {
this.userInfo = uni.getStorageSync('userInfo');
if (options.type == 'add') {
+ this.pageType = 'add';
let now = new Date();
this.form.statDate = getDateStr(now, -1);//默认前一天
- //11:00-13:30 默认选择0-12
- let dateStr = getDateStr(now, 0);
- if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) {
- this.form.statPeriod = '0012';
- }else{
- this.form.statPeriod = '03'; //默认0-24
- }
this.queryYoYMom();
this.queryStation('add');
} else if (options.item) {
@@ -400,6 +395,20 @@
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse(
new Date()), {}, 'GET').then(res => {
this.array = res.data;
+ if(this.pageType == 'add') {
+ let now = new Date();
+ //11:00-13:30 默认选择0-12
+ let dateStr = getDateStr(now, 0);
+ if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) {
+ this.form.statPeriod = '0012';
+ this.index = this.array.findIndex(item => item.dictValue == '0012');
+ }else{
+ this.form.statPeriod = '03'; //默认0-24
+ this.index = this.array.findIndex(item => item.dictValue == '03');
+ }
+ }else{
+ this.index = this.array.findIndex(item => item.dictValue == this.form.statPeriod);
+ }
})
},
//确认提交
diff --git a/pages/highWay/runStatusData/form.vue b/pages/highWay/runStatusData/form.vue
index 9feb519..ea9d0d7 100644
--- a/pages/highWay/runStatusData/form.vue
+++ b/pages/highWay/runStatusData/form.vue
@@ -1,804 +1,838 @@
-
-
-
- 如有填报问题,请咨询公共服务中心
- 中心值班电话:66007587
-
-
- 基本信息
-
- 管理单位名称:
-
- {{form.organizationName}}
-
-
-
- 统计日期:
-
-
- {{form.statDate?form.statDate:'请选择时段'}}
-
-
-
-
-
- 统计时段:
-
-
- {{index>-1?array[index].dictLabel:'请选择时段'}}
-
-
-
-
-
- 高速开闭情况:
-
-
- {{form.isOpen == 1 ? '开放' : form.isOpen === 0 ? '关闭' : '请选择'}}
-
-
-
-
-
- 已处理事故数量:
-
-
-
-
-
- 正在处理事故数量:
-
-
-
-
-
- 事故数量:
-
- {{form.accidentCount}}
-
-
-
- 拥堵数量:
-
- {{form.congestionCount}}
-
-
-
- 伤者人数:
-
-
-
-
-
- 亡者人数:
-
-
-
-
-
-
-
-
- 拥堵信息详情
- 事故信息详情
-
-
-
-
- 拥堵信息-{{index+1}}
-
-
-
- 高速公路名称:
-
- changeHighway(e, 'highwayCongestionDetailDTOS', index)">
- {{item.highwayName ? item.highwayName : '请选择'}}
-
-
-
-
-
- 拥堵发生时间:
-
-
- {{item.congestionStartTime?item.congestionStartTime:'请选择'}}
-
-
-
-
-
- 拥堵处理结束时间:
-
-
- {{item.congestionEndTime?item.congestionEndTime:'请选择'}}
-
-
-
-
-
- 发生位置:
-
-
-
-
-
- 拥堵内容:
-
-
-
-
-
- 阻断/拥堵持续时间:
-
-
-
-
-
- 截至当前拥堵空间范围(桩号及方向):
-
-
-
-
-
- 处置工作开展情况:
-
-
-
-
-
- 补充说明:
-
-
-
-
-
-
-
-
-
-
- 事故信息-{{index+1}}
-
-
-
- 高速公路名称:
-
- changeHighway(e, 'highwayCongestionDetailDTOS', index)">
- {{item.highwayName ? item.highwayName : '请选择'}}
-
-
-
-
-
- 事故发生时间:
-
-
- {{item.accidentStartTime?item.accidentStartTime:'请选择'}}
-
-
-
-
-
- 事故处理结束时间:
-
-
- {{item.accidentEndTime?item.accidentEndTime:'请选择'}}
-
-
-
-
-
- 发生位置:
-
-
-
-
-
- 事故内容:
-
-
-
-
-
- 事故等级:
-
- changeAccidentLevel(e, 'highwayCongestionDetailDTOS', index)">
- {{item.accidentLevel ? item.accidentLevel : '请选择'}}
-
-
-
-
-
- 阻断/拥堵持续时间:
-
-
-
-
-
- 截至当前拥堵空间范围(桩号及方向):
-
-
-
-
-
- 处置工作开展情况:
-
-
-
-
-
- 补充说明:
-
-
-
-
-
-
- 增行
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+ 如有填报问题,请咨询公共服务中心
+ 中心值班电话:66007587
+
+
+ 基本信息
+
+ 管理单位名称:
+
+ {{form.organizationName}}
+
+
+
+ 统计日期:
+
+
+ {{form.statDate?form.statDate:'请选择时段'}}
+
+
+
+
+
+ 统计时段:
+
+
+ {{index>-1?array[index].dictLabel:'请选择时段'}}
+
+
+
+
+
+ 高速开闭情况:
+
+
+ {{form.isOpen == 1 ? '开放' : form.isOpen === 0 ? '关闭' : '请选择'}}
+
+
+
+
+
+ 已处理事故数量:
+
+
+
+
+
+ 正在处理事故数量:
+
+
+
+
+
+ 事故数量:
+
+ {{form.accidentCount}}
+
+
+
+ 拥堵数量:
+
+ {{form.congestionCount}}
+
+
+
+ 伤者人数:
+
+
+
+
+
+ 亡者人数:
+
+
+
+
+
+
+
+
+ 拥堵信息详情
+ 事故信息详情
+
+
+
+
+ 拥堵信息-{{index+1}}
+
+
+
+ 高速公路名称:
+
+ changeHighway(e, 'highwayCongestionDetailDTOS', index)">
+ {{item.highwayName ? item.highwayName : '请选择'}}
+
+
+
+
+
+ 拥堵发生时间:
+
+
+ {{item.congestionStartTime?item.congestionStartTime:'请选择'}}
+
+
+
+
+
+ 拥堵处理结束时间:
+
+
+ {{item.congestionEndTime?item.congestionEndTime:'请选择'}}
+
+
+
+
+
+ 发生位置:
+
+
+
+
+
+ 拥堵内容:
+
+
+
+
+
+
+ 阻断/拥堵持续时间:
+
+
+
+
+
+ 截至当前拥堵空间范围(桩号及方向):
+
+
+
+
+
+ 处置工作开展情况:
+
+
+
+
+
+ 补充说明:
+
+
+
+
+
+
+
+
+
+
+ 事故信息-{{index+1}}
+
+
+
+ 高速公路名称:
+
+ changeHighway(e, 'highwayCongestionDetailDTOS', index)">
+ {{item.highwayName ? item.highwayName : '请选择'}}
+
+
+
+
+
+ 事故发生时间:
+
+
+ {{item.accidentStartTime?item.accidentStartTime:'请选择'}}
+
+
+
+
+
+ 事故处理结束时间:
+
+
+ {{item.accidentEndTime?item.accidentEndTime:'请选择'}}
+
+
+
+
+
+ 发生位置:
+
+
+
+
+
+ 事故内容:
+
+
+
+
+
+
+ 事故等级:
+
+ changeAccidentLevel(e, 'highwayCongestionDetailDTOS', index)">
+ {{item.accidentLevel ? item.accidentLevel : '请选择'}}
+
+
+
+
+
+ 阻断/拥堵持续时间:
+
+
+
+
+
+ 截至当前拥堵空间范围(桩号及方向):
+
+
+
+
+
+ 处置工作开展情况:
+
+
+
+
+
+ 补充说明:
+
+
+
+
+
+
+ 增行
+
+
+
+
+
+
+
+
+
diff --git a/pages/railway/railwayRunData/form.vue b/pages/railway/railwayRunData/form.vue
index cbe2927..6d3bcbd 100644
--- a/pages/railway/railwayRunData/form.vue
+++ b/pages/railway/railwayRunData/form.vue
@@ -1,672 +1,730 @@
-
-
-
- 如有填报问题,请咨询公共服务中心
- 中心值班电话:66007587
-
-
- 基本信息
-
- 车站名称:
-
-
- {{form.railwayName?form.railwayName:'请选择'}}
-
-
-
-
-
- 统计日期:
-
-
- {{form.statDate?form.statDate:'请选择'}}
-
-
-
-
-
- 统计时段:
-
-
- {{index>-1?array[index].dictLabel:'请选择'}}
-
-
-
-
-
-
-
-
-
- 进青岛车次信息
-
-
- 终到车次(辆):
-
-
-
-
-
- 过路车次:
-
-
-
-
-
-
-
- 终到车次环比(%)
-
- {{form.inRailwayYomDo ? form.inRailwayYomDo.toFixed(2) : ''}}
-
-
-
-
- 终到车次同比(%)
-
- {{form.inRailwayMomDo ? form.inRailwayMomDo.toFixed(2) : ''}}
-
-
-
-
- 人数(人):
-
-
-
-
-
-
-
- 人数环比(%)
-
- {{form.inPepoleYoyDo ? form.inPepoleYoyDo.toFixed(2) : ''}}
-
-
-
-
- 人数同比(%)
-
- {{form.inPepoleMomDo ? form.inPepoleMomDo.toFixed(2) : ''}}
-
-
-
-
- 备注:
-
-
-
-
-
-
-
-
-
- 出青岛车次信息
-
-
- 始发车次(辆):
-
-
-
-
-
- 过路车次:
-
-
-
-
-
-
-
- 始发车次环比(%)
-
- {{form.outRailwayYomDo ? form.outRailwayYomDo.toFixed(2) : ''}}
-
-
-
-
- 始发车次同比(%)
-
- {{form.outRailwayMomDo ? form.outRailwayMomDo.toFixed(2) : ''}}
-
-
-
-
- 人数(人):
-
-
-
-
-
-
-
- 人数环比(%)
-
- {{form.outPepoleYoyDo ? form.outPepoleYoyDo.toFixed(2) : ''}}
-
-
-
-
- 人数同比(%)
-
- {{form.outPepoleMomDo ? form.outPepoleMomDo.toFixed(2) : ''}}
-
-
-
-
- 备注:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+ 如有填报问题,请咨询公共服务中心
+ 中心值班电话:66007587
+
+
+ 基本信息
+
+ 车站名称:
+
+
+ {{form.railwayName?form.railwayName:'请选择'}}
+
+
+
+
+
+ 统计日期:
+
+
+ {{form.statDate?form.statDate:'请选择'}}
+
+
+
+
+
+ 统计时段:
+
+
+ {{index>-1?array[index].dictLabel:'请选择'}}
+
+
+
+
+
+
+
+
+
+ 进青岛车次信息
+
+
+ 终到车次(辆):
+
+
+
+
+
+
+ 过路车次:
+
+
+
+
+
+
+
+
+
+ 终到车次环比(%)
+
+ {{form.inRailwayYomDo ? form.inRailwayYomDo.toFixed(2) : ''}}
+
+
+
+
+ 终到车次同比(%)
+
+ {{form.inRailwayMomDo ? form.inRailwayMomDo.toFixed(2) : ''}}
+
+
+
+
+ 人数(人):
+
+
+
+
+
+
+
+
+ 人数环比(%)
+
+
+ {{form.inPepoleYoyDo ? form.inPepoleYoyDo.toFixed(2) : ''}}
+
+
+
+
+ 人数同比(%)
+
+ {{form.inPepoleMomDo ? form.inPepoleMomDo.toFixed(2) : ''}}
+
+
+
+
+ 备注:
+
+
+
+
+
+
+
+
+
+ 出青岛车次信息
+
+
+ 始发车次(辆):
+
+
+
+
+
+
+ 过路车次:
+
+
+
+
+
+
+
+
+
+ 始发车次环比(%)
+
+ {{form.outRailwayYomDo ? form.outRailwayYomDo.toFixed(2) : ''}}
+
+
+
+
+ 始发车次同比(%)
+
+ {{form.outRailwayMomDo ? form.outRailwayMomDo.toFixed(2) : ''}}
+
+
+
+
+ 人数(人):
+
+
+
+
+
+
+
+
+ 人数环比(%)
+
+
+ {{form.outPepoleYoyDo ? form.outPepoleYoyDo.toFixed(2) : ''}}
+
+
+
+
+ 人数同比(%)
+
+ {{form.outPepoleMomDo ? form.outPepoleMomDo.toFixed(2) : ''}}
+
+
+
+
+ 备注:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/railway/runStatus/form.vue b/pages/railway/runStatus/form.vue
index ed4e14f..7132ad7 100644
--- a/pages/railway/runStatus/form.vue
+++ b/pages/railway/runStatus/form.vue
@@ -97,14 +97,7 @@
if (options.type == 'add') {
this.pageType = 'add';
let now = new Date();
- this.form.statDate = getDateStr(now, -1); //默认前一天
- //11:00-13:30 默认选择0-12
- let dateStr = getDateStr(now, 0);
- if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) {
- this.form.statPeriod = '0012';
- }else{
- this.form.statPeriod = '03'; //默认0-24
- }
+ this.form.statDate = getDateStr(now, -1); //默认前一天
} else if (options.item) {
this.form = JSON.parse(options.item);
console.log(this.form);
@@ -162,7 +155,21 @@
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date
.parse(
new Date()), {}, 'GET').then(res => {
- this.array = res.data;
+ this.array = res.data;
+ if(this.pageType == 'add') {
+ let now = new Date();
+ //11:00-13:30 默认选择0-12
+ let dateStr = getDateStr(now, 0);
+ if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) {
+ this.form.statPeriod = '0012';
+ this.index = this.array.findIndex(item => item.dictValue == '0012');
+ }else{
+ this.form.statPeriod = '03'; //默认0-24
+ this.index = this.array.findIndex(item => item.dictValue == '03');
+ }
+ }else{
+ this.index = this.array.findIndex(item => item.dictValue == this.form.statPeriod);
+ }
})
},
//确认提交