dept.data.ts
916 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { required } from '@/utils/formRules'
import { reactive } from 'vue'
export const modelSchema = reactive<FormSchema[]>([
{
label: '上级部门',
field: 'parentId',
component: 'Input'
},
{
label: '部门名称',
field: 'name',
component: 'Input',
formItemProps: {
rules: [required]
}
},
{
label: '负责人',
field: 'email',
component: 'Input'
},
{
label: '联系电话',
field: 'phone',
component: 'Input'
},
{
label: '邮箱',
field: 'email',
component: 'Input'
},
{
label: '显示排序',
field: 'sort',
component: 'Input'
},
{
label: '状态',
field: 'status',
component: 'RadioButton',
componentProps: {
options: [
{
label: '开启',
value: 0
},
{
label: '关闭',
value: 1
}
]
}
}
])