pull/15/head
孙萌 2023-10-16 15:58:58 +08:00
parent 9aa46b6aed
commit d7131321c8
1 changed files with 21 additions and 7 deletions

View File

@ -26,7 +26,7 @@
</div>
<div class="input-main">
<span>手动启动时间</span>
<input @blur="blurChange(10 + (indexs - 1) + '01', $event)"
<input @blur="blurChange10(10 + (indexs - 1) + '01', $event)"
v-model="inputData[10 + (indexs - 1) + '01']"
@input="changeData10(10 + (indexs - 1) + '01', $event)"
type="text"
@ -253,7 +253,7 @@
</div>
<div class="input-main-80">
<span>每次灌溉时长</span>
<input @blur="blurChange(10 + (indexs - 1) + '06', $event)"
<input @blur="blurChange10(10 + (indexs - 1) + '06', $event)"
v-model="inputData[10 + (indexs - 1) + '06']"
@input="changeData10(10 + (indexs - 1) + '06', $event)"
type="number"
@ -379,7 +379,7 @@
</div>
<div class="input-main-80">
<span>每次灌溉时长</span>
<input @blur="blurChange(10 + (indexs - 1) + '17', $event)"
<input @blur="blurChange10(10 + (indexs - 1) + '17', $event)"
v-model="inputData[10 + (indexs - 1) + '17']"
@input="changeData10(10 + (indexs - 1) + '17', $event)"
type="number"
@ -565,7 +565,7 @@
<div class="model1-content model3-content">
<div class="input-main-80">
<span class="text">启动时灌湛时长</span>
<input @blur="blurChange(10 + (indexs - 1) + '40', $event)"
<input @blur="blurChange10(10 + (indexs - 1) + '40', $event)"
v-model="inputData[10 + (indexs - 1) + '40']"
@input="changeData10(10 + (indexs - 1) + '40', $event)"
type="number"
@ -594,7 +594,7 @@
</div>
<div class="input-main-80">
<span class="text" style="padding-left: 20px">最短灌溉间隔</span>
<input @blur="blurChange(10 + (indexs - 1) + '43', $event)"
<input @blur="blurChange10(10 + (indexs - 1) + '43', $event)"
v-model="inputData[10 + (indexs - 1) + '43']"
@input="changeData10(10 + (indexs - 1) + '43', $event)"
type="number"
@ -603,7 +603,7 @@
</div>
<div class="input-main-80">
<span class="text">最长灌溉间隔</span>
<input @blur="blurChange(10 + (indexs - 1) + '44', $event)"
<input @blur="blurChange10(10 + (indexs - 1) + '44', $event)"
v-model="inputData[10 + (indexs - 1) + '44']"
@input="changeData10(10 + (indexs - 1) + '44', $event)"
type="number"
@ -687,7 +687,7 @@
</div>
<div class="input-main-80">
<span class="text">灌溉时长上限</span>
<input @blur="blurChange(10 + (indexs - 1) + '39', $event)"
<input @blur="blurChange10(10 + (indexs - 1) + '39', $event)"
v-model="inputData[10 + (indexs - 1) + '39']"
@input="changeData10(10 + (indexs - 1) + '39', $event)"
type="number"
@ -980,6 +980,20 @@ export default {
selectValue(e) {
e.currentTarget.select();
},
//
blurChange10(code, el) {
var store=this.$store.state
var data = {
equipmentId: store.equipmentList[store.equipmentIndex-1].deviceId,
regAddress: code,
num: el.target.value*10,
}; //
if(this.timer){
this.timer && clearInterval(this.timer);
this.changeData(data);
}
},
//
blurChange(code, el) {
var store=this.$store.state