|
|
|
@ -212,16 +212,24 @@ |
|
|
|
filterCoin: { |
|
|
|
handler(n, o) { |
|
|
|
if (!n) { |
|
|
|
this.contractListFilter = this.contractList; |
|
|
|
this.Liste = this.contractListFilter[0].marketInfoList; |
|
|
|
} else { |
|
|
|
this.contractListFilter = this.contractList.map((item1, index1) => { |
|
|
|
let arr = item1; |
|
|
|
arr.marketInfoList = item1.marketInfoList.filter(item2 => { |
|
|
|
return item2.symbol.indexOf(n.toUpperCase()) != -1 |
|
|
|
}) |
|
|
|
return arr; |
|
|
|
this.Liste = this.Liste.filter(item2 => { |
|
|
|
return item2.symbol.indexOf(n.toUpperCase()) != -1 |
|
|
|
}) |
|
|
|
} |
|
|
|
// if (!n) { |
|
|
|
// this.contractListFilter = this.contractList; |
|
|
|
// } else { |
|
|
|
// this.contractListFilter = this.contractList.map((item1, index1) => { |
|
|
|
// let arr = item1; |
|
|
|
// arr.marketInfoList = item1.marketInfoList.filter(item2 => { |
|
|
|
// return item2.symbol.indexOf(n.toUpperCase()) != -1 |
|
|
|
// }) |
|
|
|
// console.log(arr,'111'); |
|
|
|
// return arr; |
|
|
|
// }) |
|
|
|
// } |
|
|
|
}, |
|
|
|
immediate: true |
|
|
|
} |
|
|
|
|