优化文档管理与导航体验

1、为文档增加编辑接口和前端编辑抽屉,文档列表与详情页统一按创建、更新、删除权限展示操作。

2、将文档版本上传和分发改为抽屉交互,并在详情页补充版本删除权限检查。

3、增强全局面包屑上下文和详情页标题同步,避免详情页重复或缺失导航信息。

4、按项目权限过滤快捷入口、首页费用指标和 eTMF 新建入口,并补充对应前端测试。
This commit is contained in:
Cheng Zhou
2026-06-04 11:11:28 +08:00
parent 6e8494abd5
commit 90ca061db8
21 changed files with 1016 additions and 189 deletions
+2
View File
@@ -165,6 +165,8 @@ body {
/* 表格美化 */
.el-table {
color: var(--ctms-text-regular);
width: 100%;
max-width: 100%;
}
.el-table th.el-table__cell {
+16
View File
@@ -0,0 +1,16 @@
import { readFileSync } from "node:fs";
import { resolve } from "node:path";
import { describe, expect, it } from "vitest";
const readMainCss = () => readFileSync(resolve(__dirname, "./main.css"), "utf8");
describe("global table styles", () => {
it("keeps Element Plus table sizing on the root node without overriding internal layout", () => {
const css = readMainCss();
expect(css).toContain(".el-table {\n color: var(--ctms-text-regular);\n width: 100%;\n max-width: 100%;\n}");
expect(css).not.toContain(".el-table__header,\n.el-table__body,\n.el-table__footer");
expect(css).not.toContain(".el-table__inner-wrapper,\n.el-table__header-wrapper");
expect(css).not.toContain(".el-table colgroup col");
});
});