Compare commits

..

No commits in common. "2ffa3385db5eda6d529cc9d9e1e898803f481c38" and "14395e63d5e2c10fbd221200e40ef23affe89b3d" have entirely different histories.

2 changed files with 13 additions and 42 deletions

View File

@ -174,9 +174,6 @@ export default {
regAddress: code, regAddress: code,
num: el.target.value, num: el.target.value,
}; // }; //
if (store.nowInput != el.target.value) {
this.changeData(data);
}
// if(this.timer){ // if(this.timer){
// this.timer && clearInterval(this.timer); // this.timer && clearInterval(this.timer);
// this.changeData(data); // this.changeData(data);

View File

@ -237,34 +237,8 @@ export default {
value: parseInt(num, 2), value: parseInt(num, 2),
}, },
}; };
this.changeBtn(store.formulaNum[this.indexs - 1] + 3, dataNum); this.change(store.formulaNum[this.indexs - 1] + 3, dataNum);
}, },
//
changeBtn(code, el) {
var store = this.$store.state
var data = {
equipmentId: store.equipmentList[store.equipmentIndex - 1].deviceId,
regAddress: code,
num: el.target.value,
};
this.delayTimerBtn(0, data);
},
//btn j*100
delayTimerBtn(i, data) {
const that = this;
//
let j = this.$store.state.lateSendBtn;
//
this.timer && clearInterval(this.timer);
this.timer = setInterval(() => {
++i;
if (i == j) {
that.changeData(data);
clearInterval(this.timer);
}
}, 100);
},
getSeldata3(num) { getSeldata3(num) {
var number = this.padString(num.toString(2), 9) var number = this.padString(num.toString(2), 9)
this.numlist = number.split('') this.numlist = number.split('')
@ -404,19 +378,19 @@ export default {
}, },
// j*100 // j*100
delayTimer(i, data) { delayTimer(i, data) {
const that = this; // const that = this;
// // //
let j = this.$store.state.lateSend; // let j = this.$store.state.lateSend;
// // //
this.timer && clearInterval(this.timer); // this.timer && clearInterval(this.timer);
this.timer = setInterval(() => { // this.timer = setInterval(() => {
++i; // ++i;
if (i == j) { // if (i == j) {
that.changeData(data); // that.changeData(data);
clearInterval(this.timer); // clearInterval(this.timer);
} // }
}, 100); // }, 100);
}, },
changeData(data) { changeData(data) {
var store = this.$store.state var store = this.$store.state