index.ts
907 Bytes
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
import {FormSchema} from '/@/components/Form';
import { useI18n } from '/@/hooks/web/useI18n';
import { BasicColumn } from '/@/components/Table';
const { t } = useI18n();
export const searchFormSchema: FormSchema[] = [
{
field: 'preserveName',
label: t('inspection.servicePlan.preserveNameText'),
component: 'Input',
colProps: { span: 6 },
},
];
export const columns: BasicColumn[] = [
{
title: t('inspection.servicePlan.preserveCodeText'),
dataIndex: 'preserveCode',
},
{
title: t('inspection.servicePlan.preserveNameText'),
dataIndex: 'preserveName',
},
{
title: t('inspection.servicePlan.statusText'),
dataIndex: 'status',
slots: { customRender: 'status' },
},
{
title: t('inspection.servicePlan.frequencyText'),
dataIndex: 'frequency',
},
{
title: t('inspection.servicePlan.timesText'),
dataIndex: 'times',
},
];