Commit 32b59cf8 authored by 王奇's avatar 王奇

修改BUG

parent 4f5c841e
...@@ -626,6 +626,14 @@ ...@@ -626,6 +626,14 @@
}, },
//波动统计弹窗通过机器人账户搜索 //波动统计弹窗通过机器人账户搜索
searchByAccount() { searchByAccount() {
if(this.robotAccount==''){
this.$notify({
title: '错误',
message: "请输入账号",
type: 'error',
duration:'2000',
});
}else{
let params={ let params={
class:"robot", class:"robot",
account:this.robotAccount, account:this.robotAccount,
...@@ -640,11 +648,13 @@ ...@@ -640,11 +648,13 @@
}).catch( error => { }).catch( error => {
this.$notify({ this.$notify({
title: '错误', title: '错误',
message: "服务器崩溃啦,请稍后再试", message: "账号输入错误",
type: 'error', type: 'error',
duration:'2000', duration:'2000',
}); });
}) })
}
}, },
}, },
watch:{ watch:{
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
</div> </div>
<ul class="robots-box"> <ul class="robots-box">
<li v-for="(item,index) in robotList" :key="item.tag" <li v-for="(item,index) in robotList" :key="item.tag"
:class="[(item.base_status==='abnormal' ||item.coin_status==='abnormal' || item.profit_status === 'abnormal') ? 'abnormal' : item.status || 'normal']"> :class="[(item.base_status==='abnormal' ||item.coin_status==='abnormal' || item.coin_wave_status === 'abnormal'|| item.base_wave_status === 'abnormal') ? 'abnormal' : item.status || 'normal']">
<div class="operations"> <div class="operations">
<div class="detail" @click="showDetails(index)"> <div class="detail" @click="showDetails(index)">
<span>查看详情</span> <span>查看详情</span>
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
if (res.data.code === 200) { if (res.data.code === 200) {
// console.log(res.data.data); // console.log(res.data.data);
this.robotList = res.data.data; this.robotList = res.data.data;
// console.log("机器人数据",res.data.data) console.log("机器人数据",res.data.data)
} }
}).catch( error => { }).catch( error => {
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