فهرست منبع

reactor:调整考试培训得培训模板目录;

zhangchong 6 روز پیش
والد
کامیت
91172c39ec
2فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 7 0
      src/views/examTrain/exam/marking/components/Exam-Marking.vue
  2. 3 1
      src/views/examTrain/exam/marking/index.vue

+ 7 - 0
src/views/examTrain/exam/marking/components/Exam-Marking.vue

@@ -138,6 +138,13 @@ const getExamManageDetailData = async () => {
 };
 // 保存提交
 const onSave = throttle(() => {
+	// 校验阅卷是否完成
+	for (const item of state.examList) {
+		if (!item.score) {
+			ElMessage.warning(`请填写【${item.title}】的分数`);
+			return;
+		}
+	}
 	const request = state.examList.map((item: any) => {
 		return {
 			userExamItemId: item.id,

+ 3 - 1
src/views/examTrain/exam/marking/index.vue

@@ -53,8 +53,10 @@
 					<vxe-column field="remark" title="备注" min-width="200"></vxe-column>
 					<vxe-column title="操作" fixed="right" width="80" align="center" :show-overflow="false">
 						<template #default="{ row }">
+							<el-button link type="primary" @click="onMarking(row)" title="阅卷" v-if="!row.isCheck" v-auth="'examTrain:exam:marking'">
+								阅卷
+							</el-button>
 							<el-button link type="primary" @click="onView(row)" title="查看" v-if="row.isCheck"> 查看 </el-button>
-							<el-button link type="primary" @click="onMarking(row)" title="阅卷" v-else> 阅卷 </el-button>
 						</template>
 					</vxe-column>
 				</vxe-table>