fix:修改计划添加页面 根据ui修改页面

This commit is contained in:
zhaohy
2024-08-12 15:33:23 +08:00
parent dbdf3da68a
commit e7642fe14c
21 changed files with 408 additions and 218 deletions

View File

@@ -14,10 +14,12 @@ const tableKeyMap = [
customRender: (text: any) => {
return text.index + 1;
},
width: 80,
},
{
title: '优先级',
dataIndex: 'priority',
width: 120,
},
{
title: '告警标题',
@@ -26,26 +28,32 @@ const tableKeyMap = [
{
title: '错误码',
dataIndex: 'errorCode',
width: 120,
},
{
title: '告警频率',
dataIndex: 'alarmFrequency',
width: 120,
},
{
title: '重复次数',
dataIndex: 'repetitions',
width: 120,
},
{
title: '频率间隔',
dataIndex: 'interval',
width: 120,
},
{
title: '监测时长',
dataIndex: 'monitorFrequency',
width: 120,
},
{
title: '是否启用',
dataIndex: 'enableRules',
width: 140,
},
];
const doWnload = (url: any) => {
@@ -103,9 +111,13 @@ export const energyAlarmConfigs = (
},
],
columns: tableKeyMap,
scroll: { x: 1800 },
// rowSelection: null, 选择按钮
columnActions: {
title: '操作',
width: 250,
fixed: 'right',
dataIndex: 'tableAction',
actions: [
{
label: '编辑',

View File

@@ -14,6 +14,7 @@ const tableKeyMap = [
customRender: (text: any) => {
return text.index + 1;
},
width: 80,
},
{
title: '优先级',
@@ -105,8 +106,12 @@ export const equipmentAlarmTableConfig = (
],
columns: tableKeyMap,
// rowSelection: null, 选择按钮
scroll: { x: 1800 },
columnActions: {
title: '操作',
width: 250,
fixed: 'right',
dataIndex: 'tableAction',
actions: [
{
label: '编辑',

View File

@@ -12,14 +12,17 @@ const tableKeyMap = [
customRender: (text: any) => {
return text.index + 1;
},
width: 80,
},
{
title: '优先级',
dataIndex: 'prioritys',
width: 120,
},
{
title: '告警类型',
dataIndex: 'alarmTypeName',
width: 140,
},
{
title: '告警标题',
@@ -28,20 +31,24 @@ const tableKeyMap = [
{
title: '错误码',
dataIndex: 'errorCode',
width: 120,
},
{
title: '通知名单',
dataIndex: 'notificationList',
width: 150,
width: 220,
textEllipsis: true,
textWidth: 150,
},
{
title: '通知方式',
dataIndex: 'notificationMethod',
width: 160,
},
{
title: '启用通知',
dataIndex: 'enableNotifications',
width: 140,
},
];
export const notificationtableConfig = (notificationManagements: any) => {
@@ -50,8 +57,12 @@ export const notificationtableConfig = (notificationManagements: any) => {
api: notificationManagementApi.getTableList,
headerActions: [],
columns: tableKeyMap,
scroll: { x: 1800 },
columnActions: {
title: '操作',
width: 140,
fixed: 'right',
dataIndex: 'tableAction',
actions: [
{
label: '联系方式',