pull/14/head
parent
9aa46b6aed
commit
d7131321c8
|
@ -26,7 +26,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main">
|
<div class="input-main">
|
||||||
<span>手动启动时间</span>
|
<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']"
|
v-model="inputData[10 + (indexs - 1) + '01']"
|
||||||
@input="changeData10(10 + (indexs - 1) + '01', $event)"
|
@input="changeData10(10 + (indexs - 1) + '01', $event)"
|
||||||
type="text"
|
type="text"
|
||||||
|
@ -253,7 +253,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>每次灌溉时长</span>
|
<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']"
|
v-model="inputData[10 + (indexs - 1) + '06']"
|
||||||
@input="changeData10(10 + (indexs - 1) + '06', $event)"
|
@input="changeData10(10 + (indexs - 1) + '06', $event)"
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -379,7 +379,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>每次灌溉时长</span>
|
<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']"
|
v-model="inputData[10 + (indexs - 1) + '17']"
|
||||||
@input="changeData10(10 + (indexs - 1) + '17', $event)"
|
@input="changeData10(10 + (indexs - 1) + '17', $event)"
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -565,7 +565,7 @@
|
||||||
<div class="model1-content model3-content">
|
<div class="model1-content model3-content">
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span class="text">启动时灌湛时长</span>
|
<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']"
|
v-model="inputData[10 + (indexs - 1) + '40']"
|
||||||
@input="changeData10(10 + (indexs - 1) + '40', $event)"
|
@input="changeData10(10 + (indexs - 1) + '40', $event)"
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -594,7 +594,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span class="text" style="padding-left: 20px">最短灌溉间隔</span>
|
<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']"
|
v-model="inputData[10 + (indexs - 1) + '43']"
|
||||||
@input="changeData10(10 + (indexs - 1) + '43', $event)"
|
@input="changeData10(10 + (indexs - 1) + '43', $event)"
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -603,7 +603,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span class="text">最长灌溉间隔</span>
|
<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']"
|
v-model="inputData[10 + (indexs - 1) + '44']"
|
||||||
@input="changeData10(10 + (indexs - 1) + '44', $event)"
|
@input="changeData10(10 + (indexs - 1) + '44', $event)"
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -687,7 +687,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span class="text">灌溉时长上限</span>
|
<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']"
|
v-model="inputData[10 + (indexs - 1) + '39']"
|
||||||
@input="changeData10(10 + (indexs - 1) + '39', $event)"
|
@input="changeData10(10 + (indexs - 1) + '39', $event)"
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -980,6 +980,20 @@ export default {
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
e.currentTarget.select();
|
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) {
|
blurChange(code, el) {
|
||||||
var store=this.$store.state
|
var store=this.$store.state
|
||||||
|
|
Loading…
Reference in New Issue