xiongzhu 4 anos atrás
pai
commit
e7513224d2
1 arquivos alterados com 7 adições e 6 exclusões
  1. 7 6
      src/main/vue/src/views/UserBalance.vue

+ 7 - 6
src/main/vue/src/views/UserBalance.vue

@@ -123,8 +123,8 @@
             <el-pagination
                 style="margin-top: 10px"
                 background
-                @size-change="onSizeChange($event, 'record')"
-                @current-change="onCurrentChange($event, 'record')"
+                @size-change="onTableSizeChange($event, 'record')"
+                @current-change="onTableCurrentChange($event, 'record')"
                 :current-page="record.page"
                 :page-sizes="[10, 20, 30, 40, 50]"
                 :page-size="record.pageSize"
@@ -145,8 +145,8 @@
             <el-pagination
                 style="margin-top: 10px"
                 background
-                @size-change="onSizeChange($event, 'history')"
-                @current-change="onCurrentChange($event, 'history')"
+                @size-change="onTableSizeChange($event, 'history')"
+                @current-change="onTableCurrentChange($event, 'history')"
                 :current-page="record.page"
                 :page-sizes="[10, 20, 30, 40, 50]"
                 :page-size="history.pageSize"
@@ -335,7 +335,7 @@ export default {
                     this.record.loading = false;
                 });
         },
-        onSizeChange(e, type) {
+        onTableSizeChange(e, type) {
             this[type].page = 1;
             this[type].pageSize = e;
             if (type === 'record') {
@@ -344,7 +344,8 @@ export default {
                 this.getHistory();
             }
         },
-        onCurrentChange(e) {
+        onTableCurrentChange(e, type) {
+            console.log(e, type);
             this[type].page = e;
             if (type === 'record') {
                 this.getRecords();