Commit aec032a0 authored by wxk's avatar wxk

bug

parent 321e46af
......@@ -9,17 +9,13 @@
<div class="dashboard" :class="[(robotDetailInfo.base_status==='abnormal' ||robotDetailInfo.coin_status==='abnormal' || robotDetailInfo.profit_status === 'abnormal') ? 'abnormal' : robotDetailInfo.status || 'normal']">
<div class="chart-box">
<p class="title">今日盈亏</p>
<p v-show="robotInfo.today_profit>0" class="data gain">+{{(robotInfo.today_profit*100).toFixed(2)}}%</p>
<p v-show="robotInfo.today_profit<0" class="data lose">-{{(robotInfo.today_profit*100).toFixed(2)}}%</p>
<p v-show="robotInfo.today_profit==0" class="data none">- -</p>
<p class="data" :class="robotInfo.today_profit && robotInfo.today_profit.indexOf('-')!== -1 ? 'lose' : 'gain'">{{robotInfo.today_profit}}</p>
<div class="type-box">
<p v-show="robotInfo.status==='normal'" class="type">正在运行</p>
<p v-show="robotInfo.status==='stop'" class="type">停止运行</p>
<p>
<span class="result">总盈亏</span>
<span v-show="robotInfo.all_profit>0" class="data gain">+{{(robotInfo.all_profit*100).toFixed(2)}}%</span>
<span v-show="robotInfo.all_profit<0" class="data lose">-{{(robotInfo.all_profit*100).toFixed(2)}}%</span>
<span v-show="robotInfo.all_profit==0" class="data none">- -</span>
<span class="data" :class="robotInfo.all_profit && robotInfo.all_profit.indexOf('-')!== -1 ? 'lose' : 'gain'">{{robotInfo.all_profit}}</span>
</p>
</div>
<div class="switch">
......@@ -323,7 +319,7 @@
<el-table-column
label="充提前数量">
<template slot-scope="scope">
<span>{{ scope.row.beforeRecharge===-1 ? '--' : scope.row.beforeRecharge }}</span>
<span>{{ scope.row.beforeRecharge==='-1' ? '--' : scope.row.beforeRecharge }}</span>
</template>
</el-table-column>
<el-table-column
......@@ -335,7 +331,7 @@
<el-table-column
label="充提后数量">
<template slot-scope="scope">
<span>{{ scope.row.afterRecharge===-1 ? '--' : scope.row.afterRecharge }}</span>
<span>{{ scope.row.afterRecharge==='-1' ? '--' : scope.row.afterRecharge }}</span>
</template>
</el-table-column>
<el-table-column
......@@ -739,7 +735,7 @@
this.recordsCountList = result.total;
if (result.list) {
this.list1 = result.list.map(item => {
item.fee = item.fee===-1 ? '--' : item.fee + item.coin;
item.fee = item.fee==='-1' ? '--' : item.fee + item.coin;
item.opt = item.opt==="0" ? "充币" : "提币";
item.status = item.status==="0" ? "成功" : "失败";
return item;
......@@ -848,10 +844,6 @@
}
},
watch: {
robotBankList(val) {
this.robotBankList = val;
// console.log(this.robotBankList);
},
robotDetailInfo() {
this.init();
},
......
......@@ -98,17 +98,13 @@
<p class="robot-name">{{item.tag}}</p>
<div class="chart-box">
<p class="title">今日盈亏</p>
<p v-show="item.today_profit>0" class="data gain">+{{(item.today_profit*100).toFixed(2)}}%</p>
<p v-show="item.today_profit<0" class="data lose">-{{(item.today_profit*100).toFixed(2)}}%</p>
<p v-show="item.today_profit==0" class="data none">- -</p>
<p class="data" :class="item.today_profit && item.today_profit.indexOf('-')!== -1 ? 'lose' : 'gain'">{{item.today_profit}}</p>
<div>
<p v-show="item.status==='normal'" class="type">正在运行</p>
<p v-show="item.status==='stop'" class="type">停止运行</p>
<p>
<span class="result">总盈亏</span>
<span v-show="item.all_profit>0" class="data gain">+{{(item.all_profit*100).toFixed(2)}}%</span>
<span v-show="item.all_profit<0" class="data lose">-{{(item.all_profit*100).toFixed(2)}}%</span>
<span v-show="item.all_profit==0" class="data none">- -</span>
<span class="data" :class="item.all_profit && item.all_profit.indexOf('-')!== -1 ? 'lose' : 'gain'">{{item.all_profit}}</span>
</p>
</div>
</div>
......
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