Browse Source

量表维护翻页bug修改2739

zhouna 5 năm trước cách đây
mục cha
commit
a36c6c976a
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      src/components/icss/ChronicDiseaseStructureList.vue

+ 6 - 1
src/components/icss/ChronicDiseaseStructureList.vue

@@ -132,6 +132,7 @@
       next(vm => {
         //const pm = to.param;
         Object.assign(vm, to.params);
+        vm.inCurrentPage=to.params.currentPage;
       })
     },
     methods: {
@@ -166,6 +167,10 @@
           // }
           this.list = list;
           this.total = res.data.data.total;
+          if(this.inCurrentPage!==undefined){
+            this.currentPage=this.inCurrentPage;
+            this.inCurrentPage = undefined;
+          }
         })
       },
       filterDatas() {
@@ -210,7 +215,7 @@
           this.clearFilter();
         };
         const param = {
-          current: this.currentPage,
+          current: this.inCurrentPage||this.currentPage,
           size: this.pageSize,
           name: this.filter.tagSysName.trim(),
           status:this.filter.isState