pull/176/head
sunmeng 2024-09-27 17:00:48 +08:00
parent 82b23d3247
commit c2fb01610f
1 changed files with 8 additions and 2 deletions

View File

@ -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) {