Browse Source

完成用户提现管理表格分页及字段修改

wzy 1 year ago
parent
commit
152842bf12
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/views/finance/application/index.vue

+ 6 - 6
src/views/finance/application/index.vue

@@ -127,7 +127,7 @@
           <el-table-column prop="totalAmount" label="佣金总金额" />
         </el-table>
       </div>
-      <div class="dialog-pagination" v-show="false">
+      <div class="dialog-pagination">
         <el-pagination layout="prev, pager, next" :total="waterData.length" :page-size="5" @current-change="waterChange">
         </el-pagination>
       </div>
@@ -179,8 +179,8 @@ export default {
       watherInfo: {},
       // 获取流水数据参数
       watherParameter: {
-        current: 1,
-        size: 5,
+        page: 1,
+        pageSize: 5,
         // buyerUserId: ""
         acquirerId:""
       },
@@ -327,8 +327,7 @@ export default {
       this.watherParameter.acquirerId = id
       try {
         let res = await getWaterRecord(this.watherParameter)
-        this.waterData = res.data.records
-        console.log(res.data.records);
+        this.waterData = res.data.list
         this.watherFlag = false
       } catch (error) {
 
@@ -336,7 +335,8 @@ export default {
     },
     //  表格分页
     waterChange(e){
-      console.log(e);
+      this.watherParameter.page = e
+      this.getWatherTable(this.watherParameter.acquirerId)
     },
     //  关闭弹窗的回调
     closeDialog() {