yunxing 4 years ago
parent
commit
21ccf83a7f
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/views/otherMatter/ComprehensiveMatter.vue

+ 7 - 3
src/views/otherMatter/ComprehensiveMatter.vue

@@ -7,7 +7,7 @@
             <van-button round size='small' :class='active === 3?"active":""' @click='changeTime(3)'>全部</van-button>
         </div>
         <div class='main' v-show='!noData'>
-            <van-list class='matters-list' v-model='loading' :finished='finished' finished-text :offset='300' @load='onLoad'>
+            <van-list class='matters-list' v-model='loading' :finished='finished' :immediate-check='false' finished-text :offset='300' @load='onLoad'>
                 <!-- :immediate-check='false' -->
                 <div class='container' v-for='(item,index) in list' :key='index'>
                     <!-- 政府部门 -->
@@ -80,7 +80,10 @@ export default {
             handler(val) {},
         },
     },
-    created() {},
+    created() {
+        console.log('综合事项 created')
+        this.getList()
+    },
     beforeMount() {},
     mounted() {},
     methods: {
@@ -206,6 +209,7 @@ export default {
             if (this.currentCount >= this.count) {
                 return true
             }
+
             // 异步更新数据
             await this.getList()
             this.page++
@@ -255,7 +259,7 @@ export default {
                 createdateStartDate: this.createdateStartDate,
                 createdateEndDate: this.createdateEndDate,
             }
-            
+
             // 全部时,不传时间字段
             if (this.active === 3) {
                 delete params.createdateStartDate