fix:配置设备告警 联系方式

This commit is contained in:
zhaohy
2024-07-15 16:00:08 +08:00
parent 4526da936e
commit 098b4f29fd
10 changed files with 613 additions and 227 deletions

View File

@@ -188,9 +188,9 @@
name: 'FeedBackDetail',
dynamicParams: ['uuid', 'appealType'],
confirm: true,
handle: () => {
handle: (data: any) => {
http.post(deviceAlarms.configDel, { ids: data.id }).then(() => {
NsMessage.success('规则删除成功');
NsMessage.success('告警规则删除成功');
mainRef.value?.nsTableRef.reload();
});
},
@@ -216,6 +216,10 @@
resultField: 'data.records',
labelField: 'deviceName',
valueField: 'id',
showSearch: true,
filterOption: (input: string, option: any) => {
return option.deviceName.toLowerCase().indexOf(input.toLowerCase()) >= 0;
},
autoAddLink: true, //默认添加联动
},
},
@@ -234,6 +238,10 @@
labelField: 'code',
valueField: 'id',
dependency: 'deviceName',
showSearch: true,
filterOption: (input: string, option: any) => {
return option.code.toLowerCase().indexOf(input.toLowerCase()) >= 0;
},
},
},
{

View File

@@ -85,6 +85,7 @@
<a-textarea
v-model:value="infoObject.abnormalDescription"
style="height: 32px"
placeholder="请输入异常描述"
:autoSize="{ minRows: 1, maxRows: 1 }"
show-count
:maxlength="30" />
@@ -323,7 +324,6 @@
delete infoObject.value.hxAlarmRuleLogicList;
infoObject.value.deviceType = selectDevice;
infoObject.value.ruleType = infoObject.value.ruleType + '';
console.log(infoObject.value, '数据');
}
});
} else {