Showing
1 changed file
with
16 additions
and
0 deletions
@@ -11,6 +11,7 @@ import { TypeEnum } from './data'; | @@ -11,6 +11,7 @@ import { TypeEnum } from './data'; | ||
11 | import { PageEnum } from '/@/enums/pageEnum'; | 11 | import { PageEnum } from '/@/enums/pageEnum'; |
12 | import { useGo } from '/@/hooks/web/usePage'; | 12 | import { useGo } from '/@/hooks/web/usePage'; |
13 | import { useAuthDeviceDetail } from '../hook/useAuthDeviceDetail'; | 13 | import { useAuthDeviceDetail } from '../hook/useAuthDeviceDetail'; |
14 | +import { findDictItemByCode } from '/@/api/system/dict'; | ||
14 | 15 | ||
15 | // 设备详情的描述 | 16 | // 设备详情的描述 |
16 | export const descSchema = (emit: EmitType): DescItem[] => { | 17 | export const descSchema = (emit: EmitType): DescItem[] => { |
@@ -144,7 +145,22 @@ export const alarmSearchSchemas: FormSchema[] = [ | @@ -144,7 +145,22 @@ export const alarmSearchSchemas: FormSchema[] = [ | ||
144 | componentProps: { | 145 | componentProps: { |
145 | showTime: { defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')] }, | 146 | showTime: { defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')] }, |
146 | }, | 147 | }, |
148 | + colProps: { span: 7 }, | ||
149 | + }, | ||
150 | + { | ||
151 | + field: 'severity', | ||
152 | + label: '告警级别', | ||
153 | + component: 'ApiSelect', | ||
147 | colProps: { span: 6 }, | 154 | colProps: { span: 6 }, |
155 | + componentProps: { | ||
156 | + placeholder: '请选择告警级别', | ||
157 | + api: findDictItemByCode, | ||
158 | + params: { | ||
159 | + dictCode: 'severity_type', | ||
160 | + }, | ||
161 | + labelField: 'itemText', | ||
162 | + valueField: 'itemValue', | ||
163 | + }, | ||
148 | }, | 164 | }, |
149 | ]; | 165 | ]; |
150 | export const alarmColumns: BasicColumn[] = [ | 166 | export const alarmColumns: BasicColumn[] = [ |