fix:换成枚举
This commit is contained in:
@@ -320,6 +320,15 @@
|
||||
getDevicePoint({ id: infoObject.value.deviceName });
|
||||
// 回显 选择设备类型
|
||||
findParentIds(deviceTypeTreeData.value, infoObject.value.deviceType, selectDevice.value);
|
||||
//枚举 需要重新赋值
|
||||
if (
|
||||
infoObject.value.hxAlarmRuleLogicList &&
|
||||
infoObject.value.hxAlarmRuleLogicList.length > 0
|
||||
) {
|
||||
infoObject.value.hxAlarmRuleLogicList.forEach((item: any) => {
|
||||
item.logic = item.logic.value;
|
||||
});
|
||||
}
|
||||
infoObject.value.alarmList = infoObject.value.hxAlarmRuleLogicList || [];
|
||||
delete infoObject.value.hxAlarmRuleLogicList;
|
||||
infoObject.value.deviceType = selectDevice;
|
||||
|
Reference in New Issue
Block a user