From 10896c6dec70fa66754be30fd92787a46a7f767c Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Fri, 26 Nov 2021 14:24:47 +0800 Subject: [PATCH] add air detail verdict --- src/subpackage/device/pages/switch_manage/switch_manage.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/subpackage/device/pages/switch_manage/switch_manage.vue b/src/subpackage/device/pages/switch_manage/switch_manage.vue index 2d35389..5c0e8e2 100644 --- a/src/subpackage/device/pages/switch_manage/switch_manage.vue +++ b/src/subpackage/device/pages/switch_manage/switch_manage.vue @@ -46,7 +46,7 @@ {{pageInfo.detailName || '-'}} - + 详情 @@ -117,6 +117,12 @@ export default { }) }, methods: { + isDetailBtn(e){ + if(e&&e.toString() === "[object Object]"){ + return e.hardware_model == 'XiaoHuiXiong' + } + return false; + }, toDeviceDetail(e){ console.warn(e); console.warn(this.getSwitchStatusQuery(e)); @@ -443,7 +449,7 @@ function getShowArr(key){ openName: '开', closeName: '关', longOpenName: '长开', timingName: '定时', hardware_type: 'Light',iconNum:4 }, 's2': { - id: 2, name: '空调管理', isOpen: true, isClose: true, isDetailBtn: true, + id: 2, name: '空调管理', isOpen: true, isClose: true, openIcon: '/subpackage/device/static/images/open.png', closeIcon: '/subpackage/device/static/images/close.png', openName: '开', closeName: '关', hardware_type: 'Air',iconNum:2