Compare commits
No commits in common. "2ffa3385db5eda6d529cc9d9e1e898803f481c38" and "14395e63d5e2c10fbd221200e40ef23affe89b3d" have entirely different histories.
2ffa3385db
...
14395e63d5
@ -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);
|
||||||
|
@ -237,33 +237,7 @@ 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)
|
||||||
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user