userConst.js
898 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
const userForm = {
username: '',
realname: '',
password: '',
mobile: '',
joinip: '',
email: '',
state: '',
isadmin: '',
departName: '',
roles: ['1', '2'],
departId: '',
roleList: [],
options: [
{
value: '1006',
label: '总经办'
},
{
value: '1001',
label: '研发中心-网络软件部'
}
]
}
const userDetailColumn = [{
label: '用户名',
prop: 'username'
}, {
label: '真实姓名',
prop: 'realname'
}, {
label: '管理员',
prop: 'isadmin',
formatter: (cellValue) => {
return cellValue < 1 ? '否' : '是'
}
}, {
label: '手机号码',
prop: 'mobile'
}, {
label: '邮箱',
prop: 'email'
}, {
label: '角色选项',
prop: 'roles'
}, {
label: '状态',
prop: 'state',
formatter: (cellValue) => {
return cellValue < 1 ? '禁止' : '启动'
}
}]
export { userForm, userDetailColumn }