add:配置设备告警对接接口 对接告警配置 里面的数据来源 设备节点

This commit is contained in:
zhaohy
2024-07-11 16:45:42 +08:00
parent 4d49ef4e42
commit de7a0ab88a
11 changed files with 793 additions and 405 deletions

View File

@@ -123,7 +123,7 @@ export const equipmentAlarmTableConfig = (
confirm: true,
handle: (data: any) => {
http.post(deviceAlarms.del, { id: data.id }).then(() => {
NsMessage.success('操作成功');
NsMessage.success('告警删除成功');
mainRefEquipmentAlarm.value?.nsTableRef.reload();
});
},
@@ -139,6 +139,7 @@ export const equipmentAlarmTableConfig = (
component: 'NsSelect',
componentProps: {
placeholder: '请选择告警优先级',
allowClear: true,
options: [
{
label: '紧急',
@@ -160,6 +161,7 @@ export const equipmentAlarmTableConfig = (
label: '告警标题',
component: 'NsInput',
componentProps: {
allowClear: true,
placeholder: '请输入告警标题关键字',
},
},
@@ -168,6 +170,7 @@ export const equipmentAlarmTableConfig = (
label: '错误码',
component: 'NsInput',
componentProps: {
allowClear: true,
placeholder: '请输入错误码关键字',
},
},
@@ -177,6 +180,7 @@ export const equipmentAlarmTableConfig = (
component: 'NsSelect',
componentProps: {
placeholder: '请选择启用状态',
allowClear: true,
options: [
{
label: '启用',

View File

@@ -41,7 +41,7 @@ const tableKeyMap = [
},
];
const mockData = ref(data.listData);
export const notificationtableConfig = (el) => {
export const notificationtableConfig = (notificationManagements: any) => {
return {
title: '告警规则',
// api: '/carbon_emission/device/getDeviceList',
@@ -57,7 +57,7 @@ export const notificationtableConfig = (el) => {
name: 'FeedBackDetail',
dynamicParams: ['uuid', 'appealType'],
handle: (data: any) => {
console.log(data, '联系方式');
notificationManagements.value.toggle(data);
},
},
],