Browse Source

下一页BUG

彭宇 2 years ago
parent
commit
3ad7e8aa81
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/forest.vue

+ 3 - 1
src/views/forest.vue

@@ -487,6 +487,7 @@ export default {
       forestInfo: '', //基本情况
       //左侧获取事件信息统计
       totalStr: '000000',
+      totalAllEvent: 0,
       aiTotal: '',
       newReport: '',
       otherTotal: '',
@@ -838,6 +839,7 @@ export default {
         this.readySure = res.data.readySure
         this.readySure_pre = res.data.readySure_pre
         this.totalStr = res.data.totalStr
+        this.totalAllEvent = +res.data.totalStr
         this.total = res.data.total
         this.eventChartAi(this.aiTotal_pre, this.otherTotal_pre)
       })
@@ -967,7 +969,7 @@ export default {
       if (pageNum < 1) {
         this.$modal.msg('当前已是第一页')
         return
-      } else if(pageNum>num)
+      } else if(pageNum>this.totalAllEvent/10+1)
       {
         this.$modal.msg('当前已是最后一页')
         return;