20260803225403

This commit is contained in:
oneao committed 2026-08-03 22:54:03 +08:00
1 parent efd5a2bc93
commit e17bbe9db3
40 files changed
+5516 -3910

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ FileUpload.vue a-upload 包装(调用 fileService.upload)
- 三栏 flex 布局:左 `FileCategoryTree`(宽 ~220px,受 `showTree` 控制),中 `FileList`(flex:1),右预览区(宽 ~40% 或固定 ~480px,仅当选中文件时显示)。
- 选中文件(来自 `FileList` 的 `select` 事件)→ 右栏渲染 `FileViewer` 并传入预览 URL(`fileService.getContentUrl(subid)`)。
- 负责 `moduleCode` → `moduleId`(b_id) 解析:挂载时调 `loadModuleConfiguration` / 通用 `loaddata` 查 `s_module` 得到 `b_id`,下传 `FileList` 备用(上传时带回)。
- 工具栏按钮(上传/下载/删除)按 `moduleCode` 查 `b_user_power` 控制显隐/禁用(前端权限,沿用现有 `permissions` store 模式)。
- 工具栏按钮(上传/下载/删除)通过 `permissions.canAction(moduleIdOrCode, actionCode)` 读取有效操作授权并控制显隐。
**Props**
| 名称 | 类型 | 必填 | 默认 | 说明 |