From d2a6b6f9de0589ef3e74e37eb138fbee097673c1 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 11 Jun 2024 16:33:32 +0800
Subject: [PATCH] 换个code

---
 src/views/userlist/index.vue |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/views/userlist/index.vue b/src/views/userlist/index.vue
index 7d5a519..6973265 100644
--- a/src/views/userlist/index.vue
+++ b/src/views/userlist/index.vue
@@ -198,12 +198,14 @@
           align: 'center',
         },
         {
-          title: '总资金',
-          dataIndex: 'userAmt',
+          title: '资金使用百分比',
+          dataIndex: 'fundRatio',
           align: 'center',
-          customRender: (text, row, index) => {
-            return text.toFixed(2)
-          },
+        },
+        {
+          title: '杠杠',
+          dataIndex: 'lever',
+          align: 'center',
         },
         {
           title: '认证信息',
@@ -269,7 +271,7 @@
   methods: {
     getMoneyzj(record) {
       console.log(record.id)
-      getMoney({ userId: 391 }).then((res) => {
+      getMoney({ userId: record.id }).then((res) => {
         if (res.status === 0) {
           const arr = res.data.filter((item) => item.accectType !== 'ALL')
           this.activeArr = arr
@@ -289,10 +291,10 @@
           }
           userdelete(data).then((res) => {
             if (res.status == 0) {
-              that.$message.success({ content: res.msg, duration: 2 })
+              that.$message.success(res.msg)
               that.getinit()
             } else {
-              that.$message.error({ content: res.msg })
+              that.$message.error(res.msg)
             }
           })
         },
@@ -338,8 +340,9 @@
       this.getuserList()
     },
     onSizeChange(current, pageSize) {
+      // console.log(current, pageSize)
       this.queryParam.pageNum = current
-      this.pagination.current = page
+      // this.pagination.current = page
       this.queryParam.pageSize = pageSize
       this.getuserList()
     },

--
Gitblit v1.9.3