This commit is contained in:
Iruka 2025-02-19 16:37:55 +08:00
parent 2e5f8feb0b
commit 00031ab2b6

View File

@ -338,18 +338,51 @@
</view> </view>
</view> </view>
<view class="cards-content"> <view class="cards-content">
<view class="txt-list"> <view class="txt-list" v-if="item.data && item.data.items">
<view class="list2"> <view class="list2">
<!-- <view style="width: 50%;"> <view style="width: 50%;">
<text>层数</text>{{ item.floors }} <text>降雨</text>
{{ item.data.items.rs ? (item.data.items.rs.value == "0" ? "无雨" : "降雨"): "-" }}
</view> </view>
<view style="width: 50%;"> <view style="width: 50%;">
<text>深度</text>{{ item.depth }} <text>光照度</text>
</view> --> {{ item.data.items.il ? (item.data.items.il.value || "-"): "-" }}Lux
</view>
</view>
</view>
<view class="txt-list">
<view class="list2" v-if="item.data && item.data.items">
<view style="width: 50%;">
<text>诱虫灯</text>{{ item.data.items.aw.value === '1' ? '打开' : '关闭' }}
</view>
<view style="width: 50%;">
<text>震动装置</text>{{ item.data.items.sk.value === '1' ? '打开' : '关闭' }}
</view>
<view style="width: 50%;">
<text>虫雨挡板</text>{{ item.data.items.rf.value === '1' ? '打开' : '关闭' }}
</view>
<view style="width: 50%;">
<text>补光灯</text>{{ item.data.items.fl.value === '1' ? '打开' : '关闭' }}
</view>
<view style="width: 50%;">
<text>杀虫挡板</text>{{ item.data.items.wf.value === '1' ? '打开' : '关闭' }}
</view>
<view style="width: 50%;">
<text>杀虫控制</text>{{ item.data.items.itc.value === '1' ? '打开' : '关闭' }}
</view>
<view style="width: 50%;">
<text>烘干挡板</text>{{ item.data.items.df.value === '1' ? '打开' : '关闭' }}
</view>
<view style="width: 50%;">
<text>烘干控制</text>{{ item.data.items.d.value === '1' ? '打开' : '关闭' }}
</view>
<view style="width: 50%;">
<text>移虫装置</text>{{ item.data.items.mw.value === '1' ? '打开' : '关闭' }}
</view>
</view> </view>
</view> </view>
<view class="btn-grid"> <view class="btn-grid">
<u-button type="primary" size="normal" text="运行模式" /> <u-button type="primary" size="normal" text="运行模式" @click="cqRunModel(item)" />
</view> </view>
</view> </view>
</view> </view>
@ -731,7 +764,6 @@
/************************************************** 墒情 **************************************************/ /************************************************** 墒情 **************************************************/
qxzSetConfig(item) { qxzSetConfig(item) {
console.error("item:", item);
this.$refs.qxzRef.show(); this.$refs.qxzRef.show();
this.qxz.item = item; this.qxz.item = item;
this.qxz.intervalTime = item?.intervalTime || 10; this.qxz.intervalTime = item?.intervalTime || 10;
@ -742,6 +774,10 @@
} }
}, },
/************************************************** 墒情 **************************************************/
cqRunModel(item) {
console.error("item:", item)
},
/************************************************** 公共 **************************************************/ /************************************************** 公共 **************************************************/