pull/176/head
sunmeng 2024-09-27 17:20:50 +08:00
parent c2fb01610f
commit 33d3afe964
1 changed files with 2 additions and 4 deletions

View File

@ -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
}
}