Browse Source

修改照明开关灯

organize
zmt 3 years ago
parent
commit
f2d7cfdd12
  1. 10
      src/subpackage/device/pages/switch_manage/switch_manage.vue

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

@ -177,7 +177,7 @@ export default {
//->& 20201224 5
///
if(status == 2) return util.showNone("该功能暂未开放")
// if(status == 2) return util.showNone("")
if(status == 4){
@ -213,7 +213,11 @@ export default {
device: curStoreInfo.device_name, // ,
data: _query, // src\subpackage\device\js\ouxuanac.md
};
//2021-12-17 set-rpio set-rpio-lock () set-rpio-lock
if(switchInfo.hardware_type=="Light"&&_data.data.value.status=="high")_data.data.name = "set-rpio-lock"
if(switchInfo.hardware_type=="Light"&&status==2)_data.data.name = "set-rpio-lock"
//->& 20201224 5
if(switchInfo.hardware_type === 'AccessControl'&&status == 0)_data['delay'] = '5';
@ -385,7 +389,7 @@ export default {
// High = "high", //
// status 0 -> 1 -> ,2 -> ,3 -> , 4 ->()
getRelayStatus(status){
return [ 'high', 'low', '', 'high', ''][status] || ''
return [ 'high', 'low', 'low', 'high', ''][status] || ''
},
//

Loading…
Cancel
Save