Commit 1c4a69e3 authored by wxk's avatar wxk

银行账户充值统计位置调整

parent f5877023
...@@ -49,9 +49,9 @@ ...@@ -49,9 +49,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="总资产"> label="充值总计">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.amount }}</span> <span>{{ scope.row.records }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
end-placeholder="结束日期"> end-placeholder="结束日期">
</el-date-picker> </el-date-picker>
</div> </div>
<div class="count-box"> <!--<div class="count-box">
<span class="fl title">总计: </span> <span class="fl title">总计: </span>
<ul class="fl"> <ul class="fl">
<li class="fl" v-for="(value,key) in recordsCountList"> <li class="fl" v-for="(value,key) in recordsCountList">
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<span>{{value}}</span> <span>{{value}}</span>
</li> </li>
</ul> </ul>
</div> </div>-->
<el-table <el-table
v-loading="transactionLoading" v-loading="transactionLoading"
:data="recordsList" :data="recordsList"
...@@ -229,12 +229,6 @@ ...@@ -229,12 +229,6 @@
disable-transitions>{{scope.row.status === '0' ? '充值成功' : '充值失败'}}</el-tag> disable-transitions>{{scope.row.status === '0' ? '充值成功' : '充值失败'}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column
label="来源">
<template slot-scope="scope">
<span>{{ scope.row.from_account }}</span>
</template>
</el-table-column>-->
</el-table> </el-table>
<el-pagination <el-pagination
@size-change="handleSizeChange" @size-change="handleSizeChange"
...@@ -262,7 +256,7 @@ ...@@ -262,7 +256,7 @@
walletInfo: [], //资产信息列表 walletInfo: [], //资产信息列表
coinList: [],//资产信息包含的币种 coinList: [],//资产信息包含的币种
recordsList: [], //操作记录总计 recordsList: [], //操作记录总计
recordsCountList: [], //操作记录总计列表 recordsCountList: {}, //操作记录总计列表
recordsCount: 0, //操作记录总条数 recordsCount: 0, //操作记录总条数
currentPage: 1, //操作记录页码 currentPage: 1, //操作记录页码
pageSize: 10, pageSize: 10,
...@@ -289,7 +283,6 @@ ...@@ -289,7 +283,6 @@
/*页面初始化*/ /*页面初始化*/
init() { init() {
this.getWalletInfo(this.bankId); this.getWalletInfo(this.bankId);
this.getRecords();
}, },
/*获取资产信息*/ /*获取资产信息*/
getWalletInfo(params) { getWalletInfo(params) {
...@@ -303,10 +296,11 @@ ...@@ -303,10 +296,11 @@
this.coinList.push(item.coin); this.coinList.push(item.coin);
}) })
this.coinList = [...new Set(this.coinList)]; this.coinList = [...new Set(this.coinList)];
this.getRecords('1', 'init');
}) })
}, },
/*查询操作记录*/ /*查询操作记录*/
getRecords(page) { getRecords(page,type) {
this.transactionLoading = true; this.transactionLoading = true;
let recordParams = { let recordParams = {
account: this.bankId, account: this.bankId,
...@@ -321,7 +315,13 @@ ...@@ -321,7 +315,13 @@
this.transactionLoading = false; this.transactionLoading = false;
this.recordsList = res.data.data.list; this.recordsList = res.data.data.list;
this.recordsCount = res.data.data.count; this.recordsCount = res.data.data.count;
if (type === 'init') {
this.recordsCountList = res.data.data.total; this.recordsCountList = res.data.data.total;
this.walletInfo = [...this.walletInfo.map( item => {
item.records = this.recordsCountList[item.coin]
return item;
})]
}
}).catch(error => { }).catch(error => {
this.transactionLoading = false; this.transactionLoading = false;
this.$notify({ this.$notify({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment