Browse Source

预托书删除页面最后一条数据进行判断

jbb 2 years ago
parent
commit
684d4d0a46
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/pre-book/preBookList.vue

+ 3 - 0
src/views/pre-book/preBookList.vue

@@ -276,6 +276,9 @@ export default {
     // 分页查询 预托书
     getPreBookData() {
       this.$nextTick(() => {
+        if(this.queryParam.pageNo > 1 && this.preBookListData.length === 1){
+          this.queryParam.pageNo = this.queryParam.pageNo -1
+        }
         preBookList(this.queryParam).then(res => {
           if (res.success) {
             this.preBookListData = res.result.records;