add:对接设备告警 对接设备告警 设备类型 设备名称 设备点位

This commit is contained in:
zhaohy
2024-07-09 15:56:18 +08:00
parent fb1980d73a
commit 50ca1daca4
14 changed files with 1674 additions and 438 deletions

View File

@@ -37,11 +37,11 @@ const tableKeyMap = [
},
{
title: '启用通知',
dataIndex: 'isUse',
dataIndex: 'enableRules',
},
];
const mockData = ref(data.listData);
export const notificationtableConfig = (el, elGroup, elFormula) => {
export const notificationtableConfig = (el) => {
return {
title: '告警规则',
// api: '/carbon_emission/device/getDeviceList',
@@ -60,15 +60,6 @@ export const notificationtableConfig = (el, elGroup, elFormula) => {
console.log(data, '联系方式');
},
},
// {
// label: '删除',
// name: 'FeedBackDetail',
// dynamicParams: ['uuid', 'appealType'],
// confirm: true,
// handle: () => {
// mockData.value.splice(0, 1);
// },
// },
],
},
@@ -82,12 +73,16 @@ export const notificationtableConfig = (el, elGroup, elFormula) => {
placeholder: '请选告警类型',
options: [
{
label: '启用',
label: '设备告警',
value: '1',
},
{
label: '关闭',
value: '0',
label: '网关告警',
value: '2',
},
{
label: '能耗告警',
value: '3',
},
],
},
@@ -100,16 +95,16 @@ export const notificationtableConfig = (el, elGroup, elFormula) => {
placeholder: '请选择告警优先级',
options: [
{
label: '全部',
value: '',
},
{
label: '启用',
label: '紧急',
value: '1',
},
{
label: '关闭',
value: '0',
label: '重要',
value: '1',
},
{
label: '一般',
value: '2',
},
],
},
@@ -124,10 +119,10 @@ export const notificationtableConfig = (el, elGroup, elFormula) => {
},
{
field: 'provider',
label: '告警标题',
label: '错误码',
component: 'NsInput',
componentProps: {
placeholder: '请输入告警标题关键字',
placeholder: '请输入告警错误码',
},
},
{
@@ -137,10 +132,6 @@ export const notificationtableConfig = (el, elGroup, elFormula) => {
componentProps: {
placeholder: '请选择启用状态',
options: [
{
label: '全部',
value: '',
},
{
label: '启用',
value: '1',