修改了开门控制器细节

修改了开门控制器细节
This commit is contained in:
chenze 2024-09-07 18:05:50 +08:00
parent 54508b3d96
commit 964d1511e7

View File

@ -75,7 +75,8 @@ Page({
getAllDeviceInfoByRoomIdRq(_this.data.roomId).then(res => {
console.log('getAllDeviceInfoByRoomIdRq', res);
let equipmentList = res.data.map(item => _this.formatDevice(item))
equipmentList = equipmentList.filter(item => item.type != '门锁')
equipmentList = equipmentList.filter(item => item.type != '门锁')
equipmentList = equipmentList.filter(item => item.type != '开门控制器')
let lockDoor = res.data.find(item => item.type == '门锁')
let controlDoor = res.data.find(item => item.type == '开门控制器')
console.log('开门控制器-------',controlDoor);