Showing
2 changed files
with
48 additions
and
2 deletions
... | ... | @@ -2,6 +2,7 @@ import { h } from 'vue'; |
2 | 2 | import { BasicColumn, FormSchema } from '/@/components/Table'; |
3 | 3 | import { Tag } from 'ant-design-vue'; |
4 | 4 | import { withInstall } from '/@/utils/index'; |
5 | +import { DeviceTypeEnum } from '/@/api/device/model/deviceModel'; | |
5 | 6 | |
6 | 7 | import VideoPlay from './video.vue'; |
7 | 8 | export const Video = withInstall(VideoPlay); |
... | ... | @@ -48,4 +49,49 @@ export const configColumns: BasicColumn[] = [ |
48 | 49 | }, |
49 | 50 | ]; |
50 | 51 | |
51 | -export const searchFormSchema: FormSchema[] | any = [{}]; | |
52 | +export const searchFormSchema: FormSchema[] | any = [ | |
53 | + { | |
54 | + field: 'name', | |
55 | + label: '设备名称', | |
56 | + component: 'Input', | |
57 | + colProps: { span: 6 }, | |
58 | + componentProps: { | |
59 | + maxLength: 255, | |
60 | + placeholder: '请输入设备名称', | |
61 | + }, | |
62 | + }, | |
63 | + { | |
64 | + field: 'deviceType', | |
65 | + label: '设备类型', | |
66 | + component: 'Select', | |
67 | + colProps: { span: 6 }, | |
68 | + componentProps: { | |
69 | + options: [ | |
70 | + { label: '网关设备', value: DeviceTypeEnum.GATEWAY }, | |
71 | + { label: '直连设备', value: DeviceTypeEnum.DIRECT_CONNECTION }, | |
72 | + { label: '网关子设备', value: DeviceTypeEnum.SENSOR }, | |
73 | + ], | |
74 | + placeholder: '请选择设备类型', | |
75 | + }, | |
76 | + }, | |
77 | + { | |
78 | + field: 'channelName', | |
79 | + label: '通道名称', | |
80 | + component: 'Input', | |
81 | + colProps: { span: 6 }, | |
82 | + componentProps: { | |
83 | + maxLength: 255, | |
84 | + placeholder: '请输入通道名称', | |
85 | + }, | |
86 | + }, | |
87 | + { | |
88 | + field: 'manufacturer', | |
89 | + label: '厂家', | |
90 | + component: 'Select', | |
91 | + colProps: { span: 6 }, | |
92 | + componentProps: { | |
93 | + options: [{}], | |
94 | + placeholder: '请选择厂家', | |
95 | + }, | |
96 | + }, | |
97 | +]; | ... | ... |