From 52e4976e00a512c7cfe554330517559c4e919aba Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Wed, 29 May 2024 19:49:38 +0800
Subject: [PATCH] 123

---
 src/views/userlist/agentlist.vue |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/views/userlist/agentlist.vue b/src/views/userlist/agentlist.vue
index c06d5c2..2eb88ea 100644
--- a/src/views/userlist/agentlist.vue
+++ b/src/views/userlist/agentlist.vue
@@ -52,6 +52,9 @@
       </div>
       <div class="table-operator">
         <a-button type="primary" icon="plus" @click="$refs.addagentdialog.addUserdialog = true">添加下级代理</a-button>
+        <div class="table-operator_price">代理充值总资产:${{agentpricetotal.usTotalAmount}} ₹{{agentpricetotal.inTotalAmount}}</div>
+        <div class="table-operator_price" style="margin-left: 30px;">代理提现总资产:${{agentpricetotal.usTotalWithdrawAmount}} ₹{{agentpricetotal.inTotalWithdrawAmount}}</div>
+        <a  @click="gettotalprice">(点击刷新)</a>
       </div>
     </a-card>
 
@@ -100,7 +103,7 @@
 import editCapitalAgentdialog from './agentcomponents/editCapitalAgentdialog'
 import EditAgentinfodialog from './agentcomponents/EditAgentinfodialog'
 import addagentdialog from './agentcomponents/addagentdialog'
-import { nextagent, agentdelAgent } from '@/api/home'
+import { nextagent, agentdelAgent,getagentprice } from '@/api/home'
 import moment from 'moment'
 export default {
   name: 'AgentList',
@@ -193,14 +196,21 @@
         pageSize: 10
       },
       agentloading: false,
+      agentpricetotal:'',
       agentlist: [],
       clickagentlist: []
     }
   },
   created () {
     this.getagentlist()
+    this.gettotalprice()
   },
   methods: {
+    gettotalprice(){
+      getagentprice().then((res) => {
+        this.agentpricetotal = res.data
+      })
+    },
     getDelagent (val) {
       var that = this
       this.$confirm({
@@ -212,10 +222,10 @@
           }
           agentdelAgent(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)
             }
           })
         },
@@ -270,10 +280,16 @@
     },
     onSizeChange (current, pageSize) {
       this.agentqueryParam.pageNum = current
-      this.pagination.current = page
+      // this.pagination.current = page
       this.agentqueryParam.pageSize = pageSize
       this.getagentlist()
     }
   }
 }
 </script>
+<style >
+  .table-operator{
+    display:flex;
+    align-items: center;
+  }
+</style>

--
Gitblit v1.9.3