|
@@ -24,8 +24,8 @@
|
|
|
<view class="main-data-panel">
|
|
<view class="main-data-panel">
|
|
|
<view class="data-column-left">
|
|
<view class="data-column-left">
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
- <text class="data-value">{{ objItem.ds == '1' ? '开机' : '关机' }}</text>
|
|
|
|
|
- <text class="data-label">设备开机</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{ objItem.ds }}</text>
|
|
|
|
|
+ <text class="data-label">设备开关</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-value">{{ objItem.ws }}</text>
|
|
<text class="data-value">{{ objItem.ws }}</text>
|
|
@@ -106,6 +106,7 @@
|
|
|
<text class="header-cell">电压状态</text>
|
|
<text class="header-cell">电压状态</text>
|
|
|
<text class="header-cell">定时状态</text>
|
|
<text class="header-cell">定时状态</text>
|
|
|
<text class="header-cell">杀虫数量</text>
|
|
<text class="header-cell">杀虫数量</text>
|
|
|
|
|
+ <text class="header-cell">风扇状态</text>
|
|
|
<text class="header-cell">温度(°C)</text>
|
|
<text class="header-cell">温度(°C)</text>
|
|
|
<text class="header-cell">湿度(%)</text>
|
|
<text class="header-cell">湿度(%)</text>
|
|
|
<text class="header-cell">充电电压</text>
|
|
<text class="header-cell">充电电压</text>
|
|
@@ -120,8 +121,8 @@
|
|
|
class="scrollable-row"
|
|
class="scrollable-row"
|
|
|
>
|
|
>
|
|
|
<text class="body-cell">
|
|
<text class="body-cell">
|
|
|
- <view class="status-icon" :class="item.ds == 1 ? 'success-icon' : 'status-icon'"></view>
|
|
|
|
|
- {{ item.ds == 1? '打开' : '关闭' }}
|
|
|
|
|
|
|
+ <view class="status-icon" :class="item.ds == '开机' ? 'success-icon' : 'status-icon'"></view>
|
|
|
|
|
+ {{ item.ds }}
|
|
|
</text>
|
|
</text>
|
|
|
<text class="body-cell">
|
|
<text class="body-cell">
|
|
|
<view class="status-icon" :class="item.ws == '工作' ? 'success-icon' : 'warning-icon'"></view>
|
|
<view class="status-icon" :class="item.ws == '工作' ? 'success-icon' : 'warning-icon'"></view>
|
|
@@ -152,6 +153,7 @@
|
|
|
{{ item.tt }}
|
|
{{ item.tt }}
|
|
|
</text>
|
|
</text>
|
|
|
<text class="body-cell">{{ item.infr_ct }}</text>
|
|
<text class="body-cell">{{ item.infr_ct }}</text>
|
|
|
|
|
+ <text class="body-cell">{{ getCtFormat(item.ct) }}</text>
|
|
|
<text class="body-cell">{{ item.at }}</text>
|
|
<text class="body-cell">{{ item.at }}</text>
|
|
|
<text class="body-cell">{{ item.ah }}</text>
|
|
<text class="body-cell">{{ item.ah }}</text>
|
|
|
<text class="body-cell">{{ item.cv }}</text>
|
|
<text class="body-cell">{{ item.cv }}</text>
|
|
@@ -421,6 +423,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getCtFormat(ct){
|
|
|
|
|
+ if(ct == 0){
|
|
|
|
|
+ return '停止'
|
|
|
|
|
+ }else if(ct == 1){
|
|
|
|
|
+ return '启动'
|
|
|
|
|
+ }else if(ct == 2){
|
|
|
|
|
+ return '堵转'
|
|
|
|
|
+ }else if(ct == 3){
|
|
|
|
|
+ return '断路'
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return ct
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
async openPhoto(){
|
|
async openPhoto(){
|
|
|
const res = await this.$myRequest({
|
|
const res = await this.$myRequest({
|
|
|
url: '/api/api_gateway?method=forecast.send_control.admin_device_control',
|
|
url: '/api/api_gateway?method=forecast.send_control.admin_device_control',
|