config.data.ts
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
export const formSchema: FormSchema[] = [
{
field: 'organization',
label: '',
component: 'TreeSelect',
componentProps: {
placeholder: '请选择组织',
},
},
{
field: 'organization',
label: '',
component: 'Select',
componentProps: {
placeholder: '请选择设备配置',
},
},
{
field: 'device',
label: '',
component: 'Input',
componentProps: {
placeholder: '请输入设备名称',
},
},
{
field: 'status',
label: '',
component: 'RadioGroup',
componentProps: {
size: 'small',
options: [
{ label: '全部', value: 'Apple' },
{ label: '离线', value: 'Pear' },
{ label: '在线', value: 'Orange' },
{ label: '报警', value: 'hhh' },
],
},
},
];
export const columns: BasicColumn[] = [
{
title: '名称',
dataIndex: 'name',
width: 100,
},
{
title: '位置',
dataIndex: 'deviceInfo.address',
width: 100,
},
{
title: '状态',
dataIndex: 'deviceState',
width: 100,
},
];