列表页面显示即刷新;填报单位编辑为空默认为当前登录人单位

main
张群 2 years ago
parent 2da31786cf
commit 078804d0f9
  1. 9
      pages/airport/airport-runData/list.vue
  2. 9
      pages/airport/airport-runStatus/list.vue
  3. 6
      pages/highWay/runData/form.vue
  4. 9
      pages/highWay/runData/list.vue
  5. 6
      pages/highWay/runStatusData/form.vue
  6. 9
      pages/highWay/runStatusData/list.vue
  7. 2
      pages/metro/subwayPage/form.vue
  8. 9
      pages/metro/subwayPage/list.vue
  9. 2
      pages/portShipping/waterInternational/form.vue
  10. 9
      pages/portShipping/waterInternational/list.vue
  11. 10
      pages/railway/railwayRunData/list.vue
  12. 9
      pages/railway/runStatus/list.vue
  13. 6
      pages/water/transportation/form.vue
  14. 9
      pages/water/transportation/list.vue
  15. 2
      pages/water/waterWay/form.vue
  16. 9
      pages/water/waterWay/list.vue

@ -72,10 +72,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

@ -72,10 +72,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

@ -308,8 +308,12 @@
'GET').then(res => { 'GET').then(res => {
this.form = res.data; this.form = res.data;
if (checkNotEmpty(this.deptNameList)) { if (checkNotEmpty(this.deptNameList)) {
let idx = this.deptNameList.findIndex(item => item.deptName = this.form.organizationName); let idx = this.deptNameList.findIndex(item => item.deptName == this.form.organizationName);
this.form.organizationNameIndex = idx > -1 ? idx : ''; this.form.organizationNameIndex = idx > -1 ? idx : '';
if(!checkNotEmpty(this.form.affiliatedUnit)) {
this.form.organizationName = this.deptNameList.length > 0 ? this.deptNameList[0].deptName : '';
this.form.organizationNameIndex = this.deptNameList.length > 0 ? 0 : '';
}
} }
this.queryTime(); this.queryTime();
this.queryStation(); this.queryStation();

@ -75,10 +75,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

@ -433,8 +433,12 @@
this.form.highwayCongestionDetailDTOS = this.form.highwayCongestionDetailVOS; this.form.highwayCongestionDetailDTOS = this.form.highwayCongestionDetailVOS;
this.form.highwayAccidentDetailDTOS = this.form.highwayAccidentDetailVOS; this.form.highwayAccidentDetailDTOS = this.form.highwayAccidentDetailVOS;
if (checkNotEmpty(this.deptNameList)) { if (checkNotEmpty(this.deptNameList)) {
let idx = this.deptNameList.findIndex(item => item.deptName = this.form.organizationName); let idx = this.deptNameList.findIndex(item => item.deptName == this.form.organizationName);
this.form.organizationNameIndex = idx > -1 ? idx : ''; this.form.organizationNameIndex = idx > -1 ? idx : '';
if(!checkNotEmpty(this.form.affiliatedUnit)) {
this.form.organizationName = this.deptNameList.length > 0 ? this.deptNameList[0].deptName : '';
this.form.organizationNameIndex = this.deptNameList.length > 0 ? 0 : '';
}
} }
this.queryAccidentLevel(); // this.queryAccidentLevel(); //
this.queryHighway(); // this.queryHighway(); //

@ -74,10 +74,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

@ -167,7 +167,7 @@
.then(res => { .then(res => {
this.form = res.data; this.form = res.data;
if (checkNotEmpty(this.deptNameList)) { if (checkNotEmpty(this.deptNameList)) {
let idx = this.deptNameList.findIndex(item => item.deptName = this.form.organizationName); let idx = this.deptNameList.findIndex(item => item.deptName == this.form.organizationName);
this.form.organizationNameIndex = idx > -1 ? idx : ''; this.form.organizationNameIndex = idx > -1 ? idx : '';
} }
this.queryTime(); // this.queryTime(); //

@ -72,10 +72,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

@ -242,7 +242,7 @@
this.form.passengerShipDTOList = this.form.passengerShipVOList; this.form.passengerShipDTOList = this.form.passengerShipVOList;
this.form.internationalCruiseDTOList = this.form.internationalCruiseVOList; this.form.internationalCruiseDTOList = this.form.internationalCruiseVOList;
if (checkNotEmpty(this.deptNameList)) { if (checkNotEmpty(this.deptNameList)) {
let idx = this.deptNameList.findIndex(item => item.deptName = this.form.organizationName); let idx = this.deptNameList.findIndex(item => item.deptName == this.form.organizationName);
this.form.organizationNameIndex = idx > -1 ? idx : ''; this.form.organizationNameIndex = idx > -1 ? idx : '';
} }
this.queryTime(); // this.queryTime(); //

@ -72,10 +72,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

@ -76,10 +76,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];
@ -228,6 +235,7 @@
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
text-align: right; text-align: right;
margin-top: 10rpx;
} }
.report_time { .report_time {

@ -75,10 +75,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

@ -216,8 +216,12 @@
'GET').then(res => { 'GET').then(res => {
this.form = res.data; this.form = res.data;
if (checkNotEmpty(this.deptNameList)) { if (checkNotEmpty(this.deptNameList)) {
let idx = this.deptNameList.findIndex(item => item.deptName = this.form.affiliatedUnit); let idx = this.deptNameList.findIndex(item => item.deptName == this.form.affiliatedUnit);
this.form.affiliatedUnitIndex = idx > -1 ? idx : ''; this.form.affiliatedUnitIndex = idx > -1 ? idx : '';
if(!checkNotEmpty(this.form.affiliatedUnit)) {
this.form.affiliatedUnit = this.deptNameList.length > 0 ? this.deptNameList[0].deptName : '';
this.form.affiliatedUnitIndex = this.deptNameList.length > 0 ? 0 : '';
}
} }
this.queryTime(); // this.queryTime(); //
}) })

@ -72,10 +72,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

@ -366,7 +366,7 @@
if (this.pageType == 'add') { if (this.pageType == 'add') {
let now = new Date(); let now = new Date();
//11:00-13:30 0-12 //11:00-13:30 0-12
let dateStr = getDateStr(now, 0); let dateStr = getDateStr(now, 0).replaceAll('-', '/');
if (new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() < if (new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() <
new Date(dateStr + new Date(dateStr +
' 13:30').getTime()) { ' 13:30').getTime()) {

@ -72,10 +72,17 @@
index: '', // index: '', //
} }
}, },
onLoad() { onShow() {
this.data = [];
this.current = 0;
this.hasMore = true;
this.queryTime(); this.queryTime();
this.loadMore(); this.loadMore();
}, },
onLoad() {
// this.queryTime();
// this.loadMore();
},
onUnload() { onUnload() {
this.hasMore = true; this.hasMore = true;
this.data = []; this.data = [];

Loading…
Cancel
Save