From 455b1ab17947dec33c33f8d7fa03e23a94291139 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 22 May 2024 13:49:44 +0800
Subject: [PATCH] no message

---
 src/views/userlist/agentlist.vue |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/src/views/userlist/agentlist.vue b/src/views/userlist/agentlist.vue
index 11ce200..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({
@@ -277,3 +287,9 @@
   }
 }
 </script>
+<style >
+  .table-operator{
+    display:flex;
+    align-items: center;
+  }
+</style>

--
Gitblit v1.9.3