xiaodai2022 2 жил өмнө
parent
commit
417ff3af41

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/static/js/0.js


+ 22 - 1
src/components/ExTableNew.vue

@@ -271,7 +271,28 @@ export default {
       tableSelection: [],
     };
   },
-  watch: {},
+   computed: {
+    page_curr() {
+      return this.page.curr;
+    },
+    page_size() {
+      return this.page.size;
+    },
+    page_total() {
+      return this.page.total;
+    },
+  },
+  watch: {
+    page_curr: function (val) {
+      this.page.curr = val;
+    },
+    page_size: function (val) {
+      this.page.size = val;
+    },
+    page_total: function (val) {
+      this.page.total = val;
+    },
+  },
   mounted() {
     // 拖拽绑定
     this.rowDrop();

+ 3 - 0
src/mixins/elPaginationHandle.js

@@ -2,10 +2,13 @@ export default {
   methods: {
     async handlePageChange(val) {
       this.parmValue.page = val
+      this.pageInfo.curr = val
       await this.searchList()
     },
     async handleSizeChange(val) {
       this.parmValue.page = 1
+      this.pageInfo.curr = 1
+      this.pageInfo.size = val
       this.parmValue.size = val
       await this.searchList()
     }

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно