feat(aihr): align competency profile with brd dimensions
This commit is contained in:
@@ -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[];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user