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

样式修改1

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