优化分页重新查询回到顶部

main
张群 3 years ago
parent e38df289d7
commit bc32b1d596
  1. 3
      pages/airport/airport-runData/list.vue
  2. 3
      pages/airport/airport-runStatus/list.vue
  3. 3
      pages/highWay/runData/list.vue
  4. 3
      pages/highWay/runStatusData/list.vue
  5. 3
      pages/metro/subwayPage/list.vue
  6. 3
      pages/portShipping/waterInternational/list.vue
  7. 3
      pages/railway/railwayRunData/list.vue
  8. 3
      pages/railway/runStatus/list.vue
  9. 2
      pages/water/transportation/form.vue
  10. 3
      pages/water/transportation/list.vue
  11. 3
      pages/water/waterWay/list.vue

@ -115,6 +115,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -115,6 +115,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -118,6 +118,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -117,6 +117,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -115,6 +115,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -115,6 +115,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -119,6 +119,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -118,6 +118,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -318,7 +318,7 @@
let checkAccident = true; let checkAccident = true;
if(this.form.listContion.length > 0){ if(this.form.listContion.length > 0){
checkAccident = this.form.listContion.every(item => { checkAccident = this.form.listContion.every(item => {
return checkNotEmpty(item.accidentContent) && checkNotEmpty(item.accidentHappened) && checkNotEmpty(item.occurrenceLocation) return checkNotEmpty(item.accidentContent) && checkNotEmpty(item.accidentHappened) && checkNotEmpty(item.occurrenceLocation) && checkNotEmpty(item.endTime)
}) })
} }
if (!checkAccident) { if (!checkAccident) {

@ -115,6 +115,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

@ -115,6 +115,9 @@
this.current = 0; this.current = 0;
this.hasMore = true; this.hasMore = true;
this.$refs.popup.close(); this.$refs.popup.close();
uni.pageScrollTo({
scrollTop: 0
})
this.loadMore(); this.loadMore();
}, },
// //

Loading…
Cancel
Save