Quellcode durchsuchen

1、修复运营中心员工审核分页bug

slowslo vor 4 Jahren
Ursprung
Commit
762f39cb58
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 6
      src/views/dashboard/smartoperationcenter/comps/grid_list.vue

+ 6 - 6
src/views/dashboard/smartoperationcenter/comps/grid_list.vue

@@ -51,8 +51,8 @@
         query: {},
         loading:true,
         page: {
-          size: 10,
-          current: 1,
+          pageSize: 10,
+          currentPage: 1,
           total: 0
         },
         dataLoad: {
@@ -487,8 +487,8 @@
         this.option = item.option;
         this.form = {};
         this.page = {
-          size: 10,
-          current: 1,
+          pageSize: 10,
+          currentPage: 1,
           total: 0
         };
         if (item.dialog === "form") {
@@ -516,7 +516,7 @@
         let that = this;
         that.loading = true;
         let param = Object.assign(params, this.query);
-        this.$axios.get(this.dataLoad.url, {params:Object.assign(param, {size: this.page.size, current: this.page.current})}).then(function(res) {
+        this.$axios.get(this.dataLoad.url, {params:Object.assign(param, {size: page.pageSize, current: page.currentPage})}).then(function(res) {
           const data = res.data.data;
           that.page.total = data.total;
           that.data = data.records;
@@ -544,7 +544,7 @@
       },
       dialogClose(){
         this.query = {};
-        this.page ={size: 10, current: 1, total: 0};
+        this.page ={pageSize: 10, currentPage: 1, total: 0};
       }
     },