Browse Source

add air detail verdict

organize
刘嘉炜 3 years ago
parent
commit
10896c6dec
  1. 10
      src/subpackage/device/pages/switch_manage/switch_manage.vue

10
src/subpackage/device/pages/switch_manage/switch_manage.vue

@ -46,7 +46,7 @@
<view >{{pageInfo.detailName || '-'}}</view> <view >{{pageInfo.detailName || '-'}}</view>
</view> </view>
</view> </view>
<view class="si-detail-btn" v-if="pageInfo.isDetailBtn" @click="toDeviceDetail(e)">
<view class="si-detail-btn" v-if="isDetailBtn(e)" @click="toDeviceDetail(e)">
<text>详情</text> <text>详情</text>
<image mode="aspectFit" src="/subpackage/device/static/images/arrow_b2.png"></image> <image mode="aspectFit" src="/subpackage/device/static/images/arrow_b2.png"></image>
</view> </view>
@ -117,6 +117,12 @@ export default {
}) })
}, },
methods: { methods: {
isDetailBtn(e){
if(e&&e.toString() === "[object Object]"){
return e.hardware_model == 'XiaoHuiXiong'
}
return false;
},
toDeviceDetail(e){ toDeviceDetail(e){
console.warn(e); console.warn(e);
console.warn(this.getSwitchStatusQuery(e)); console.warn(this.getSwitchStatusQuery(e));
@ -443,7 +449,7 @@ function getShowArr(key){
openName: '开', closeName: '关', longOpenName: '长开', timingName: '定时', hardware_type: 'Light',iconNum:4 openName: '开', closeName: '关', longOpenName: '长开', timingName: '定时', hardware_type: 'Light',iconNum:4
}, },
's2': { 's2': {
id: 2, name: '空调管理', isOpen: true, isClose: true, isDetailBtn: true,
id: 2, name: '空调管理', isOpen: true, isClose: true,
openIcon: '/subpackage/device/static/images/open.png', openIcon: '/subpackage/device/static/images/open.png',
closeIcon: '/subpackage/device/static/images/close.png', closeIcon: '/subpackage/device/static/images/close.png',
openName: '开', closeName: '关', hardware_type: 'Air',iconNum:2 openName: '开', closeName: '关', hardware_type: 'Air',iconNum:2

Loading…
Cancel
Save