Explorar o código

Merge branch 'visu_emergency_01_siping_2.5d' of http://121.37.83.100:3000/sooka_onest/sooka_onest_forestfire_vue2_visualization into visu_emergency_01_siping_2.5d

whao %!s(int64=2) %!d(string=hai) anos
pai
achega
87e8c563aa
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/views/forest.vue

+ 6 - 0
src/views/forest.vue

@@ -963,10 +963,16 @@ export default {
       })
     },
     getEventList(day, pageSize, pageNum, eventSearch, loading) {
+      let num=this.eventList.length/pageSize+1
       if (pageNum < 1) {
         this.$modal.msg('当前已是第一页')
         return
+      } else if(pageNum>num)
+      {
+        this.$modal.msg('当前已是最后一页')
+        return;
       }
+
       this.pageSize = pageSize
       this.pageNum = pageNum
       let that = this