Commit 3854da04 authored by wxk's avatar wxk

银行账户增加单号

parent 8b10c4bf
File deleted
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
}, },
methods: { methods: {
navClick(index) { navClick(index) {
this.active = index;
Bus.$emit('refresh');
if(this.active != 'account'){ if(this.active != 'account'){
this.$router.push(`/monitor/${index}`) this.$router.push(`/monitor/${index}`)
}else{ }else{
...@@ -49,6 +47,7 @@ ...@@ -49,6 +47,7 @@
}, },
watch: { watch: {
$route() { $route() {
Bus.$emit('refresh');
this.active = this.$route.params.name || 'account'; this.active = this.$route.params.name || 'account';
} }
} }
......
<template> <template>
<div class="header"> <div class="header">
<span class="title">机器人监控</span> <router-link :to="{path: '/monitor/home'}">
<span class="title">机器人监控</span>
</router-link>
<div class="contain"> <div class="contain">
<span class="username">{{username}}</span> <span class="username">{{username}}</span>
<span class="loginout" @click="exitLogin">退出</span> <span class="loginout" @click="exitLogin">退出</span>
...@@ -9,6 +11,7 @@ ...@@ -9,6 +11,7 @@
</template> </template>
<script> <script>
import Bus from '../assets/js/bus'
export default { export default {
data(){ data(){
return{ return{
...@@ -46,6 +49,7 @@ ...@@ -46,6 +49,7 @@
box-shadow:0px 2px 10px 6px rgba(237,237,237,0.5); box-shadow:0px 2px 10px 6px rgba(237,237,237,0.5);
color:rgba(255,255,255,1); color:rgba(255,255,255,1);
.title{ .title{
color: #fff;
font-size:24px; font-size:24px;
} }
.contain{ .contain{
......
...@@ -28,6 +28,13 @@ ...@@ -28,6 +28,13 @@
stripe stripe
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
width="100"
label="币种代号">
<template slot-scope="scope">
<span>{{ scope.row.coin_id }}</span>
</template>
</el-table-column>
<el-table-column
label="币种" label="币种"
width="180"> width="180">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -42,12 +49,6 @@ ...@@ -42,12 +49,6 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="冻结资产">
<template slot-scope="scope">
<span>{{ scope.row.frozen }}</span>
</template>
</el-table-column>
<el-table-column
label="总资产"> label="总资产">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.amount }}</span> <span>{{ scope.row.amount }}</span>
...@@ -295,6 +296,9 @@ ...@@ -295,6 +296,9 @@
axios.post(ApiConfig.GetWalletInfo,{account: params}).then( res => { axios.post(ApiConfig.GetWalletInfo,{account: params}).then( res => {
// console.log(res.data.data); // console.log(res.data.data);
this.walletInfo = res.data.data; this.walletInfo = res.data.data;
this.walletInfo.sort((a,b)=>{
return a.coin_id - b.coin_id
})
this.walletInfo.forEach(item => { this.walletInfo.forEach(item => {
this.coinList.push(item.coin); this.coinList.push(item.coin);
}) })
......
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