Commit 9746fbbd authored by 汪晓凯's avatar 汪晓凯

样式修改1

parent 7a548d85
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
} }
ul.el-menu-vertical-demo>li{ ul.el-menu-vertical-demo>li{
border-radius: 4px; border-radius: 4px;
overflow: hidden;
} }
</style> </style>
<style> <style>
......
...@@ -158,18 +158,18 @@ ...@@ -158,18 +158,18 @@
robotList: [],//符合条件的机器人列表 robotList: [],//符合条件的机器人列表
robotDetailInfo: '', robotDetailInfo: '',
subtitle: '所有机器人', //副标题 subtitle: '所有机器人', //副标题
checkAll: false, //交易所筛选 checkAll: true, //交易所筛选
checkedWebs: [], checkedWebs: [],
webs: [], webs: [],
isIndeterminate: true, isIndeterminate: true,
foldExchange: true, foldExchange: true,
checkAll0: false, //币种筛选 checkAll0: true, //币种筛选
checkedCurrencies: [], checkedCurrencies: [],
allCurrencies: [],//所有币种 allCurrencies: [],//所有币种
currencies: [],//符合交易所条件的所有币种 currencies: [],//符合交易所条件的所有币种
isIndeterminate0: true, isIndeterminate0: true,
foldExchange0: true, foldExchange0: true,
checkAll1: false, //交易对筛选 checkAll1: true, //交易对筛选
checkedPairs: [], checkedPairs: [],
pairs: [], pairs: [],
isIndeterminate1: true, isIndeterminate1: true,
...@@ -181,31 +181,26 @@ ...@@ -181,31 +181,26 @@
}, },
props: ['platInfo'], props: ['platInfo'],
created() { created() {
this.webs = this.webs.length === 0 && sessionStorage.getItem('webs') ? JSON.parse(sessionStorage.getItem('webs')) : this.webs; this.checkedWebs = this.webs = this.webs.length === 0 && sessionStorage.getItem('webs') ? JSON.parse(sessionStorage.getItem('webs')) : this.webs;
this.currencies = this.currencies.length === 0 && sessionStorage.getItem('currencies') ? JSON.parse(sessionStorage.getItem('currencies')) : this.currencies; this.checkedCurrencies = this.currencies = this.currencies.length === 0 && sessionStorage.getItem('currencies') ? JSON.parse(sessionStorage.getItem('currencies')) : this.currencies;
this.init(); this.init();
Bus.$on('refresh', ()=>{ Bus.$on('refresh', ()=>{
this.robotAccount = this._robotAccount =''; this.robotAccount = this._robotAccount ='';
this.checkAll = false; this.checkAll = true;
this.isIndeterminate = true; this.isIndeterminate = true;
this.foldExchange = true; this.foldExchange = true;
this.checkAll0 = false; this.checkAll0 = true;
this.isIndeterminate0 = true; this.isIndeterminate0 = true;
this.foldExchange0 = true; this.foldExchange0 = true;
this.checkAll1 = false; this.checkAll1 = true;
this.checkedPairs = [];
this.isIndeterminate1 = true; this.isIndeterminate1 = true;
this.foldExchange1 = true; this.foldExchange1 = true;
this.checkedWebs = []; this.checkedWebs = this.webs;
this.checkedCurrencies = []; this.checkedCurrencies = this.currencies;
this.checkedPairs = []; this.checkedPairs = this.pairs;
this.robotStatus = '', //机器人状态 this.robotStatus = '', //机器人状态
this.subtitle = '所有机器人'; this.subtitle = '所有机器人';
this.init(); this.init();
/* setTimeout(()=>{
this.init();
},0)*/
}); });
Bus.$on('back', ()=>{ Bus.$on('back', ()=>{
this.init('back'); this.init('back');
...@@ -240,7 +235,7 @@ ...@@ -240,7 +235,7 @@
this.showPairFilter = true; this.showPairFilter = true;
this.showWebFilter = this.showCurrencyFilter = false; this.showWebFilter = this.showCurrencyFilter = false;
var index = +RoutePath; var index = +RoutePath;
this.pairs = JSON.parse(sessionStorage.getItem('platInfo'))[index].symbol; this.checkedPairs = this.pairs = JSON.parse(sessionStorage.getItem('platInfo'))[index].symbol;
this.platform = JSON.parse(sessionStorage.getItem('platInfo'))[index].platform; this.platform = JSON.parse(sessionStorage.getItem('platInfo'))[index].platform;
StatusParams.platform = this.platform; StatusParams.platform = this.platform;
this.RobotListParams.platform = [this.platform]; this.RobotListParams.platform = [this.platform];
...@@ -306,9 +301,10 @@ ...@@ -306,9 +301,10 @@
this.robotAccount = this._robotAccount =''; this.robotAccount = this._robotAccount ='';
this.checkedWebs = val ? this.webs : []; this.checkedWebs = val ? this.webs : [];
this.isIndeterminate = false; this.isIndeterminate = false;
this.currencies = this.allCurrencies; this.currencies = JSON.parse(sessionStorage.getItem('currencies'));
this.checkedCurrencies = []; // console.log(this.allCurrencies);
this.checkAll0 = false; this.checkedCurrencies = this.currencies;
this.checkAll0 = true;
let ListParams = this.RobotListParams; let ListParams = this.RobotListParams;
ListParams.platform = []; ListParams.platform = [];
const RoutePath = this.$route.params.name; const RoutePath = this.$route.params.name;
......
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