Browse Source

上一页下一页

王通 2 years ago
parent
commit
1cc6314565
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/forest.vue

+ 5 - 0
src/views/forest.vue

@@ -1190,8 +1190,13 @@
         that.getEventList(that.calendarDay, that.pageSize, that.pageNum, '', false)
       },
       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;