Showing
1 changed file
with
13 additions
and
0 deletions
... | ... | @@ -48,6 +48,11 @@ export const aceEditorOptions = { |
48 | 48 | enableEmmet: true, |
49 | 49 | }; |
50 | 50 | |
51 | +const scriptTypeInfo = { | |
52 | + TRANSPORT_TCP_UP: '上行数据解析', | |
53 | + TRANSPORT_TCP_AUTH: '设备鉴权', | |
54 | +}; | |
55 | + | |
51 | 56 | // 表格配置 |
52 | 57 | export const columns: BasicColumn[] = [ |
53 | 58 | { |
... | ... | @@ -68,6 +73,14 @@ export const columns: BasicColumn[] = [ |
68 | 73 | slots: { customRender: 'convertJs' }, |
69 | 74 | }, |
70 | 75 | { |
76 | + title: '脚本类型', | |
77 | + dataIndex: 'scriptType', | |
78 | + width: 120, | |
79 | + format: (values) => { | |
80 | + return scriptTypeInfo[values]; | |
81 | + }, | |
82 | + }, | |
83 | + { | |
71 | 84 | title: '备注', |
72 | 85 | dataIndex: 'description', |
73 | 86 | width: 120, | ... | ... |