refactor: 统一权限标识前缀为module_格式

feat(tenant): 新增租户管理模块相关文件

style: 优化代码导入和类型提示

fix: 修复前端权限标识校验逻辑

docs: 更新注释中的权限标识示例

test: 更新测试用例中的权限标识

chore: 清理无用导入和类型定义
This commit is contained in:
zhangtao
2025-11-11 01:06:40 +08:00
parent 379df71baa
commit 5d0d0cd26a
54 changed files with 2109 additions and 445 deletions
+155 -1
View File
@@ -63,7 +63,7 @@
"type": 2,
"icon": "menu",
"order": 1,
"permission": "system:menu:query",
"permission": "module_system:menu:query",
"route_name": "Menu",
"route_path": "/system/menu",
"component_path": "module_system/menu/index",
@@ -155,6 +155,160 @@
}
]
},
{
"name": "租户管理",
"type": 2,
"icon": "el-icon-DataLine",
"order": 3,
"permission": "module_system:tenant:query",
"route_name": "Tenant",
"route_path": "/system/tenant",
"component_path": "module_system/tenant/index",
"status": true,
"keep_alive": true,
"hidden": false,
"always_show": false,
"title": "租户管理",
"params": null,
"affix": false,
"redirect": null,
"description": "初始化数据",
"children": [
{
"name": "创建租户",
"type": 3,
"icon": null,
"order": 1,
"permission": "module_system:tenant:create",
"route_name": null,
"route_path": null,
"component_path": null,
"status": true,
"keep_alive": true,
"hidden": false,
"always_show": false,
"title": "创建租户",
"params": null,
"affix": false,
"redirect": null,
"description": "初始化数据"
},
{
"name": "更新租户",
"type": 3,
"icon": null,
"order": 2,
"permission": "module_system:tenant:update",
"route_name": null,
"route_path": null,
"component_path": null,
"status": true,
"keep_alive": true,
"hidden": false,
"always_show": false,
"title": "更新租户",
"params": null,
"affix": false,
"redirect": null,
"description": "初始化数据"
},
{
"name": "删除租户",
"type": 3,
"icon": null,
"order": 3,
"permission": "module_system:tenant:delete",
"route_name": null,
"route_path": null,
"component_path": null,
"status": true,
"keep_alive": true,
"hidden": false,
"always_show": false,
"title": "删除租户",
"params": null,
"affix": false,
"redirect": null,
"description": "初始化数据"
},
{
"name": "批量修改租户状态",
"type": 3,
"icon": null,
"order": 4,
"permission": "module_system:tenant:patch",
"route_name": null,
"route_path": null,
"component_path": null,
"status": true,
"keep_alive": true,
"hidden": false,
"always_show": false,
"title": "批量修改租户状态",
"params": null,
"affix": false,
"redirect": null,
"description": "初始化数据"
},
{
"name": "导出租户",
"type": 3,
"icon": null,
"order": 5,
"permission": "module_system:tenant:export",
"route_name": null,
"route_path": null,
"component_path": null,
"status": true,
"keep_alive": true,
"hidden": false,
"always_show": false,
"title": "导出租户",
"params": null,
"affix": false,
"redirect": null,
"description": "初始化数据"
},
{
"name": "导入租户",
"type": 3,
"icon": null,
"order": 6,
"permission": "module_system:tenant:import",
"route_name": null,
"route_path": null,
"component_path": null,
"status": true,
"keep_alive": true,
"hidden": false,
"always_show": false,
"title": "导入租户",
"params": null,
"affix": false,
"redirect": null,
"description": "初始化数据"
},
{
"name": "下载导入租户模版",
"type": 3,
"icon": null,
"order": 7,
"permission": "module_system:tenant:download",
"route_name": null,
"route_path": null,
"component_path": null,
"status": true,
"keep_alive": true,
"hidden": false,
"always_show": false,
"title": "下载导入租户模版",
"params": null,
"affix": false,
"redirect": null,
"description": "初始化数据"
}
]
},
{
"name": "部门管理",
"type": 2,