Commit ad481c16 authored by 汪晓凯's avatar 汪晓凯

获取机器人配置并展示

parent 47532b5e
...@@ -17,6 +17,10 @@ const Api = { ...@@ -17,6 +17,10 @@ const Api = {
Excle: originUrl + '/recordsExcle',//导出充提记录 Excle: originUrl + '/recordsExcle',//导出充提记录
GetCountCoin: originUrl + '/countCoin',//币种充提统计查询 GetCountCoin: originUrl + '/countCoin',//币种充提统计查询
countCoinExcle: originUrl + '/countCoinExcle',//币种充提统计导出 countCoinExcle: originUrl + '/countCoinExcle',//币种充提统计导出
GetBankConfig: originUrl + '/getBankConfig', //获取银行配置
UpdateBankConfig: originUrl + '/updateBankConfig', //修改银行配置
GetRobotConfig: originUrl + '/getRobotConfig', //获取机器人配置
UpdateRobotConfig: originUrl + 'updateRobotConfig', //修改机器人配置接口
} }
export default Api; export default Api;
...@@ -51,7 +51,25 @@ ...@@ -51,7 +51,25 @@
<el-table-column <el-table-column
label="充值总计"> label="充值总计">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.records }}</span> <span>{{ scope.row.records || 0 }}</span>
</template>
</el-table-column>
<el-table-column
label="配置最低值">
<template slot-scope="scope">
<span>{{ scope.row.min_amount }}</span>
</template>
</el-table-column>
<el-table-column
label="自动充值金额">
<template slot-scope="scope">
<span>{{ scope.row.recharge_amount }}</span>
</template>
</el-table-column>
<el-table-column
label="自动充值限制(次/日)">
<template slot-scope="scope">
<span>{{ scope.row.max_recharge_times }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -297,6 +315,22 @@ ...@@ -297,6 +315,22 @@
}) })
this.checkedCoins = this.coinList = [...new Set(this.coinList)]; this.checkedCoins = this.coinList = [...new Set(this.coinList)];
this.getRecords('1', 'init'); this.getRecords('1', 'init');
this.getBankConfig();
})
},
/*获取银行配置*/
getBankConfig() {
axios.post(ApiConfig.GetBankConfig,{account: this.bankId}).then( res => {
if (res.data.code === 200) {
const configList = res.data.data;
this.walletInfo = [...this.walletInfo.map( item => {
const coin = item.coin;
item.min_amount = configList[item.coin] ? configList[item.coin].min_amount : '--';
item.recharge_amount = configList[item.coin] ? configList[item.coin].recharge_amount : '--';
item.max_recharge_times = configList[item.coin] ? configList[item.coin].max_recharge_times : '--';
return item;
})]
}
}) })
}, },
/*查询操作记录*/ /*查询操作记录*/
...@@ -440,6 +474,10 @@ ...@@ -440,6 +474,10 @@
}, },
}, },
watch: { watch: {
//切换银行账户
bankId(val) {
this.init();
},
//操作记录时间筛选 //操作记录时间筛选
transactionTime(val) { transactionTime(val) {
this.getRecords(); this.getRecords();
......
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