feat(aihr): align competency profile with brd dimensions

This commit is contained in:
2026-07-14 09:11:45 +08:00
parent 1b0f737ed7
commit ac8cddbbee
9 changed files with 61 additions and 12 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ export type CompetencyProfile = {
contribution: number;
assessmentScore: number;
aiLevel: string;
dimensions: Array<{ label: string; value: number | string; note: string }>;
dimensions: Array<{ label: string; value: number | string | null; note: string }>;
growthPath: Array<{ level: string; progress: number; status: string; evidence: string }>;
};
@@ -91,7 +91,7 @@ export type PromotionEvidence = {
contribution: number;
completed: number;
pendingReview: number;
dimensions: Array<{ label: string; value: number | string; note: string }>;
dimensions: Array<{ label: string; value: number | string | null; note: string }>;
latestRecords: ReviewRecord[];
assignments: PracticeAssignment[];
evidenceItems: string[];
+13 -1
View File
@@ -56,7 +56,13 @@
<strong>{{ item.label }}</strong>
<span>{{ item.note }}</span>
</div>
<el-progress :percentage="Number(item.value) || 0" :stroke-width="10" color="#e60012" />
<el-progress
v-if="item.value !== null && item.value !== undefined"
:percentage="Number(item.value) || 0"
:stroke-width="10"
color="#e60012"
/>
<span v-else class="dimension-unavailable">待采集</span>
</div>
</div>
</article>
@@ -422,6 +428,12 @@ onMounted(() => {
color: #667085;
}
.dimension-item .dimension-unavailable {
margin-bottom: 8px;
color: #98a2b3;
font-weight: 600;
}
.evidence-list {
margin: 0;
padding-left: 18px;