index.ts
1.68 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import {BasicColumn, FormSchema} from "/@/components/Table";
import {useI18n} from "/@/hooks/web/useI18n";
const { t } = useI18n();
const statusOptions = [
];
export const columns: BasicColumn[] = [
{
title: t('faultReport.facility.nameCode'),
dataIndex: 'code',
},
{
title: t('faultReport.facility.themeText'),
dataIndex: 'name',
},
{
title: t('faultReport.facility.status'),
dataIndex: 'status',
slots: { customRender: 'status' },
},
{
title: t('faultReport.facility.reportText'),
dataIndex: 'reportText',
slots: { customRender: 'reportText' },
},
{
title: t('faultReport.facility.departmentText'),
dataIndex: 'departmentText',
slots: { customRender: 'departmentText' },
},
{
title: t('faultReport.facility.remarks'),
dataIndex: 'remarks',
slots: { customRender: 'remarks' },
},
{
title: t('faultReport.facility.creatorText'),
dataIndex: 'creator',
slots: { customRender: 'creator' },
},
{
title: t('faultReport.facility.creatorDate'),
dataIndex: 'creatorDate',
}
];
export const searchFormSchema: FormSchema[] = [
{
field: 'deviceNameText',
label: t('faultReport.facility.nameText'),
component: 'Input',
colProps: { span: 6 },
},
{
field: 'nameCode',
label: t('faultReport.facility.nameCode'),
component: 'Input',
colProps: { span: 6 },
},
{
field: 'nameText',
label: t('faultReport.facility.nameText'),
component: 'Input',
colProps: { span: 6 },
},
{
field: 'status',
label: t('faultReport.facility.status'),
component: 'Select',
colProps: { span: 6 },
componentProps: {
options: statusOptions,
},
},
];