统一项目角色与接口权限配置

This commit is contained in:
Cheng Zhou
2026-05-28 10:48:33 +08:00
parent 6d1c98bcae
commit 2c85742040
45 changed files with 2863 additions and 1329 deletions
@@ -29,11 +29,10 @@ describe("PermissionAccessLogs", () => {
expect(source).not.toContain("fetchIpLocations");
});
it("does not expose QA in role filter presets", () => {
it("exposes QA and CTA in role filter presets", () => {
const source = readSource();
expect(source).not.toContain('label="QA" value="QA"');
expect(source).not.toContain('QA: "QA"');
expect(source).toContain('const ROLE_FILTER_KEYS = ["ADMIN", "PM", "CRA", "PV", "QA", "CTA"];');
});
it("uses permission template names for role filters and log lines", () => {
@@ -45,7 +44,7 @@ describe("PermissionAccessLogs", () => {
expect(source).toContain('v-for="role in roleFilterOptions"');
expect(source).toContain("role=${roleLabel(row.role)}");
expect(source).not.toContain("const ROLE_LABELS");
expect(source).not.toContain('label="医学审核" value="MEDICAL_REVIEW"');
expect(source).not.toContain('label="医学审核" value="QA"');
});
it("uses narrow metric cards without helper subtitles", () => {