|
@ -39,14 +39,6 @@ |
|
|
<div class="circuit-tab"></div> |
|
|
<div class="circuit-tab"></div> |
|
|
<span class="circuit-text">{{ props.type }}</span> |
|
|
<span class="circuit-text">{{ props.type }}</span> |
|
|
<div class="btn2"> |
|
|
<div class="btn2"> |
|
|
<!-- <a-badge :offset="[-10, 2]" :count="lockList.length"> |
|
|
|
|
|
<button |
|
|
|
|
|
class="openPlan" |
|
|
|
|
|
:class="{ enabled2: isPlanEnabled2, disabled2: !isPlanEnabled2 }" |
|
|
|
|
|
@click="togglePlan2"> |
|
|
|
|
|
{{ isPlanEnabled2 ? '启用开关' : '禁用开关' }} |
|
|
|
|
|
</button> |
|
|
|
|
|
</a-badge> --> |
|
|
|
|
|
<a-switch |
|
|
<a-switch |
|
|
v-model:checked="selectAllCheckbox" |
|
|
v-model:checked="selectAllCheckbox" |
|
|
:disabled="singleSelection" |
|
|
:disabled="singleSelection" |
|
@ -190,16 +182,27 @@ |
|
|
}}</span></div |
|
|
}}</span></div |
|
|
> |
|
|
> |
|
|
</div> |
|
|
</div> |
|
|
<div class="btn-item"> |
|
|
<div class="btn-item" v-if="url.deviceType != 5"> |
|
|
<div class="left"> 亮度 </div> |
|
|
<div class="left"> 运行模式 </div> |
|
|
|
|
|
<div class="right"> |
|
|
|
|
|
<span>{{ |
|
|
|
|
|
item.stateBefore.runMode.label != null ? item.stateBefore.runMode.label : '--' |
|
|
|
|
|
}}</span> |
|
|
|
|
|
<img src="/asset/image/bulbLogo/22406.png" alt="" /> |
|
|
|
|
|
<span>{{ |
|
|
|
|
|
item.stateAfter.runMode.label != null ? item.stateAfter.runMode.label : '--' |
|
|
|
|
|
}}</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="btn-item" v-if="url.deviceType == 5"> |
|
|
|
|
|
<div class="left"> 开窗幅度 </div> |
|
|
<div class="right"> |
|
|
<div class="right"> |
|
|
<!-- 由于数字0也会被判为false,故只判断undefined 和 null --> |
|
|
|
|
|
<span>{{ |
|
|
<span>{{ |
|
|
item?.stateBefore?.brightness != undefined ? item.stateBefore.brightness : '--' |
|
|
item.stateBefore.openPercent != null ? item.stateBefore.openPercent : '--' |
|
|
}}</span> |
|
|
}}</span> |
|
|
<img src="/asset/image/bulbLogo/22406.png" alt="" /> |
|
|
<img src="/asset/image/bulbLogo/22406.png" alt="" /> |
|
|
<span>{{ |
|
|
<span>{{ |
|
|
item?.stateAfter?.brightness != undefined ? item.stateAfter.brightness : '--' |
|
|
item.stateAfter.openPercent != null ? item.stateAfter.openPercent : '--' |
|
|
}}</span> |
|
|
}}</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -216,14 +219,20 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="btn-item"> |
|
|
<div class="btn-item"> |
|
|
<div class="left"> 色温 </div> |
|
|
<div class="left"> 开启状态 </div> |
|
|
<div class="right"> |
|
|
<div class="right"> |
|
|
<span>{{ |
|
|
<span>{{ |
|
|
item?.stateBefore?.color != undefined ? item.stateBefore.color : '--' |
|
|
item?.stateBefore?.switchStatus?.label != null |
|
|
|
|
|
? item.stateBefore.switchStatus.label |
|
|
|
|
|
: '--' |
|
|
}}</span> |
|
|
}}</span> |
|
|
<img src="/asset/image/bulbLogo/22406.png" alt="" /> |
|
|
<img src="/asset/image/bulbLogo/22406.png" alt="" /> |
|
|
<span> |
|
|
<span> |
|
|
{{ item?.stateAfter?.color != undefined ? item.stateAfter.color : '--' }} |
|
|
{{ |
|
|
|
|
|
item?.stateAfter?.switchStatus?.label != null |
|
|
|
|
|
? item.stateAfter.switchStatus.label |
|
|
|
|
|
: '--' |
|
|
|
|
|
}} |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -231,7 +240,7 @@ |
|
|
<div class="left"> 启用状态 </div> |
|
|
<div class="left"> 启用状态 </div> |
|
|
<div class="right"> |
|
|
<div class="right"> |
|
|
<span>{{ |
|
|
<span>{{ |
|
|
item?.stateBefore?.lockStatus != undefined |
|
|
item?.stateBefore?.lockStatus != null |
|
|
? item.stateBefore.lockStatus |
|
|
? item.stateBefore.lockStatus |
|
|
? '禁用' |
|
|
? '禁用' |
|
|
: '启用' |
|
|
: '启用' |
|
@ -240,7 +249,7 @@ |
|
|
<img src="/asset/image/bulbLogo/22406.png" alt="" /> |
|
|
<img src="/asset/image/bulbLogo/22406.png" alt="" /> |
|
|
<span> |
|
|
<span> |
|
|
{{ |
|
|
{{ |
|
|
item?.stateAfter?.lockStatus != undefined |
|
|
item?.stateAfter?.lockStatus != null |
|
|
? item.stateAfter.lockStatus |
|
|
? item.stateAfter.lockStatus |
|
|
? '禁用' |
|
|
? '禁用' |
|
|
: '启用' |
|
|
: '启用' |
|
@ -292,7 +301,7 @@ |
|
|
url.getList = ventilating.getChangeList2; |
|
|
url.getList = ventilating.getChangeList2; |
|
|
url.sendList = ventilating.sendChangeList2; |
|
|
url.sendList = ventilating.sendChangeList2; |
|
|
url.deviceType = 4; |
|
|
url.deviceType = 4; |
|
|
} else { |
|
|
} else if (props.type == '电动窗') { |
|
|
url.getList = ventilating.getChangeList3; |
|
|
url.getList = ventilating.getChangeList3; |
|
|
url.sendList = ventilating.sendChangeList3; |
|
|
url.sendList = ventilating.sendChangeList3; |
|
|
url.deviceType = 5; |
|
|
url.deviceType = 5; |
|
@ -852,6 +861,7 @@ |
|
|
}; |
|
|
}; |
|
|
// 提交本次修改 |
|
|
// 提交本次修改 |
|
|
const submitChangeList = () => { |
|
|
const submitChangeList = () => { |
|
|
|
|
|
state.setLoading(true); |
|
|
http |
|
|
http |
|
|
.post(url.sendList, { |
|
|
.post(url.sendList, { |
|
|
sceneList: changeList.value, |
|
|
sceneList: changeList.value, |
|
@ -860,6 +870,7 @@ |
|
|
siteId: state.siteId, |
|
|
siteId: state.siteId, |
|
|
}) |
|
|
}) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
|
|
|
state.setLoading(false); |
|
|
let data = res.data; |
|
|
let data = res.data; |
|
|
// 修改请求发送了,但操作时产生了失败结果 |
|
|
// 修改请求发送了,但操作时产生了失败结果 |
|
|
if (res.retcode != 0) { |
|
|
if (res.retcode != 0) { |
|
@ -876,7 +887,9 @@ |
|
|
refresh(true); |
|
|
refresh(true); |
|
|
emit('resetAll'); |
|
|
emit('resetAll'); |
|
|
}) |
|
|
}) |
|
|
.catch(() => {}); |
|
|
.catch(() => { |
|
|
|
|
|
state.setLoading(false); |
|
|
|
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// 其他业务 ======================================================================== |
|
|
// 其他业务 ======================================================================== |
|
|