Commit 1c4a69e3 authored by wxk's avatar wxk

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

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