pull/176/head
parent
82b23d3247
commit
c2fb01610f
|
@ -222,6 +222,7 @@ export default {
|
|||
dataSel: '',
|
||||
store: this.$store.state,
|
||||
loading:null,
|
||||
numlist:[],
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -309,14 +310,19 @@ export default {
|
|||
}, 100);
|
||||
},
|
||||
getSeldata3(num) {
|
||||
var number = this.padString(num.toString(2), 9)
|
||||
var number = this.padString(num.toString(2), 16)
|
||||
this.numlist = number.split('')
|
||||
|
||||
|
||||
this.numlist.forEach((el, index) => {
|
||||
if (Number(el)) {
|
||||
if(index<this.tableData.length){
|
||||
if (Number(this.numlist[this.numlist.length - 1 - index])) {
|
||||
this.tableData[this.tableData.length - 1 - index].open = true
|
||||
} else {
|
||||
this.tableData[this.tableData.length - 1 - index].open = false
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
padString(str, length) {
|
||||
|
|
Loading…
Reference in New Issue