|
|
@@ -219,11 +219,21 @@
|
|
|
alarmConfigForm.value.violationType = res.violationType;
|
|
|
alarmConfigForm.value.violationLevel = res.violationLevel;
|
|
|
alarmConfigForm.value.pushChannel = JSON.parse(res.pushChannel as string);
|
|
|
+
|
|
|
+ if (!isDevMode.value) {
|
|
|
+ const result = res.pushPhaseVOList.find((it) => it.pushPhase === AlarmPhase.effects);
|
|
|
+ if (result) {
|
|
|
+ if (result.customUserList)
|
|
|
+ result.customUserList = result.customUserList.map((it) => it.userId);
|
|
|
+ if (result.userGroupList)
|
|
|
+ result.userGroupList = result.userGroupList.map((it) => it.userGroupId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
alarmConfigForm.value.pushPhaseVOList = _.cloneDeep(res.pushPhaseVOList);
|
|
|
submitConfigForm.value.pushPhaseVOList = _.cloneDeep(res.pushPhaseVOList);
|
|
|
alarmConfigForm.value.pushOccasions = res.pushPhaseVOList.map((it) => it.pushPhase);
|
|
|
hasInit.value = true;
|
|
|
-
|
|
|
// 获取的配置填入违规类型
|
|
|
AlarmTypes.value.push({
|
|
|
id: res.violationType,
|