sunran 3 年 前
コミット
039591ebd9

+ 4 - 2
src/views/weibao/views/followUp/director.vue

@@ -30,8 +30,8 @@ export default {
       active: 0,
       loading: false,
       finished: false,
-      planList: '',
-      historyList: '',
+      planList: [],
+      historyList: [],
       followUpform: {
         pageNum: 1,
         pageSize: 20,
@@ -56,10 +56,12 @@ export default {
     async followUpPage() {
       const res = await followUpPage(this.followUpform)
       this.loading = false
+      //   this.$toast(this.followUpform.pageNum)
       if (this.followUpform.pageNum == 1) {
         this.planList = res.data.records
       } else {
         this.planList = this.planList.concat(res.data.records)
+        console.log(this.planList)
       }
       if (this.planList.length >= res.data.total) {
         this.finished = true

+ 1 - 1
src/views/weibao/views/loveHelp/index.vue

@@ -35,7 +35,7 @@ export default {
       roleIdStr: JSON.parse(sessionStorage.getItem('userInfo')).roleIdStr,
       loading: false,
       finished: false,
-      dataList: '',
+      dataList: [],
       form: {
         pageNum: 1,
         pageSize: 10,