pull/176/head
parent
c2fb01610f
commit
33d3afe964
|
@ -312,14 +312,12 @@ export default {
|
|||
getSeldata3(num) {
|
||||
var number = this.padString(num.toString(2), 16)
|
||||
this.numlist = number.split('')
|
||||
|
||||
|
||||
this.numlist.forEach((el, index) => {
|
||||
if(index<this.tableData.length){
|
||||
if (Number(this.numlist[this.numlist.length - 1 - index])) {
|
||||
this.tableData[this.tableData.length - 1 - index].open = true
|
||||
this.tableData[index].open = true
|
||||
} else {
|
||||
this.tableData[this.tableData.length - 1 - index].open = false
|
||||
this.tableData[index].open = false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue