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

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
@@ -3,7 +3,6 @@
<div class="selector-header">
<div class="selector-title-group">
<h3>角色权限概览</h3>
<p class="selector-desc">展示当前项目各角色的权限配置状态</p>
</div>
<el-tag effect="plain" size="small" type="info" round>{{ templates.length }} 个角色</el-tag>
</div>
@@ -85,7 +84,7 @@ const templates = ref<PermissionTemplate[]>([]);
const roleIcon = (category: string | null) => {
const icons: Record<string, string> = {
PM: "👑", CRA: "📋", PV: "🔍",
MEDICAL_REVIEW: "🏥", IMP: "📦",
QA: "🏥", CTA: "📦",
};
return icons[category ?? ""] ?? "📄";
};
@@ -162,12 +161,6 @@ watch(() => props.refreshKey, loadTemplates);
color: #1a2332;
}
.selector-desc {
margin: 0;
font-size: 12px;
color: #64748b;
}
.template-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));