-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpermission.js
93 lines (92 loc) · 1.51 KB
/
permission.js
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
const Mock = require('mockjs');
let data = Mock.mock({
"permission": [],
role: [
{
id: 5,
pid: 0,
name: '超级管理员',
des: '超级管理员',
subon: '2019-05-08 16:54:26',
status: 0,
del: 0
},{
id: 1,
pid: 0,
name: '管理员',
des: '管理员',
subon: '2019-05-08 16:54:26',
status: 0,
del: 0
},{
id: 2,
pid: 0,
name: '后台开发员',
des: '后台开发员',
subon: '2019-05-08 16:54:26',
status: 0,
del: 0
},{
id: 3,
pid: 0,
name: '教师',
des: '教师',
subon: '2019-05-08 16:54:26',
status: 0,
del: 0
},{
id: 4,
pid: 0,
name: '学生',
des: '学生',
subon: '2019-05-08 16:54:26',
status: 0,
del: 0
}],
user_role: [],
user_permission: [
],
"role_permission": [],
menu: [{
id: 1,
order: 1,
title: '学生管理',
des: '学生管理',
url: '/student',
del: 0,
status: 0,
pid: 0,
permissionId: 1
}, {
id: 2,
order: 2,
title: '教师管理',
des: '教师管理',
url: '/teacher',
del: 0,
status: 0,
pid: 0,
permissionId: 2
},{
id: 3,
order: 3,
title: '学生列表',
des: '学生列表',
url: '/student/list',
del: 0,
status: 0,
pid: 1,
permissionId: 3
}, ],
resource:[{
id: 1,
pid: 0,
del: 0,
status: 0,
type: 'button',
permissionCode: 6,
permissionId: 6
}]
});
// console.log(JSON.stringify(data));
module.exports = data;