|
|
|
|
|
<template>
|
|
|
|
|
|
<div class="task-review" v-loading="loading">
|
|
|
|
|
|
<aside class="task-review__sidebar">
|
|
|
|
|
|
<el-form label-position="top" class="task-review__filters">
|
|
|
|
|
|
<el-form-item label="实训项目">
|
|
|
|
|
|
<el-select v-model="filters.projectName" placeholder="请选择实训项目" clearable @change="onProjectChange">
|
|
|
|
|
|
<el-option v-for="project in review.projects" :key="project" :label="project" :value="project" />
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="实训任务">
|
|
|
|
|
|
<el-select v-model="filters.taskId" placeholder="请选择实训任务" :disabled="!filters.classId" @change="loadReview">
|
|
|
|
|
|
<el-option v-for="task in review.tasks" :key="task.taskId" :label="task.taskName" :value="task.taskId" />
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="教学班级">
|
|
|
|
|
|
<el-select v-model="filters.classId" placeholder="请选择教学班" @change="onClassChange">
|
|
|
|
|
|
<el-option v-for="item in teachingClasses" :key="item.schoolClassId" :label="item.className" :value="item.schoolClassId" />
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="task-review__list-head">
|
|
|
|
|
|
<span>学生列表({{ review.students.length }})</span>
|
|
|
|
|
|
<el-button type="primary" size="small" :disabled="!canBatchScore" @click="batchDialogVisible = true">批量打分</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-table
|
|
|
|
|
|
ref="studentTableRef"
|
|
|
|
|
|
class="task-review__student-table"
|
|
|
|
|
|
:data="review.students"
|
|
|
|
|
|
border
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
row-key="studentUserId"
|
|
|
|
|
|
highlight-current-row
|
|
|
|
|
|
:row-class-name="studentRowClass"
|
|
|
|
|
|
@selection-change="onSelectionChange"
|
|
|
|
|
|
@row-click="selectStudent"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-table-column type="selection" width="42" :selectable="canSelectStudent" />
|
|
|
|
|
|
<el-table-column prop="name" label="姓名" width="86" show-overflow-tooltip />
|
|
|
|
|
|
<el-table-column prop="username" label="学号" width="102" show-overflow-tooltip />
|
|
|
|
|
|
<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">
|
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
|
<el-input-number
|
|
|
|
|
|
v-if="canManageClass && row.scorable"
|
|
|
|
|
|
v-model="row.teacherScoreDraft"
|
|
|
|
|
|
class="task-review__score-input"
|
|
|
|
|
|
:min="0"
|
|
|
|
|
|
:max="100"
|
|
|
|
|
|
:precision="0"
|
|
|
|
|
|
:controls="false"
|
|
|
|
|
|
placeholder="评分"
|
|
|
|
|
|
@change="saveSingleScore(row)"
|
|
|
|
|
|
@click.stop
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-tag v-else-if="!row.scorable" size="small" type="info">未完成</el-tag>
|
|
|
|
|
|
<span v-else>{{ formatScore(row.teacherScore) }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
<p v-if="!canManageClass && filters.classId" class="task-review__readonly-tip">仅班级创建教师可评分</p>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="task-review__content">
|
|
|
|
|
|
<template v-if="selectedStudent && review.selectedTask">
|
|
|
|
|
|
<header class="task-review__student-head">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<h2>{{ selectedStudent.name || selectedStudent.username }}</h2>
|
|
|
|
|
|
<p>{{ review.selectedTask.projectName }} · {{ review.selectedTask.taskName }}</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="task-review__scores">
|
|
|
|
|
|
<span>AI评分 <strong>{{ formatScore(selectedStudent.aiAssessmentScore) }}</strong></span>
|
|
|
|
|
|
<span>老师评分 <strong>{{ formatScore(selectedStudent.teacherScore) }}</strong></span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
<div v-if="studentPreviewSrc" class="task-review__student-preview-scroll">
|
|
|
|
|
|
<iframe
|
|
|
|
|
|
:key="studentPreviewSrc"
|
|
|
|
|
|
class="task-review__student-preview"
|
|
|
|
|
|
:src="studentPreviewSrc"
|
|
|
|
|
|
:style="{ height: `${previewFrameHeight}px` }"
|
|
|
|
|
|
scrolling="yes"
|
|
|
|
|
|
title="学生任务页面只读预览"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-empty v-else :description="studentPreviewError || '当前任务暂不支持页面预览'" :image-size="104" />
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<el-empty v-else description="请选择教学班和实训任务后查看学生任务步骤" :image-size="128" />
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="batchDialogVisible" title="批量打分" width="420px" append-to-body @closed="batchScore = null">
|
|
|
|
|
|
<p class="task-review__batch-copy">请给该实训任务下已选中的学生批量打分</p>
|
|
|
|
|
|
<el-input-number v-model="batchScore" :min="0" :max="100" :precision="0" :controls="false" class="task-review__batch-input" placeholder="请输入0-100分" />
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
<el-button @click="batchDialogVisible = false">取消</el-button>
|
|
|
|
|
|
<el-button type="primary" :loading="savingBatch" @click="saveBatchScore">确定</el-button>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
import { ElMessage } from "element-plus";
|
|
|
|
|
|
import * as teacherApi from "@/api/teacher";
|
|
|
|
|
|
import { listClassTrainingTasks } from "@/api/trainingTask";
|
|
|
|
|
|
import useUserStore from "@/store/modules/user";
|
|
|
|
|
|
import { clearTrainingReviewPreview, writeTrainingReviewPreview } from "@/utils/trainingReviewPreview";
|
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
teachingClassList: { type: Array, default: () => [] },
|
|
|
|
|
|
initialClassId: { type: String, default: "" },
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const userStore = useUserStore();
|
|
|
|
|
|
const fallbackTeachingClassList = ref([]);
|
|
|
|
|
|
const teachingClasses = computed(() => props.teachingClassList.length
|
|
|
|
|
|
? props.teachingClassList
|
|
|
|
|
|
: fallbackTeachingClassList.value);
|
|
|
|
|
|
const filters = ref({ classId: "", projectName: "", taskId: "" });
|
|
|
|
|
|
const review = ref({ projects: [], tasks: [], selectedTask: null, students: [] });
|
|
|
|
|
|
const loading = ref(false);
|
|
|
|
|
|
const savingBatch = ref(false);
|
|
|
|
|
|
const batchDialogVisible = ref(false);
|
|
|
|
|
|
const batchScore = ref(null);
|
|
|
|
|
|
const selectedStudents = ref([]);
|
|
|
|
|
|
const selectedStudentId = ref("");
|
|
|
|
|
|
const studentTableRef = ref();
|
|
|
|
|
|
const previewKey = ref("");
|
|
|
|
|
|
const studentPreviewSrc = ref("");
|
|
|
|
|
|
const studentPreviewError = ref("");
|
|
|
|
|
|
const previewFrameHeight = ref(580);
|
|
|
|
|
|
let previewRequestVersion = 0;
|
|
|
|
|
|
const PREVIEW_HEIGHT_MESSAGE = "teacher-task-review-preview-height";
|
|
|
|
|
|
|
|
|
|
|
|
const canManageClass = computed(() => {
|
|
|
|
|
|
const currentClass = teachingClasses.value.find((item) => item.schoolClassId === filters.value.classId);
|
|
|
|
|
|
return Boolean(currentClass) && String(currentClass.createdBy || "") === String(userStore.userInfo.userId || "");
|
|
|
|
|
|
});
|
|
|
|
|
|
const selectedStudent = computed(() => review.value.students.find((row) => row.studentUserId === selectedStudentId.value) || review.value.students[0] || null);
|
|
|
|
|
|
const canBatchScore = computed(() => canManageClass.value && selectedStudents.value.length > 0 && Boolean(filters.value.taskId));
|
|
|
|
|
|
|
|
|
|
|
|
watch(teachingClasses, (classes) => {
|
|
|
|
|
|
if (!filters.value.classId && classes.length) {
|
|
|
|
|
|
const ownTeachingClass = classes.find((schoolClass) => String(schoolClass.createdBy || "") === String(userStore.userInfo.userId || ""));
|
|
|
|
|
|
filters.value.classId = ownTeachingClass?.schoolClassId || "";
|
|
|
|
|
|
if (filters.value.classId) loadReview();
|
|
|
|
|
|
}
|
|
|
|
|
|
}, { immediate: true });
|
|
|
|
|
|
watch([selectedStudent, () => review.value.selectedTask], refreshStudentPreview, { immediate: true, flush: "post" });
|
|
|
|
|
|
|
|
|
|
|
|
async function refreshStudentPreview() {
|
|
|
|
|
|
const requestVersion = ++previewRequestVersion;
|
|
|
|
|
|
if (previewKey.value) clearTrainingReviewPreview(previewKey.value);
|
|
|
|
|
|
const taskKey = review.value.selectedTask?.taskKey;
|
|
|
|
|
|
const teachingClassId = filters.value.classId;
|
|
|
|
|
|
const student = selectedStudent.value;
|
|
|
|
|
|
studentPreviewError.value = "";
|
|
|
|
|
|
previewFrameHeight.value = 580;
|
|
|
|
|
|
if (!student || !taskKey || !teachingClassId) {
|
|
|
|
|
|
previewKey.value = "";
|
|
|
|
|
|
studentPreviewSrc.value = "";
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
studentPreviewSrc.value = "";
|
|
|
|
|
|
try {
|
|
|
|
|
|
// 班级任务列表返回该班实际生效的配置:教师覆盖优先,未覆盖时使用管理员案例。
|
|
|
|
|
|
const response = await listClassTrainingTasks(filters.value.classId, { enabledOnly: false });
|
|
|
|
|
|
if (requestVersion !== previewRequestVersion) return;
|
|
|
|
|
|
const effectiveTask = (response?.data || []).find((task) => task.taskKey === taskKey);
|
|
|
|
|
|
if (!effectiveTask) throw new Error("未找到该教学班的有效实训案例");
|
|
|
|
|
|
const nextPreviewKey = `review-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
|
|
|
|
writeTrainingReviewPreview(nextPreviewKey, {
|
|
|
|
|
|
taskKey,
|
|
|
|
|
|
teachingClassId,
|
|
|
|
|
|
taskConfig: effectiveTask,
|
|
|
|
|
|
answer: { ...student },
|
|
|
|
|
|
});
|
|
|
|
|
|
previewKey.value = nextPreviewKey;
|
|
|
|
|
|
studentPreviewSrc.value = `${window.location.pathname}#/task-review-preview?taskKey=${encodeURIComponent(taskKey)}&reviewPreviewKey=${encodeURIComponent(nextPreviewKey)}`;
|
|
|
|
|
|
} catch (_) {
|
|
|
|
|
|
if (requestVersion !== previewRequestVersion) return;
|
|
|
|
|
|
previewKey.value = "";
|
|
|
|
|
|
studentPreviewError.value = "该教学班的实训案例加载失败,未展示通用案例";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
function formatScore(score) {
|
|
|
|
|
|
return score === null || score === undefined || score === "" ? "--" : score;
|
|
|
|
|
|
}
|
|
|
|
|
|
function normalizeReview(data) {
|
|
|
|
|
|
const students = (data?.students || []).map((row) => ({ ...row, teacherScoreDraft: row.teacherScore ?? null }));
|
|
|
|
|
|
review.value = { projects: data?.projects || [], tasks: data?.tasks || [], selectedTask: data?.selectedTask || null, students };
|
|
|
|
|
|
const selectedTask = review.value.selectedTask;
|
|
|
|
|
|
filters.value.taskId = selectedTask?.taskId || "";
|
|
|
|
|
|
if (selectedTask && !filters.value.projectName) filters.value.projectName = selectedTask.projectName || "";
|
|
|
|
|
|
if (!students.some((row) => row.studentUserId === selectedStudentId.value)) selectedStudentId.value = students[0]?.studentUserId || "";
|
|
|
|
|
|
selectedStudents.value = [];
|
|
|
|
|
|
studentTableRef.value?.clearSelection();
|
|
|
|
|
|
}
|
|
|
|
|
|
async function loadReview() {
|
|
|
|
|
|
if (!filters.value.classId) return;
|
|
|
|
|
|
loading.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
/*
|
|
|
|
|
|
* 首次进入 / 切换班级时,前端还不知道该选哪个实训项目,因此首个请求不带
|
|
|
|
|
|
* projectName;后端在 projectName 为空时不会按项目联动过滤,会把该教学班的
|
|
|
|
|
|
* 全部实训任务都返回回来。normalizeReview 随后用 selectedTask 回填了
|
|
|
|
|
|
* projectName,但任务列表仍停留在"全量"那份数据上,表现为:
|
|
|
|
|
|
* 「实训任务」下拉展示了全部任务,手动重选一次实训项目才恢复正常。
|
|
|
|
|
|
* 这里在回填出 projectName 后按该项目重新查一次,保证两个下拉始终联动一致。
|
|
|
|
|
|
*/
|
|
|
|
|
|
const requestedProject = filters.value.projectName;
|
|
|
|
|
|
const res = await teacherApi.getTaskReview({ ...filters.value });
|
|
|
|
|
|
normalizeReview(res.data);
|
|
|
|
|
|
if (!requestedProject && filters.value.projectName) {
|
|
|
|
|
|
const projectRes = await teacherApi.getTaskReview({ ...filters.value });
|
|
|
|
|
|
const projectTasks = projectRes?.data?.tasks || [];
|
|
|
|
|
|
const currentTaskListed = projectTasks.some((task) => String(task.taskId) === String(filters.value.taskId));
|
|
|
|
|
|
if (currentTaskListed) {
|
|
|
|
|
|
// 常规路径:只替换「实训任务」下拉的选项,不动 selectedTask 与学生列表,
|
|
|
|
|
|
// 避免多触发一次右侧学生页预览重建(预览页会真实发起接口请求)。
|
|
|
|
|
|
review.value = {
|
|
|
|
|
|
...review.value,
|
|
|
|
|
|
projects: projectRes.data.projects || review.value.projects,
|
|
|
|
|
|
tasks: projectTasks,
|
|
|
|
|
|
};
|
|
|
|
|
|
} else if (projectTasks.length) {
|
|
|
|
|
|
// 兜底:过滤后不含当前任务时整体刷新,保证下拉值与选中任务一致。
|
|
|
|
|
|
normalizeReview(projectRes.data);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
loading.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
async function loadTeachingClasses() {
|
|
|
|
|
|
if (props.teachingClassList.length) return;
|
|
|
|
|
|
const res = await teacherApi.getAccessibleTeachingClasses();
|
|
|
|
|
|
fallbackTeachingClassList.value = (res.data || []).filter((item) => item.classType === "TEACHING");
|
|
|
|
|
|
}
|
|
|
|
|
|
function onClassChange() {
|
|
|
|
|
|
filters.value.projectName = "";
|
|
|
|
|
|
filters.value.taskId = "";
|
|
|
|
|
|
loadReview();
|
|
|
|
|
|
}
|
|
|
|
|
|
function onProjectChange() {
|
|
|
|
|
|
filters.value.taskId = "";
|
|
|
|
|
|
loadReview();
|
|
|
|
|
|
}
|
|
|
|
|
|
function onSelectionChange(rows) {
|
|
|
|
|
|
selectedStudents.value = rows;
|
|
|
|
|
|
}
|
|
|
|
|
|
function canSelectStudent(row) {
|
|
|
|
|
|
return canManageClass.value && Boolean(row.scorable);
|
|
|
|
|
|
}
|
|
|
|
|
|
function selectStudent(row) {
|
|
|
|
|
|
selectedStudentId.value = row.studentUserId;
|
|
|
|
|
|
}
|
|
|
|
|
|
function studentRowClass({ row }) {
|
|
|
|
|
|
return row.studentUserId === selectedStudentId.value ? "task-review__selected-row" : "";
|
|
|
|
|
|
}
|
|
|
|
|
|
function onPreviewMessage(event) {
|
|
|
|
|
|
if (event.origin !== window.location.origin) return;
|
|
|
|
|
|
const data = event.data || {};
|
|
|
|
|
|
if (data.type !== PREVIEW_HEIGHT_MESSAGE || data.previewKey !== previewKey.value) return;
|
|
|
|
|
|
const height = Number(data.height);
|
|
|
|
|
|
if (Number.isFinite(height) && height > 0) previewFrameHeight.value = Math.max(580, Math.ceil(height));
|
|
|
|
|
|
}
|
|
|
|
|
|
async function saveSingleScore(row) {
|
|
|
|
|
|
const score = row.teacherScoreDraft;
|
|
|
|
|
|
if (!Number.isInteger(score) || score < 0 || score > 100) {
|
|
|
|
|
|
ElMessage.error("教师评分必须为0至100之间的整数");
|
|
|
|
|
|
row.teacherScoreDraft = row.teacherScore ?? null;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
|
|
|
await teacherApi.saveTaskTeacherScore({ classId: filters.value.classId, studentUserId: row.studentUserId, taskId: filters.value.taskId, teacherScore: score });
|
|
|
|
|
|
ElMessage.success("任务评分保存成功");
|
|
|
|
|
|
await loadReview();
|
|
|
|
|
|
} catch (_) {
|
|
|
|
|
|
row.teacherScoreDraft = row.teacherScore ?? null;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
async function saveBatchScore() {
|
|
|
|
|
|
if (!Number.isInteger(batchScore.value) || batchScore.value < 0 || batchScore.value > 100) {
|
|
|
|
|
|
ElMessage.error("请输入0至100之间的整数分数");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
savingBatch.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
await teacherApi.batchSaveTaskTeacherScore({
|
|
|
|
|
|
classId: filters.value.classId,
|
|
|
|
|
|
taskId: filters.value.taskId,
|
|
|
|
|
|
studentUserIds: selectedStudents.value.map((row) => row.studentUserId),
|
|
|
|
|
|
teacherScore: batchScore.value,
|
|
|
|
|
|
});
|
|
|
|
|
|
ElMessage.success("批量任务评分保存成功");
|
|
|
|
|
|
batchDialogVisible.value = false;
|
|
|
|
|
|
await loadReview();
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
savingBatch.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
window.addEventListener("message", onPreviewMessage);
|
|
|
|
|
|
loadTeachingClasses();
|
|
|
|
|
|
});
|
|
|
|
|
|
onBeforeUnmount(() => {
|
|
|
|
|
|
window.removeEventListener("message", onPreviewMessage);
|
|
|
|
|
|
clearTrainingReviewPreview(previewKey.value);
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.task-review {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: minmax(440px, 520px) minmax(0, 1fr);
|
|
|
|
|
|
min-height: calc(100vh - 142px);
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
|
border-radius: var(--r-card);
|
|
|
|
|
|
|
|
|
|
|
|
/* ===== 左侧栏 ===== */
|
|
|
|
|
|
.task-review__sidebar {
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
|
border-right: 1px solid var(--border-color);
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ===== 筛选(白卡)===== */
|
|
|
|
|
|
.task-review__filters {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
|
padding: var(--sp-4);
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
|
border-radius: var(--r-card);
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-form-item) {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-select) {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review__list-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
margin: var(--sp-4) 0 var(--sp-1);
|
|
|
|
|
|
color: var(--text-strong);
|
|
|
|
|
|
font-size: var(--fs-card);
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review__score-input {
|
|
|
|
|
|
width: 70px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ===== 学生表格(纯白 + 灰线)===== */
|
|
|
|
|
|
.task-review__student-table {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
|
border-radius: var(--r-card);
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-table__header-wrapper th) {
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
color: var(--text-strong);
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: var(--fs-body);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-table__body tr:hover > td) {
|
|
|
|
|
|
background: #f9fafb !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.task-review__selected-row > td) {
|
|
|
|
|
|
background: #f9fafb !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-table__cell) {
|
|
|
|
|
|
font-size: var(--fs-body);
|
|
|
|
|
|
color: var(--text-strong);
|
|
|
|
|
|
border-color: var(--border-color);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.cell) {
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(th .cell) {
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review__readonly-tip {
|
|
|
|
|
|
margin: var(--sp-3) 0 0;
|
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
|
font-size: var(--fs-body);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ===== 右侧预览区 ===== */
|
|
|
|
|
|
.task-review__content {
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review__student-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: var(--sp-5);
|
|
|
|
|
|
padding: 0 0 var(--sp-5);
|
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: var(--text-strong);
|
|
|
|
|
|
font-size: var(--fs-page);
|
|
|
|
|
|
line-height: 1.35;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
|
margin: var(--sp-2) 0 0;
|
|
|
|
|
|
color: var(--text-body);
|
|
|
|
|
|
font-size: var(--fs-body);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review__scores {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: var(--sp-2);
|
|
|
|
|
|
color: var(--text-body);
|
|
|
|
|
|
font-size: var(--fs-body);
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
|
padding: var(--sp-1) var(--sp-2);
|
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
strong {
|
|
|
|
|
|
margin-left: var(--sp-1);
|
|
|
|
|
|
color: var(--edu-primary);
|
|
|
|
|
|
font-size: var(--fs-num);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review__student-preview-scroll {
|
|
|
|
|
|
height: calc(100vh - 260px);
|
|
|
|
|
|
min-height: 580px;
|
|
|
|
|
|
margin-top: var(--sp-5);
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
scrollbar-gutter: stable;
|
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
|
border-radius: var(--r-card);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review__student-preview {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
min-height: 580px;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 批量打分弹窗(append-to-body,取不到根类令牌时按令牌值兜底) */
|
|
|
|
|
|
.task-review__batch-copy {
|
|
|
|
|
|
margin: 0 0 var(--sp-4, 16px);
|
|
|
|
|
|
color: var(--text-body);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review__batch-input {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1180px) {
|
|
|
|
|
|
.task-review {
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review .task-review__sidebar {
|
|
|
|
|
|
border-right: 0;
|
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 720px) {
|
|
|
|
|
|
.task-review .task-review__filters {
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review .task-review__content {
|
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review .task-review__student-head {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-review .task-review__scores {
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
white-space: normal;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|