feat(controlplane): 完成多页面管理台重构与平台权限控制

1. 重构控制面前端为多页面路由架构,拆分出概览/插件/账号/权限管理页面
2. 引入Element Plus组件库优化UI样式与交互
3. 新增平台登录权限校验,支持按账号授权HR/OA平台访问
4. 新增平台登出接口与个人中心功能
5. 完善账号管理、插件授权相关API与UI交互
6. 新增防火墙、启停、自启动脚本与部署文档
This commit is contained in:
2026-09-10 15:03:21 +08:00
parent 924f572a18
commit 863f818740
47 changed files with 38994 additions and 632 deletions
+5 -1
View File
@@ -55,6 +55,10 @@ def _run() -> int:
if not plugin_id:
_emit({"ev": "result", "ok": False, "error": "缺少 --plugin 参数"})
return 2
# 宿主透传的插件白名单:与宿主进程加载集保持一致(未传 = 全量)
allowed_arg = (sys.argv[sys.argv.index("--allowed") + 1]
if "--allowed" in sys.argv else "")
allowed = {s for s in allowed_arg.split(",") if s} if allowed_arg else None
# fields 经 stdin 传入(单行 JSON)
fields: dict = {}
@@ -78,7 +82,7 @@ def _run() -> int:
_emit({"ev": "progress", "pct": int(max(0, min(100, pct)))})
try:
load_plugins()
load_plugins(allowed)
plugin = PLUGINS.find(plugin_id)
ctx = _ChildContext(run_id=args.get("--run", ""), plugin_id=plugin_id,
auth=platform_auth)