userConst.js
768 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
const userForm = {
username: '',
realname: '',
password: '',
mobile: '',
joinip: '',
email: '',
state: '',
isadmin: '',
departName: '',
roles: [],
departId: '',
roleList: [],
departList: []
}
const userDetailColumn = [{
label: '用户名',
prop: 'username'
}, {
label: '真实姓名',
prop: 'realname'
}, {
label: '管理员',
prop: 'isadmin',
formatter: (cellValue) => {
return cellValue.isadmin < 1 ? '否' : '是'
}
}, {
label: '手机号码',
prop: 'mobile'
}, {
label: '邮箱',
prop: 'email'
}, {
label: '角色选项',
prop: 'roles'
}, {
label: '状态',
prop: 'state',
formatter: (cellValue) => {
return cellValue.state < 1 ? '禁用' : '启动'
}
}]
export { userForm, userDetailColumn }