提交 7165b324 编写于 作者: VK1688's avatar VK1688

1.5.9

上级 845a8374
#### vk-unicloud-admin 框架研究Q群:`22466457` 如有问题或建议可以在群内讨论。
#### 更新内容
* 1、【升级】`vk-unicloud-admin-ui` 包升级至 `1.5.19`
* 2、【优化】`database`内的初始化文件
* 3、【优化】`菜单管理`中菜单标识长度修改为2-40个字符。
##### 框架更新步骤 [点击查看](https://vkdoc.fsq.pub/admin/1/update.html)
##### 框架学习Q群:`22466457` 欢迎萌新和大佬来使用和共同改进框架
#### 如果你觉得框架对你有用,可以在下方进行评论,也可以进行赞赏。
## 1.5.9(2021-09-01)
#### vk-unicloud-admin 框架研究Q群:`22466457` 如有问题或建议可以在群内讨论。
#### 更新内容
* 1、【升级】`vk-unicloud-admin-ui` 包升级至 `1.5.19`
* 2、【优化】`database`内的初始化文件
* 3、【优化】`菜单管理`中菜单标识长度修改为2-40个字符。
##### 框架更新步骤 [点击查看](https://vkdoc.fsq.pub/admin/1/update.html)
##### 框架学习Q群:`22466457` 欢迎萌新和大佬来使用和共同改进框架
#### 如果你觉得框架对你有用,可以在下方进行评论,也可以进行赞赏。
## 1.5.8(2021-08-31) ## 1.5.8(2021-08-31)
#### vk-unicloud-admin 框架研究Q群:`22466457` 如有问题或建议可以在群内讨论。 #### vk-unicloud-admin 框架研究Q群:`22466457` 如有问题或建议可以在群内讨论。
#### 更新内容 #### 更新内容
......
{ {
"name": "vk-unicloud-admin", "name": "vk-unicloud-admin",
"version": "1.5.7", "version": "1.5.8",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
......
{ {
"id": "vk-unicloud-admin", "id": "vk-unicloud-admin",
"name": "vk-unicloud-admin", "name": "vk-unicloud-admin",
"version": "1.5.8", "version": "1.5.9",
"displayName": "【开箱即用】vk-unicloud-admin - 快速开发框架 - 几分钟即可完成一个页面CRUD", "displayName": "【开箱即用】vk-unicloud-admin - 快速开发框架 - 几分钟即可完成一个页面CRUD",
"description": "vk-unicloud-admin是基于unicloud+uni-id+element+vk-unicloud-router的一套快速PC admin完整开发框架。丰富的API可以让你开发事半功倍。", "description": "vk-unicloud-admin是基于unicloud+uni-id+element+vk-unicloud-router的一套快速PC admin完整开发框架。丰富的API可以让你开发事半功倍。",
"keywords": [ "keywords": [
......
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
rules: { rules: {
menu_id:[ menu_id:[
{ required:true, message:'菜单标识不能为空', trigger:'blur' }, { required:true, message:'菜单标识不能为空', trigger:'blur' },
{ min: 2, max: 24, message:'长度在 2 到 24 个字符', trigger:'blur' }, { min: 2, max: 40, message:'长度在 2 到 40 个字符', trigger:'blur' },
], ],
name:[ name:[
{ required:true, message:'菜单名称不能为空', trigger:'blur' }, { required:true, message:'菜单名称不能为空', trigger:'blur' },
......
...@@ -337,6 +337,70 @@ ...@@ -337,6 +337,70 @@
"enable":true, "enable":true,
"match_mode":1, "match_mode":1,
"parent_id":"sys-manage" "parent_id":"sys-manage"
},
{
"_id": "system-uni",
"_add_time": 1596416400000,
"enable": true,
"icon": "el-icon-s-tools",
"menu_id": "system-uni",
"name": "系统设置",
"sort": 110
},
{
"_id": "system-uni-uni-id-files",
"sort": 1,
"url": "/pages_plugs/system_uni/uni-id-files/list",
"_add_time": 1596416400000,
"enable": true,
"icon": "el-icon-folder-opened",
"menu_id": "system-uni-uni-id-files",
"name": "素材管理",
"parent_id": "system-uni"
},
{
"_id": "system-uni-opendb-global-data",
"enable": true,
"icon": "",
"menu_id": "system-uni-opendb-global-data",
"name": "系统缓存管理",
"parent_id": "system-uni",
"sort": 2,
"url": "/pages_plugs/system_uni/opendb-global-data",
"_add_time": 1596416400000
},
{
"_id": "system-uni-opendb-components-dynamic",
"sort": 3,
"url": "/pages_plugs/system_uni/opendb-components-dynamic",
"_add_time": 1596416400000,
"enable": true,
"icon": "",
"menu_id": "system-uni-opendb-components-dynamic",
"name": "动态组件数据",
"parent_id": "system-uni"
},
{
"_id": "system-uni-uni-id-log",
"sort": 8,
"url": "/pages_plugs/system_uni/uni-id-log",
"_add_time": 1596416400000,
"enable": true,
"icon": "",
"menu_id": "system-uni-uni-id-log",
"name": "用户登录日志",
"parent_id": "system-uni"
},
{
"_id": "system-uni-opendb-admin-log",
"sort": 9,
"url": "/pages_plugs/system_uni/opendb-admin-log",
"_add_time": 1596416400000,
"enable": true,
"icon": "",
"menu_id": "system-uni-opendb-admin-log",
"name": "系统操作日志",
"parent_id": "system-uni"
} }
], ],
"index": [ "index": [
...@@ -503,6 +567,23 @@ ...@@ -503,6 +567,23 @@
} }
] ]
}, },
"uni-id-files-categories": {
"data": [],
"index": [
{
"IndexName": "_add_time",
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "_add_time","Direction": "1"}],"MgoIsUnique": false}
},
{
"IndexName": "name",
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "name","Direction": "1"}],"MgoIsUnique": false}
},
{
"IndexName": "sort",
"MgoKeySchema": {"MgoIndexKeys": [{"Name": "sort","Direction": "1"}],"MgoIsUnique": false}
}
]
},
"opendb-app-list": { "opendb-app-list": {
"data": [ "data": [
{ {
......
...@@ -3,4 +3,10 @@ ...@@ -3,4 +3,10 @@
{"_id":"sys-admin","_add_time":1596416400000,"comment":"系统内置","enable":true,"icon":"el-icon-s-tools","menu_id":"sys-admin","name":"用户角色权限","sort":100,"url":""} {"_id":"sys-admin","_add_time":1596416400000,"comment":"系统内置","enable":true,"icon":"el-icon-s-tools","menu_id":"sys-admin","name":"用户角色权限","sort":100,"url":""}
{"_id":"sys-menus-manage","_add_time":1596416400000,"comment":"控制admin左侧菜单的显示和隐藏","enable":true,"icon":"el-icon-tickets","menu_id":"sys-menus-manage","name":"菜单管理","parent_id":"sys-admin","sort":4,"url":"/pages_plugs/system/menu/list"} {"_id":"sys-menus-manage","_add_time":1596416400000,"comment":"控制admin左侧菜单的显示和隐藏","enable":true,"icon":"el-icon-tickets","menu_id":"sys-menus-manage","name":"菜单管理","parent_id":"sys-admin","sort":4,"url":"/pages_plugs/system/menu/list"}
{"_id":"sys-user-manage","_add_time":1596416400000,"comment":"1个角色可以分配多个角色","enable":true,"icon":"el-icon-s-custom","menu_id":"sys-user-manage","name":"用户管理","parent_id":"sys-admin","sort":1,"url":"/pages_plugs/system/user/list"} {"_id":"sys-user-manage","_add_time":1596416400000,"comment":"1个角色可以分配多个角色","enable":true,"icon":"el-icon-s-custom","menu_id":"sys-user-manage","name":"用户管理","parent_id":"sys-admin","sort":1,"url":"/pages_plugs/system/user/list"}
{"_id": "sys-app-manage","_add_time": 1596416400000,"menu_id":"sys-app-manage","name": "应用管理","icon":"el-icon-cloudy","url": "/pages_plugs/system/app/list","comment":"应用管理","sort": 5,"parent_id":"sys-admin","enable":true} {"_id":"sys-app-manage","_add_time": 1596416400000,"menu_id":"sys-app-manage","name": "应用管理","icon":"el-icon-cloudy","url": "/pages_plugs/system/app/list","comment":"应用管理","sort": 5,"parent_id":"sys-admin","enable":true}
\ No newline at end of file {"_id":"system-uni","_add_time": 1596416400000,"enable": true,"icon": "el-icon-s-tools","menu_id": "system-uni","name": "系统设置","sort": 110}
{"_id":"system-uni-uni-id-files","sort": 1,"url": "/pages_plugs/system_uni/uni-id-files/list","_add_time": 1596416400000,"enable": true,"icon": "el-icon-folder-opened","menu_id": "system-uni-uni-id-files","name": "素材管理","parent_id": "system-uni"}
{"_id":"system-uni-opendb-global-data","enable": true,"icon": "","menu_id": "system-uni-opendb-global-data","name": "系统缓存管理","parent_id": "system-uni","sort": 2,"url": "/pages_plugs/system_uni/opendb-global-data","_add_time": 1596416400000}
{"_id":"system-uni-opendb-components-dynamic","sort": 3,"url": "/pages_plugs/system_uni/opendb-components-dynamic","_add_time": 1596416400000,"enable": true,"icon": "","menu_id": "system-uni-opendb-components-dynamic","name": "动态组件数据","parent_id": "system-uni"}
{"_id":"system-uni-uni-id-log","sort": 8,"url": "/pages_plugs/system_uni/uni-id-log","_add_time": 1596416400000,"enable": true,"icon": "","menu_id": "system-uni-uni-id-log","name": "用户登录日志","parent_id": "system-uni"}
{"_id":"system-uni-opendb-admin-log","sort": 9,"url": "/pages_plugs/system_uni/opendb-admin-log","_add_time": 1596416400000,"enable": true,"icon": "","menu_id": "system-uni-opendb-admin-log","name": "系统操作日志","parent_id": "system-uni"}
\ No newline at end of file
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
{"_id":"sys-permission-delete","_add_time":1596416400000,"comment":"所有函数名以delete开头的云函数","curd_category":2,"enable":true,"icon":"vk-icon-delete","level":4,"match_mode":1,"parent_id":"sys-permission","permission_id":"sys-permission-delete","permission_name":"系统内置 - 删","sort":2,"url":["*/delete*"]} {"_id":"sys-permission-delete","_add_time":1596416400000,"comment":"所有函数名以delete开头的云函数","curd_category":2,"enable":true,"icon":"vk-icon-delete","level":4,"match_mode":1,"parent_id":"sys-permission","permission_id":"sys-permission-delete","permission_name":"系统内置 - 删","sort":2,"url":["*/delete*"]}
{"_id":"sys-permission-read","_add_time":1596416400000,"comment":"包含所有的查询操作","curd_category":4,"enable":true,"icon":"vk-icon-text","level":3,"match_mode":1,"parent_id":"sys-permission","permission_id":"sys-permission-read","permission_name":"系统内置 - 查","sort":4,"url":["*/get*","*/find*","*/select*"]} {"_id":"sys-permission-read","_add_time":1596416400000,"comment":"包含所有的查询操作","curd_category":4,"enable":true,"icon":"vk-icon-text","level":3,"match_mode":1,"parent_id":"sys-permission","permission_id":"sys-permission-read","permission_name":"系统内置 - 查","sort":4,"url":["*/get*","*/find*","*/select*"]}
{"_id":"sys-permission-add","_add_time":1596416400000,"comment":"所有函数名以add开头的云函数","curd_category":1,"enable":true,"icon":"vk-icon-add","level":3,"match_mode":1,"parent_id":"sys-permission","permission_id":"sys-permission-add","permission_name":"系统内置 - 增","sort":1,"url":["*/add*"]} {"_id":"sys-permission-add","_add_time":1596416400000,"comment":"所有函数名以add开头的云函数","curd_category":1,"enable":true,"icon":"vk-icon-add","level":3,"match_mode":1,"parent_id":"sys-permission","permission_id":"sys-permission-add","permission_name":"系统内置 - 增","sort":1,"url":["*/add*"]}
{"_id": "sys-manage","_add_time": 1596416400000,"permission_id":"sys-manage","permission_name": "用户角色权限菜单","comment":"","sort": 2,"enable":true} {"_id": "sys-manage","_add_time": 1596416400000,"permission_id":"sys-manage","permission_name": "用户角色权限菜单","comment":"","sort": 2,"enable":true}
{"_id": "sys-manage-user","_add_time": 1596416400000,"permission_id":"sys-manage-user","permission_name": "系统 - 用户管理","comment":"","url": ["admin/system/user/sys/*"],"sort": 1,"enable":true,"match_mode":1,"parent_id":"sys-manage"} {"_id": "sys-manage-user","_add_time": 1596416400000,"permission_id":"sys-manage-user","permission_name": "系统 - 用户管理","comment":"","url": ["admin/system/user/sys/*"],"sort": 1,"enable":true,"match_mode":1,"parent_id":"sys-manage"}
{"_id": "sys-manage-role","_add_time": 1596416400000,"permission_id":"sys-manage-role","permission_name": "系统 - 角色管理","comment":"","url": ["admin/system/role/sys/*"],"sort": 2,"enable":true,"match_mode":1,"parent_id":"sys-manage"} {"_id": "sys-manage-role","_add_time": 1596416400000,"permission_id":"sys-manage-role","permission_name": "系统 - 角色管理","comment":"","url": ["admin/system/role/sys/*"],"sort": 2,"enable":true,"match_mode":1,"parent_id":"sys-manage"}
......
[ [
{ {
"menu_id": "system_uni", "menu_id": "system-uni",
"name": "系统设置", "name": "系统设置",
"icon": "el-icon-s-tools", "icon": "el-icon-s-tools",
"sort": 110, "sort": 110,
"children": [{ "children": [{
"menu_id": "system-uni-uni-id-files", "menu_id": "system-uni-uni-id-files",
"name": "素材管理", "name": "素材管理",
"icon": "el-icon-folder-opened", "icon": "el-icon-folder-opened",
"url": "/pages_plugs/system_uni/uni-id-files/list", "url": "/pages_plugs/system_uni/uni-id-files/list",
"sort": 0 "sort": 0
},{ },{
"menu_id": "system_uni-opendb-global-data", "menu_id": "system-uni-opendb-global-data",
"name": "系统缓存管理", "name": "系统缓存管理",
"icon": "", "icon": "",
"url": "/pages_plugs/system_uni/opendb-global-data", "url": "/pages_plugs/system_uni/opendb-global-data",
"sort": 1 "sort": 1
}, },
{ {
"menu_id": "system_uni-opendb-components-dynamic", "menu_id": "system-uni-opendb-components-dynamic",
"name": "动态组件数据", "name": "动态组件数据",
"icon": "", "icon": "",
"url": "/pages_plugs/system_uni/opendb-components-dynamic", "url": "/pages_plugs/system_uni/opendb-components-dynamic",
"sort": 2 "sort": 2
}, },
{ {
"menu_id": "system_uni-uni-id-log", "menu_id": "system-uni-uni-id-log",
"name": "用户登录日志", "name": "用户登录日志",
"icon": "", "icon": "",
"url": "/pages_plugs/system_uni/uni-id-log", "url": "/pages_plugs/system_uni/uni-id-log",
"sort": 3 "sort": 3
}, },
{ {
"menu_id": "system_uni-opendb-admin-log", "menu_id": "system-uni-opendb-admin-log",
"name": "系统操作日志", "name": "系统操作日志",
"icon": "", "icon": "",
"url": "/pages_plugs/system_uni/opendb-admin-log", "url": "/pages_plugs/system_uni/opendb-admin-log",
"sort": 4 "sort": 4
} }
] ]
} }
] ]
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
3、点击 `通过json导入菜单` 3、点击 `通过json导入菜单`
4、粘贴刚复制的代码 4、粘贴刚复制的代码
### db_init.json 为数据库初始化用的(含素材管理、系统缓存管理、用户登录日志等菜单) ### db_init.json 为数据库初始化用的(含素材管理、系统缓存管理、用户登录日志等菜单)
### db_init/ 目录内的json文件是 单独给 用户角色权限表导入初始化数据用的。(含素材管理、系统缓存管理、用户登录日志等菜单) ### db_init/ 目录内的json文件是 单独给 用户角色权限表导入初始化数据用的。(含素材管理、系统缓存管理、用户登录日志等菜单)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册