fix:换成枚举
This commit is contained in:
@@ -316,6 +316,15 @@
|
|||||||
delete infoObject.value.dataSourcesWay;
|
delete infoObject.value.dataSourcesWay;
|
||||||
infoObject.value.comparisonType = infoObject.value.comparisonType.split(',');
|
infoObject.value.comparisonType = infoObject.value.comparisonType.split(',');
|
||||||
infoObject.value.ruleType = infoObject.value.ruleType + '';
|
infoObject.value.ruleType = infoObject.value.ruleType + '';
|
||||||
|
//枚举 需要重新赋值
|
||||||
|
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 || [];
|
infoObject.value.alarmList = infoObject.value.hxAlarmRuleLogicList || [];
|
||||||
delete infoObject.value.hxAlarmRuleLogicList;
|
delete infoObject.value.hxAlarmRuleLogicList;
|
||||||
//获取设备/节点
|
//获取设备/节点
|
||||||
|
@@ -320,6 +320,15 @@
|
|||||||
getDevicePoint({ id: infoObject.value.deviceName });
|
getDevicePoint({ id: infoObject.value.deviceName });
|
||||||
// 回显 选择设备类型
|
// 回显 选择设备类型
|
||||||
findParentIds(deviceTypeTreeData.value, infoObject.value.deviceType, selectDevice.value);
|
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 || [];
|
infoObject.value.alarmList = infoObject.value.hxAlarmRuleLogicList || [];
|
||||||
delete infoObject.value.hxAlarmRuleLogicList;
|
delete infoObject.value.hxAlarmRuleLogicList;
|
||||||
infoObject.value.deviceType = selectDevice;
|
infoObject.value.deviceType = selectDevice;
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
@ok="handleOk"
|
@ok="handleOk"
|
||||||
@cancel="handleCancel">
|
@cancel="handleCancel">
|
||||||
<div style="width: 100%; height: 480px; display: flex">
|
<div style="width: 100%; height: 480px; display: flex">
|
||||||
<div style="width: 300px; height: 100%; overflow-y: auto; padding: 0px, 12px">
|
<div style="width: 300px; height: 100%; overflow-y: auto; padding: 0, 12px; gap: 5px">
|
||||||
<div style="width: 100%; display: flex; position: relative">
|
<div style="width: 100%; display: flex; position: relative">
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
@@ -52,7 +52,27 @@
|
|||||||
</template>
|
</template>
|
||||||
</a-tree>
|
</a-tree>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: calc(100% - 200px); height: 100%; padding: 12px"> 2</div>
|
<div style="width: calc(100% - 200px); height: 100%; padding: 0, 24px; overflow-y: auto">
|
||||||
|
<div style="width: 100%; display: flex; position: relative">
|
||||||
|
<div
|
||||||
|
style="
|
||||||
|
border-width: 0px;
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
top: 5px;
|
||||||
|
width: 5px;
|
||||||
|
height: 15px;
|
||||||
|
background: inherit;
|
||||||
|
background-color: rgba(251, 156, 67, 1);
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
"></div>
|
||||||
|
<span style="margin-left: 24px; color: #333333">人员列表</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
|
Reference in New Issue
Block a user