1
This commit is contained in:
parent
537ff06025
commit
8200232940
@ -81,7 +81,17 @@
|
||||
<view :class="right2Index.indexOf(index + 4) != -1?'item_act':'item'" v-for="(item,index) in rightList2.slice(4, 8)" :key="index">{{item}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- <view class="set">
|
||||
<view class="item" >
|
||||
<view class="left">
|
||||
土壤传感器
|
||||
</view>
|
||||
<view class="right">
|
||||
<text>查看</text>
|
||||
<image src="../../static/downArrow.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="set">
|
||||
<view class="item" v-for="(item,index) in 16" :key="index" @click="showPop(index+1)">
|
||||
<view class="left">
|
||||
@ -107,11 +117,11 @@
|
||||
控制模式:
|
||||
</view>
|
||||
<view class="model">
|
||||
<text @click="change00(1)" :class="topActive==1?'stop_act':'stop'"
|
||||
<text @click="change00(3)" :class="inputData1['1'+(10 + (indexs - 1)) + '00']==3?'stop_act':'stop'"
|
||||
class="stop">停止</text>
|
||||
<text @click="change00(2)" :class="topActive==2?'hand_act':'hand'" class="hand"
|
||||
<text @click="change00(2)" :class="inputData1['1'+(10 + (indexs - 1)) + '00']==2?'hand_act':'hand'" class="hand"
|
||||
style="width: 140rpx;">手动启动</text>
|
||||
<text @click="change00(3)" :class="topActive==3?'auto_act':'auto'">自动</text>
|
||||
<text @click="change00(1)" :class="inputData1['1'+(10 + (indexs - 1)) + '00']==1?'auto_act':'auto'">自动</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="line_pop"></view>
|
||||
@ -149,6 +159,14 @@
|
||||
电磁阀控制通道
|
||||
</view>
|
||||
<view class="input-view">
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '52']" @blur="change('1'+(10 + (indexs - 1)) + '52', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '53']" @blur="change('1'+(10 + (indexs - 1)) + '53', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '54']" @blur="change('1'+(10 + (indexs - 1)) + '54', $event)"
|
||||
type="number" placeholder="0" />
|
||||
@ -161,36 +179,28 @@
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '56']" @blur="change('1'+(10 + (indexs - 1)) + '56', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="input-view">
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '57']" @blur="change('1'+(10 + (indexs - 1)) + '57', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '58']" @blur="change('1'+(10 + (indexs - 1)) + '58', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '59']" @blur="change('1'+(10 + (indexs - 1)) + '59', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '60']" @blur="change('1'+(10 + (indexs - 1)) + '60', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="input-view">
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '61']" @blur="change('1'+(10 + (indexs - 1)) + '61', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '62']" @blur="change('1'+(10 + (indexs - 1)) + '62', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '63']" @blur="change('1'+(10 + (indexs - 1)) + '63', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '64']" @blur="change('1'+(10 + (indexs - 1)) + '64', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
<view class="irrigate_input">
|
||||
<input v-model="inputData1['1'+(10 + (indexs - 1)) + '65']" @blur="change('1'+(10 + (indexs - 1)) + '65', $event)"
|
||||
type="number" placeholder="0" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="line_pop"></view>
|
||||
@ -471,7 +481,7 @@
|
||||
uni.hideLoading()
|
||||
// uni.stopPullDownRefresh();
|
||||
this.inputData1 = res.data;
|
||||
this.getType00();
|
||||
// this.getType00();
|
||||
this.get59()
|
||||
|
||||
this.inputData1['1'+(10 + (this.indexs - 1)) + '01'] = this.countData10(this.inputData1['1'+(10 + (this.indexs - 1)) + '01'])
|
||||
@ -506,26 +516,26 @@
|
||||
title: '加载中...'
|
||||
})
|
||||
this.topActive = index
|
||||
var list = ["0", "0", "0"];
|
||||
if (index == 1) {
|
||||
list[0] = "1";
|
||||
} else {
|
||||
list[0] = "0";
|
||||
}
|
||||
if (index == 2) {
|
||||
list[1] = "1";
|
||||
} else {
|
||||
list[1] = "0";
|
||||
}
|
||||
if (index == 3) {
|
||||
list[2] = "1";
|
||||
} else {
|
||||
list[2] = "0";
|
||||
}
|
||||
var num = list.join("");
|
||||
// var list = ["0", "0", "0"];
|
||||
// if (index == 1) {
|
||||
// list[0] = "1";
|
||||
// } else {
|
||||
// list[0] = "0";
|
||||
// }
|
||||
// if (index == 2) {
|
||||
// list[1] = "1";
|
||||
// } else {
|
||||
// list[1] = "0";
|
||||
// }
|
||||
// if (index == 3) {
|
||||
// list[2] = "1";
|
||||
// } else {
|
||||
// list[2] = "0";
|
||||
// }
|
||||
// var num = list.join("");
|
||||
var dataNum = {
|
||||
target: {
|
||||
value: parseInt(num, 2),
|
||||
value:index,
|
||||
},
|
||||
};
|
||||
this.change('1'+(10 + (this.indexs - 1)) + "00", dataNum);
|
||||
|
Loading…
x
Reference in New Issue
Block a user