|
|
@ -3,7 +3,7 @@ |
|
|
|
<store-name></store-name> |
|
|
|
<view class="sm-tit">{{pageInfo.name || '-'}}</view> |
|
|
|
<view class="sm-tip" v-if="pageInfo.longOpenName"><text>*</text>长开表示不再被系统智能控制,只有手动关闭后才会被智能控制。请谨慎操作。</view> |
|
|
|
<view class="sm-tip" v-if="['Light', 'Air'].includes(pageInfo.hardware_type)">现场电源断开,则无法获取到开关状态;状态是通过硬件发送通知给服务器,则状态获取可能存在延时。</view> |
|
|
|
<view class="sm-tip" v-if="isShowSwitchStatusTip">现场电源断开,则无法获取到开关状态;状态是通过硬件发送通知给服务器,则状态获取可能存在延时。</view> |
|
|
|
<view class="sm-list"> |
|
|
|
<view v-for="(e, i) in deviceList" :key="i" :class="[ 'sl-item', pageInfo.iconNum<=2?'sl-limit':'' ]"> |
|
|
|
|
|
|
@ -23,8 +23,11 @@ |
|
|
|
</view> |
|
|
|
<image mode="aspectFit" src="/subpackage/device/static/images/refresh.png" @click="refreshStatusBtn({switchInfo:e, index:i})"></image> |
|
|
|
</view> |
|
|
|
<view class="sb-open-status" v-if="['Light', 'Air'].includes(e.hardware_type)"> |
|
|
|
当前开关状态:{{ (e.extension&&e.extension.hardware_status_info&&e.extension.hardware_status_info.switch_status) || '-' }} |
|
|
|
<view |
|
|
|
class="sb-open-status" |
|
|
|
v-if="['Light', 'Air'].includes(e.hardware_type)&&(e.extension&&e.extension.hardware_status_info&&e.extension.hardware_status_info.switch_status)" |
|
|
|
> |
|
|
|
当前开关状态:{{ e.extension.hardware_status_info.switch_status || '-' }} |
|
|
|
<image mode="aspectFit" src="/subpackage/device/static/images/refresh.png" @click="refreshOpenStatusBtn(e, i)"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -103,7 +106,13 @@ export default { |
|
|
|
let widthViewArr = ["照明管理","水阀管理","风扇管理"] |
|
|
|
return (widthViewArr.indexOf(this.pageInfo.name)>=0)?'710rpx':''; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
isShowSwitchStatusTip(){ |
|
|
|
let { deviceList, pageInfo } = this; |
|
|
|
let _typeBol = ['Light', 'Air'].includes(pageInfo.hardware_type); |
|
|
|
let _deviceStatusBol = deviceList.some(e=>!!e?.extension?.hardware_status_info?.switch_status); |
|
|
|
return _typeBol&&_deviceStatusBol; |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
curStoreInfo(newVal, oldVal){ |
|
|
|