修改
This commit is contained in:
parent
3b7c43092b
commit
18dc5d5795
@ -40,47 +40,47 @@
|
|||||||
<view class="grid">
|
<view class="grid">
|
||||||
<view>
|
<view>
|
||||||
<text class="text">诱虫灯</text>
|
<text class="text">诱虫灯</text>
|
||||||
<u-button type="success" :text="`${itemProperty.aw === '1'? '打开':'关闭'}`" :class="[itemProperty.aw === '1' ? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.aw === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.aw === '1' ? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.aw,'aw')" />
|
@click="controlHeadSwitch(item,itemProperty.aw,'aw')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="text">震动装置</text>
|
<text class="text">震动装置</text>
|
||||||
<u-button type="success" :text="`${itemProperty.sk === '1'? '打开':'关闭'}`" :class="[itemProperty.sk === '1' ? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.sk === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.sk === '1' ? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.sk,'sk')" />
|
@click="controlHeadSwitch(item,itemProperty.sk,'sk')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="text">虫雨挡板</text>
|
<text class="text">虫雨挡板</text>
|
||||||
<u-button type="success" :text="`${itemProperty.rf === '1'? '打开':'关闭'}`" :class="[itemProperty.rf === '1' ? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.rf === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.rf === '1' ? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.rf,'rf')" />
|
@click="controlHeadSwitch(item,itemProperty.rf,'rf')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="text">补光灯</text>
|
<text class="text">补光灯</text>
|
||||||
<u-button type="success" :text="`${itemProperty.fl === '1'? '打开':'关闭'}`" :class="[itemProperty.fl === '1' ? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.fl === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.fl === '1' ? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.fl,'fl')" />
|
@click="controlHeadSwitch(item,itemProperty.fl,'fl')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="text">杀虫挡板</text>
|
<text class="text">杀虫挡板</text>
|
||||||
<u-button type="success" :text="`${itemProperty.wf === '1'? '打开':'关闭'}`" :class="[itemProperty.wf === '1' ? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.wf === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.wf === '1' ? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.wf,'wf')" />
|
@click="controlHeadSwitch(item,itemProperty.wf,'wf')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="text">杀虫控制</text>
|
<text class="text">杀虫控制</text>
|
||||||
<u-button type="success" :text="`${itemProperty.itc === '1'? '打开':'关闭'}`" :class="[itemProperty.itc === '1' ? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.itc === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.itc === '1' ? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.itc,'itc')" />
|
@click="controlHeadSwitch(item,itemProperty.itc,'itc')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="text">烘干挡板</text>
|
<text class="text">烘干挡板</text>
|
||||||
<u-button type="success" :text="`${itemProperty.df === '1'? '打开':'关闭'}`" :class="[itemProperty.df === '1' ? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.df === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.df === '1' ? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.df,'df')" />
|
@click="controlHeadSwitch(item,itemProperty.df,'df')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="text">烘干控制</text>
|
<text class="text">烘干控制</text>
|
||||||
<u-button type="success" :text="`${itemProperty.d === '1'? '打开':'关闭'}`" :class="[itemProperty.d === '1' ? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.d === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.d === '1' ? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.d,'d')" />
|
@click="controlHeadSwitch(item,itemProperty.d,'d')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="text">移虫装置</text>
|
<text class="text">移虫装置</text>
|
||||||
<u-button type="success" :text="`${itemProperty.mw === '1'? '打开':'关闭'}`" :class="[itemProperty.mw === '1'? 'bg-green':'bg-red']"
|
<u-button type="success" :text="`${itemProperty&&itemProperty.mw === '1'? '打开':'关闭'}`" :class="[itemProperty&&itemProperty.mw === '1'? 'bg-green':'bg-red']"
|
||||||
@click="controlHeadSwitch(item,itemProperty.mw,'mw')" />
|
@click="controlHeadSwitch(item,itemProperty.mw,'mw')" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
@ -90,7 +90,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="rowheadstyle" v-if="itemProperty.aal!=null">
|
<view class="rowheadstyle" v-if="itemProperty&&itemProperty.aal!=null">
|
||||||
<u-button text="分析" size="large" type="primary" @click="analysis(item,itemProperty.aal)"></u-button>
|
<u-button text="分析" size="large" type="primary" @click="analysis(item,itemProperty.aal)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
<u-popup :show="showDeviceLog" mode="center">
|
<u-popup :show="showDeviceLog" mode="center">
|
||||||
@ -146,7 +146,7 @@
|
|||||||
shape="square"></u-image></uni-col></uni-row>
|
shape="square"></u-image></uni-col></uni-row>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row class="rowstyle">
|
<!-- <uni-row class="rowstyle">
|
||||||
<uni-col :span="24">
|
<uni-col :span="24">
|
||||||
<uni-row class="col1"><uni-col :span="24">
|
<uni-row class="col1"><uni-col :span="24">
|
||||||
<view class="text2">分析时间</view>
|
<view class="text2">分析时间</view>
|
||||||
@ -155,7 +155,7 @@
|
|||||||
<view class="text2">{{analysisTime}}</view>
|
<view class="text2">{{analysisTime}}</view>
|
||||||
</uni-col></uni-row>
|
</uni-col></uni-row>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row> -->
|
||||||
<view v-for="itemanalyse in analyseData" :key="itemanalyse.name">
|
<view v-for="itemanalyse in analyseData" :key="itemanalyse.name">
|
||||||
<uni-row class="rowstyle">
|
<uni-row class="rowstyle">
|
||||||
<uni-col :span="24">
|
<uni-col :span="24">
|
||||||
|
Loading…
Reference in New Issue
Block a user