fix(task-review): 老师评分列已评展示分数+修改按钮(验收:评阅后展示分数,按钮变修改)

dev-QQq
chenyuan 1 month ago
parent 3927e8a4fc
commit f520d0e218

@ -33,9 +33,12 @@
<el-table-column label="AI评分" width="78" align="center">
<template #default="{ row }">{{ formatScore(row.aiAssessmentScore) }}</template>
</el-table-column>
<el-table-column label="老师评分" min-width="104" align="center">
<el-table-column label="老师评分" min-width="118" align="center">
<template #default="{ row }">
<el-button v-if="canManageClass && row.scorable" type="primary" size="small" text @click="openScoreDialog(row)">{{ row.teacherScore === null || row.teacherScore === undefined ? "评阅" : "修改" }}</el-button>
<template v-if="canManageClass && row.scorable">
<span v-if="row.teacherScore !== null && row.teacherScore !== undefined" class="task-review__teacher-score">{{ formatScore(row.teacherScore) }}</span>
<el-button type="primary" size="small" text @click="openScoreDialog(row)">{{ row.teacherScore === null || row.teacherScore === undefined ? "评阅" : "修改" }}</el-button>
</template>
<el-tag v-else-if="!row.scorable" size="small" type="info">未完成</el-tag>
<span v-else>{{ formatScore(row.teacherScore) }}</span>
</template>
@ -831,6 +834,12 @@ function applyAiDetail(data) {
width: 70px;
}
.task-review__teacher-score {
margin-right: 4px;
color: var(--edu-primary, #2563eb);
font-weight: 700;
}
/* ===== 学生表格(纯白 + 灰线)===== */
.task-review__student-table {
width: 100%;

Loading…
Cancel
Save