Vue3 实现 RBAC 权限管理
{
"code": 200,
"msg": "成功",
"data": [
{
"id": 2,
"name": "系统管理",
"pid": 0,
"grade": 0,
"url": null,
"orders": 0,
"path": "/",
"component": "",
"icon_cls": "fa fa-group",
"remark": "20",
"description": "RBAC核心管理",
"level": null,
"keep_alive": true,
"require_auth": true,
"enabled": true,
"createdAt": "2022-03-10 20:37:57",
"updatedAt": "2022-03-11 18:23:06",
"deletedAt": null
},
{
"id": 3,
"name": "文章管理",
"pid": 0,
"grade": 0,
"url": null,
"orders": 0,
"path": "/",
"component": "",
"icon_cls": "fa fa-group",
"remark": "30",
"description": "文章的管理功能,包括文章和分类管理",
"level": null,
"keep_alive": true,
"require_auth": true,
"enabled": true,
"createdAt": "2022-03-10 20:37:57",
"updatedAt": null,
"deletedAt": null
},
{
"id": 5,
"name": "角色管理",
"pid": 2,
"grade": 1,
"url": null,
"orders": 2,
"path": "/home/role",
"component": "SysRole",
"icon_cls": null,
"remark": "2010",
"description": "系统角色的增删改查等功能",
"level": null,
"keep_alive": true,
"require_auth": true,
"enabled": true,
"createdAt": "2022-03-10 20:37:57",
"updatedAt": null,
"deletedAt": null
},
{
"id": 6,
"name": "角色管理添加",
"pid": null,
"grade": 2,
"url": null,
"orders": 5,
"path": null,
"component": null,
"icon_cls": null,
"remark": "201001",
"description": null,
"level": null,
"keep_alive": true,
"require_auth": true,
"enabled": true,
"createdAt": "2022-03-10 20:37:57",
"updatedAt": "2022-03-13 09:31:26",
"deletedAt": null
},
......
],
"inserCount": 0 // 批量插入才用到
}