@yyp92-cli/template-vue-pc 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/package.json +15 -0
- package/template/.env.development +2 -0
- package/template/.env.production +2 -0
- package/template/.env.test +2 -0
- package/template/README.md +30 -0
- package/template/auto-imports.d.ts +11 -0
- package/template/components.d.ts +67 -0
- package/template/index.html +16 -0
- package/template/package.json +43 -0
- package/template/pnpm-lock.yaml +2830 -0
- package/template/public/vite.svg +1 -0
- package/template/src/App.vue +26 -0
- package/template/src/assets/img/login-bg.jpg +0 -0
- package/template/src/assets/img/logo.svg +15 -0
- package/template/src/components/layout/header-crumb/index.vue +38 -0
- package/template/src/components/layout/header-info/index.vue +181 -0
- package/template/src/components/layout/index.vue +83 -0
- package/template/src/components/layout/main-header/index.vue +85 -0
- package/template/src/components/layout/main-menu/index.vue +166 -0
- package/template/src/components/layout-horizontal/header-crumb/index.vue +38 -0
- package/template/src/components/layout-horizontal/header-info/index.vue +185 -0
- package/template/src/components/layout-horizontal/index.vue +55 -0
- package/template/src/components/layout-horizontal/main-header/index.vue +86 -0
- package/template/src/components/layout-horizontal/main-menu/index.vue +135 -0
- package/template/src/global/constants.ts +4 -0
- package/template/src/global/register-icons.ts +10 -0
- package/template/src/main.ts +16 -0
- package/template/src/mock/index.ts +8 -0
- package/template/src/mock/login.ts +5 -0
- package/template/src/mock/userDepartmentList.ts +85 -0
- package/template/src/mock/userInfoMock.ts +24 -0
- package/template/src/mock/userList.ts +115 -0
- package/template/src/mock/userListDelete.ts +1 -0
- package/template/src/mock/userMenuList.ts +466 -0
- package/template/src/mock/userMenus.ts +374 -0
- package/template/src/mock/userRoleList.ts +1846 -0
- package/template/src/router/index.ts +41 -0
- package/template/src/router/routes.ts +189 -0
- package/template/src/service/api/index.ts +90 -0
- package/template/src/service/request/index.ts +268 -0
- package/template/src/service/request/type.ts +5 -0
- package/template/src/store/counter.ts +19 -0
- package/template/src/store/index.ts +14 -0
- package/template/src/store/login/index.ts +142 -0
- package/template/src/store/main/index.ts +54 -0
- package/template/src/store/main/system/index.ts +88 -0
- package/template/src/store/main/system/type.ts +19 -0
- package/template/src/styles/global.scss +33 -0
- package/template/src/styles/index.scss +4 -0
- package/template/src/styles/reset.scss +17 -0
- package/template/src/theme/darkTheme.scss +51 -0
- package/template/src/theme/lightTheme.scss +53 -0
- package/template/src/types/index.ts +1 -0
- package/template/src/types/login.ts +4 -0
- package/template/src/utils/cache.ts +44 -0
- package/template/src/utils/download.ts +27 -0
- package/template/src/utils/format.ts +10 -0
- package/template/src/utils/index.ts +14 -0
- package/template/src/utils/map-menus.ts +174 -0
- package/template/src/views/403/index.vue +22 -0
- package/template/src/views/login/component/login-panel.vue +138 -0
- package/template/src/views/login/component/panel-account.vue +138 -0
- package/template/src/views/login/component/panel-phone.vue +56 -0
- package/template/src/views/login/index.vue +28 -0
- package/template/src/views/main/analysis/dashboard/index.vue +19 -0
- package/template/src/views/main/analysis/overview/index.vue +25 -0
- package/template/src/views/main/detail/index.vue +19 -0
- package/template/src/views/main/fullScreen/images/bg.png +0 -0
- package/template/src/views/main/fullScreen/images/contrast-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-alarm.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-header-btn-bg-l.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-header-btn-bg-r.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-header-center-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-header-left-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-header-right-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-header-warn-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-main-cb.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-main-lb.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-main-lc.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-main-lt.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-main-rb.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-main-rc.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-main-rt.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-title.png +0 -0
- package/template/src/views/main/fullScreen/images/dataScreen-warn-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/line-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/man-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/man.png +0 -0
- package/template/src/views/main/fullScreen/images/map-title-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/rankingChart-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/total.png +0 -0
- package/template/src/views/main/fullScreen/images/woman-bg.png +0 -0
- package/template/src/views/main/fullScreen/images/woman.png +0 -0
- package/template/src/views/main/fullScreen/index.vue +33 -0
- package/template/src/views/main/index.vue +24 -0
- package/template/src/views/main/product/category/index.vue +19 -0
- package/template/src/views/main/product/goods/index.vue +19 -0
- package/template/src/views/main/story/chat/index.vue +70 -0
- package/template/src/views/main/story/list/index.vue +19 -0
- package/template/src/views/main/system/department/index.vue +20 -0
- package/template/src/views/main/system/menu/index.vue +19 -0
- package/template/src/views/main/system/role/index.vue +20 -0
- package/template/src/views/main/system/user/index.vue +141 -0
- package/template/src/views/main/system/user/user-comp/UserContent.vue +211 -0
- package/template/src/views/main/system/user/user-comp/UserModal.vue +225 -0
- package/template/src/views/main/system/user/user-comp/UserSearch.vue +147 -0
- package/template/src/views/not-found/index.vue +22 -0
- package/template/src/vite-env.d.ts +9 -0
- package/template/tsconfig.app.json +26 -0
- package/template/tsconfig.json +7 -0
- package/template/tsconfig.node.json +25 -0
- package/template/vite.config.ts +66 -0
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
export const userMenus = [
|
|
2
|
+
{
|
|
3
|
+
"id": 38,
|
|
4
|
+
"name": "系统总览",
|
|
5
|
+
"type": 1,
|
|
6
|
+
"url": "/main/analysis",
|
|
7
|
+
"icon": "el-icon-monitor",
|
|
8
|
+
"sort": 1,
|
|
9
|
+
"children": [
|
|
10
|
+
{
|
|
11
|
+
"id": 39,
|
|
12
|
+
"url": "/main/analysis/overview",
|
|
13
|
+
"name": "核心技术",
|
|
14
|
+
"sort": 106,
|
|
15
|
+
"type": 2,
|
|
16
|
+
"children": null,
|
|
17
|
+
"parentId": 38
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": 40,
|
|
21
|
+
"url": "/main/analysis/dashboard",
|
|
22
|
+
"name": "商品统计",
|
|
23
|
+
"sort": 107,
|
|
24
|
+
"type": 2,
|
|
25
|
+
"children": null,
|
|
26
|
+
"parentId": 38
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": 1,
|
|
32
|
+
"name": "系统管理",
|
|
33
|
+
"type": 1,
|
|
34
|
+
"url": "/main/system",
|
|
35
|
+
"icon": "el-icon-setting",
|
|
36
|
+
"sort": 2,
|
|
37
|
+
"children": [
|
|
38
|
+
{
|
|
39
|
+
"id": 2,
|
|
40
|
+
"url": "/main/system/user",
|
|
41
|
+
"name": "用户管理",
|
|
42
|
+
"sort": 100,
|
|
43
|
+
"type": 2,
|
|
44
|
+
"children": [
|
|
45
|
+
{
|
|
46
|
+
"id": 5,
|
|
47
|
+
"url": null,
|
|
48
|
+
"name": "创建用户",
|
|
49
|
+
"sort": null,
|
|
50
|
+
"type": 3,
|
|
51
|
+
"parentId": 2,
|
|
52
|
+
"permission": "system:users:create"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": 6,
|
|
56
|
+
"url": null,
|
|
57
|
+
"name": "删除用户",
|
|
58
|
+
"sort": null,
|
|
59
|
+
"type": 3,
|
|
60
|
+
"parentId": 2,
|
|
61
|
+
"permission": "system:users:delete"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": 7,
|
|
65
|
+
"url": null,
|
|
66
|
+
"name": "修改用户",
|
|
67
|
+
"sort": null,
|
|
68
|
+
"type": 3,
|
|
69
|
+
"parentId": 2,
|
|
70
|
+
"permission": "system:users:update"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": 8,
|
|
74
|
+
"url": null,
|
|
75
|
+
"name": "查询用户",
|
|
76
|
+
"sort": null,
|
|
77
|
+
"type": 3,
|
|
78
|
+
"parentId": 2,
|
|
79
|
+
"permission": "system:users:query"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"parentId": 1
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": 3,
|
|
86
|
+
"url": "/main/system/department",
|
|
87
|
+
"name": "部门管理",
|
|
88
|
+
"sort": 101,
|
|
89
|
+
"type": 2,
|
|
90
|
+
"children": [
|
|
91
|
+
{
|
|
92
|
+
"id": 17,
|
|
93
|
+
"url": null,
|
|
94
|
+
"name": "创建部门",
|
|
95
|
+
"sort": null,
|
|
96
|
+
"type": 3,
|
|
97
|
+
"parentId": 3,
|
|
98
|
+
"permission": "system:department:create"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": 18,
|
|
102
|
+
"url": null,
|
|
103
|
+
"name": "删除部门",
|
|
104
|
+
"sort": null,
|
|
105
|
+
"type": 3,
|
|
106
|
+
"parentId": 3,
|
|
107
|
+
"permission": "system:department:delete"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": 19,
|
|
111
|
+
"url": null,
|
|
112
|
+
"name": "修改部门",
|
|
113
|
+
"sort": null,
|
|
114
|
+
"type": 3,
|
|
115
|
+
"parentId": 3,
|
|
116
|
+
"permission": "system:department:update"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": 20,
|
|
120
|
+
"url": null,
|
|
121
|
+
"name": "查询部门",
|
|
122
|
+
"sort": null,
|
|
123
|
+
"type": 3,
|
|
124
|
+
"parentId": 3,
|
|
125
|
+
"permission": "system:department:query"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"parentId": 1
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": 4,
|
|
132
|
+
"url": "/main/system/menu",
|
|
133
|
+
"name": "菜单管理",
|
|
134
|
+
"sort": 103,
|
|
135
|
+
"type": 2,
|
|
136
|
+
"children": [
|
|
137
|
+
{
|
|
138
|
+
"id": 21,
|
|
139
|
+
"url": null,
|
|
140
|
+
"name": "创建菜单",
|
|
141
|
+
"sort": null,
|
|
142
|
+
"type": 3,
|
|
143
|
+
"parentId": 4,
|
|
144
|
+
"permission": "system:menu:create"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": 22,
|
|
148
|
+
"url": null,
|
|
149
|
+
"name": "删除菜单",
|
|
150
|
+
"sort": null,
|
|
151
|
+
"type": 3,
|
|
152
|
+
"parentId": 4,
|
|
153
|
+
"permission": "system:menu:delete"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": 23,
|
|
157
|
+
"url": null,
|
|
158
|
+
"name": "修改菜单",
|
|
159
|
+
"sort": null,
|
|
160
|
+
"type": 3,
|
|
161
|
+
"parentId": 4,
|
|
162
|
+
"permission": "system:menu:update"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": 24,
|
|
166
|
+
"url": null,
|
|
167
|
+
"name": "查询菜单",
|
|
168
|
+
"sort": null,
|
|
169
|
+
"type": 3,
|
|
170
|
+
"parentId": 4,
|
|
171
|
+
"permission": "system:menu:query"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"parentId": 1
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"id": 25,
|
|
178
|
+
"url": "/main/system/role",
|
|
179
|
+
"name": "角色管理",
|
|
180
|
+
"sort": 102,
|
|
181
|
+
"type": 2,
|
|
182
|
+
"children": [
|
|
183
|
+
{
|
|
184
|
+
"id": 26,
|
|
185
|
+
"url": null,
|
|
186
|
+
"name": "创建角色",
|
|
187
|
+
"sort": null,
|
|
188
|
+
"type": 3,
|
|
189
|
+
"parentId": 25,
|
|
190
|
+
"permission": "system:role:create"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": 27,
|
|
194
|
+
"url": null,
|
|
195
|
+
"name": "删除角色",
|
|
196
|
+
"sort": null,
|
|
197
|
+
"type": 3,
|
|
198
|
+
"parentId": 25,
|
|
199
|
+
"permission": "system:role:delete"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": 28,
|
|
203
|
+
"url": null,
|
|
204
|
+
"name": "修改角色",
|
|
205
|
+
"sort": null,
|
|
206
|
+
"type": 3,
|
|
207
|
+
"parentId": 25,
|
|
208
|
+
"permission": "system:role:update"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": 29,
|
|
212
|
+
"url": null,
|
|
213
|
+
"name": "查询角色",
|
|
214
|
+
"sort": null,
|
|
215
|
+
"type": 3,
|
|
216
|
+
"parentId": 25,
|
|
217
|
+
"permission": "system:role:query"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"parentId": 1
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"id": 9,
|
|
226
|
+
"name": "商品中心",
|
|
227
|
+
"type": 1,
|
|
228
|
+
"url": "/main/product",
|
|
229
|
+
"icon": "el-icon-goods",
|
|
230
|
+
"sort": 3,
|
|
231
|
+
"children": [
|
|
232
|
+
{
|
|
233
|
+
"id": 15,
|
|
234
|
+
"url": "/main/product/category",
|
|
235
|
+
"name": "商品类别",
|
|
236
|
+
"sort": 104,
|
|
237
|
+
"type": 2,
|
|
238
|
+
"children": [
|
|
239
|
+
{
|
|
240
|
+
"id": 30,
|
|
241
|
+
"url": null,
|
|
242
|
+
"name": "创建类别",
|
|
243
|
+
"sort": null,
|
|
244
|
+
"type": 3,
|
|
245
|
+
"parentId": 15,
|
|
246
|
+
"permission": "system:category:create"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": 31,
|
|
250
|
+
"url": null,
|
|
251
|
+
"name": "删除类别",
|
|
252
|
+
"sort": null,
|
|
253
|
+
"type": 3,
|
|
254
|
+
"parentId": 15,
|
|
255
|
+
"permission": "system:category:delete"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": 32,
|
|
259
|
+
"url": null,
|
|
260
|
+
"name": "修改类别",
|
|
261
|
+
"sort": null,
|
|
262
|
+
"type": 3,
|
|
263
|
+
"parentId": 15,
|
|
264
|
+
"permission": "system:category:update"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": 33,
|
|
268
|
+
"url": null,
|
|
269
|
+
"name": "查询类别",
|
|
270
|
+
"sort": null,
|
|
271
|
+
"type": 3,
|
|
272
|
+
"parentId": 15,
|
|
273
|
+
"permission": "system:category:query"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"parentId": 9
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": 16,
|
|
280
|
+
"url": "/main/product/goods",
|
|
281
|
+
"name": "商品信息",
|
|
282
|
+
"sort": 105,
|
|
283
|
+
"type": 2,
|
|
284
|
+
"children": [
|
|
285
|
+
{
|
|
286
|
+
"id": 34,
|
|
287
|
+
"url": null,
|
|
288
|
+
"name": "创建商品",
|
|
289
|
+
"sort": null,
|
|
290
|
+
"type": 3,
|
|
291
|
+
"parentId": 16,
|
|
292
|
+
"permission": "system:goods:create"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"id": 35,
|
|
296
|
+
"url": null,
|
|
297
|
+
"name": "删除商品",
|
|
298
|
+
"sort": null,
|
|
299
|
+
"type": 3,
|
|
300
|
+
"parentId": 16,
|
|
301
|
+
"permission": "system:goods:delete"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": 36,
|
|
305
|
+
"url": null,
|
|
306
|
+
"name": "修改商品",
|
|
307
|
+
"sort": null,
|
|
308
|
+
"type": 3,
|
|
309
|
+
"parentId": 16,
|
|
310
|
+
"permission": "system:goods:update"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": 37,
|
|
314
|
+
"url": null,
|
|
315
|
+
"name": "查询商品",
|
|
316
|
+
"sort": null,
|
|
317
|
+
"type": 3,
|
|
318
|
+
"parentId": 16,
|
|
319
|
+
"permission": "system:goods:query"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"parentId": 9
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"id": 41,
|
|
328
|
+
"name": "随便聊聊",
|
|
329
|
+
"type": 1,
|
|
330
|
+
"url": "/main/story",
|
|
331
|
+
"icon": "el-icon-chat-line-round",
|
|
332
|
+
"sort": 4,
|
|
333
|
+
"children": [
|
|
334
|
+
{
|
|
335
|
+
"id": 42,
|
|
336
|
+
"url": "/main/story/chat",
|
|
337
|
+
"name": "你的故事",
|
|
338
|
+
"sort": 108,
|
|
339
|
+
"type": 2,
|
|
340
|
+
"children": null,
|
|
341
|
+
"parentId": 41
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"id": 43,
|
|
345
|
+
"url": "/main/story/list",
|
|
346
|
+
"name": "故事列表",
|
|
347
|
+
"sort": 109,
|
|
348
|
+
"type": 2,
|
|
349
|
+
"children": [],
|
|
350
|
+
"parentId": 41
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
{
|
|
356
|
+
"id": 301,
|
|
357
|
+
"name": "数据大屏",
|
|
358
|
+
"type": 1,
|
|
359
|
+
"url": "/fullScreen/fullScreen",
|
|
360
|
+
"icon": "el-icon-monitor",
|
|
361
|
+
"sort": 5,
|
|
362
|
+
"children": null
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": 401,
|
|
366
|
+
"name": "页面详情",
|
|
367
|
+
"hideMenu": true,
|
|
368
|
+
"type": 1,
|
|
369
|
+
"url": "/fullScreen/detail",
|
|
370
|
+
"icon": "el-icon-monitor",
|
|
371
|
+
"sort": 6,
|
|
372
|
+
"children": null
|
|
373
|
+
},
|
|
374
|
+
]
|