Compare commits
No commits in common. "8261f38e9a3e79c21fd2441da4c6ee58893103c7" and "c2b346a609c8469abb5eb9c3ea192df6e409d710" have entirely different histories.
8261f38e9a
...
c2b346a609
|
@ -222,7 +222,6 @@ export default {
|
|||
dataSel: '',
|
||||
store: this.$store.state,
|
||||
loading:null,
|
||||
numlist:[],
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -310,17 +309,14 @@ export default {
|
|||
}, 100);
|
||||
},
|
||||
getSeldata3(num) {
|
||||
var number = this.padString(num.toString(2), 16)
|
||||
var number = this.padString(num.toString(2), 9)
|
||||
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[index].open = true
|
||||
if (Number(el)) {
|
||||
this.tableData[this.tableData.length - 1 - index].open = true
|
||||
} else {
|
||||
this.tableData[index].open = false
|
||||
this.tableData[this.tableData.length - 1 - index].open = false
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
padString(str, length) {
|
||||
|
|
|
@ -252,22 +252,20 @@ return num
|
|||
var inputData = this.inputData
|
||||
var list1 = this.padString(inputData['272'].toString(2), 6)
|
||||
var listData = list1.split('')
|
||||
|
||||
if (Number(listData[listData.length - 1 - this.active])==1) {
|
||||
|
||||
if (Number(listData[listData.length - 1 - this.active])) {
|
||||
listData[listData.length - 1 - this.active] = '0'
|
||||
this.openList.splice(this.openList.indexOf(this.active), 1)
|
||||
} else {
|
||||
listData[listData.length - 1 - this.active] = '1'
|
||||
this.openList.push(this.active)
|
||||
}
|
||||
|
||||
var listNew = listData.join("");
|
||||
var dataNum = {
|
||||
target: {
|
||||
value: parseInt(listNew, 2),
|
||||
},
|
||||
};
|
||||
this.inputData['272']=parseInt(listNew, 2)
|
||||
this.changeBtn('272', dataNum);
|
||||
},
|
||||
getData272() {
|
||||
|
@ -277,6 +275,7 @@ return num
|
|||
this.openList = []
|
||||
|
||||
for (var i = 0; i < number; i++) {
|
||||
console.log(Number(list1[list1.length - 1 - i]));
|
||||
if (Number(list1[list1.length - 1 - i])) {
|
||||
this.openList.push(i)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue