...
|
...
|
@@ -8,6 +8,7 @@ import { deviceConfigGetRuleChain } from '/@/api/device/deviceConfigApi'; |
8
|
8
|
import { FormField, FunctionType } from './step/cpns/physical/cpns/config';
|
9
|
9
|
import { h } from 'vue';
|
10
|
10
|
import { Tag } from 'ant-design-vue';
|
|
11
|
+import { EventType, EventTypeColor, EventTypeName } from '../list/cpns/tabs/EventManage/config';
|
11
|
12
|
|
12
|
13
|
export enum Mode {
|
13
|
14
|
CARD = 'card',
|
...
|
...
|
@@ -81,6 +82,19 @@ export const physicalColumn: BasicColumn[] = [ |
81
|
82
|
},
|
82
|
83
|
},
|
83
|
84
|
{
|
|
85
|
+ title: '事件类型',
|
|
86
|
+ dataIndex: 'eventType',
|
|
87
|
+ customRender({ text }) {
|
|
88
|
+ return h(
|
|
89
|
+ Tag,
|
|
90
|
+ {
|
|
91
|
+ color: EventTypeColor[text as EventType],
|
|
92
|
+ },
|
|
93
|
+ () => EventTypeName[text as EventType]
|
|
94
|
+ );
|
|
95
|
+ },
|
|
96
|
+ },
|
|
97
|
+ {
|
84
|
98
|
title: '状态',
|
85
|
99
|
dataIndex: 'status',
|
86
|
100
|
width: 100,
|
...
|
...
|
|