소스 검색

下一页BUG

彭宇 2 년 전
부모
커밋
cf5657984f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/forest.vue

+ 3 - 1
src/views/forest.vue

@@ -537,6 +537,7 @@
         forestInfo: '', //基本情况
         //左侧获取事件信息统计
         totalStr: '000000',
+        totalAllEvent: 0,
         aiTotal: '',
         newReport: '',
         otherTotal: '',
@@ -1202,6 +1203,7 @@
           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)
         })
@@ -1339,7 +1341,7 @@
         if (pageNum < 1) {
           this.$modal.msg('当前已是第一页')
           return
-        } else if(pageNum>num)
+        } else if(pageNum>this.totalAllEvent/10+1)
         {
           this.$modal.msg('当前已是最后一页')
           return;