Forráskód Böngészése

调查问卷不用显示得多少分,也不用显示查询结果

canghailong 6 hónapja
szülő
commit
b70dec4bae

+ 8 - 4
src/views/student/exam/components/QuestionAnswerShow.vue

@@ -68,17 +68,17 @@
 				</div>
 			</div>
 			<!-- 结果、分数、难度、解析、正确答案 -->
-			<div class="question-answer-show-item" style="margin-top: 15px">
+			<div class="question-answer-show-item" style="margin-top: 15px" v-if="paperType!=5">
 				<span class="question-show-item">结果:</span>
 				<a-tag :color="doRightTagFormatter(answer.doRight)">
 					{{ doRightTextFormatter(answer.doRight) }}
 				</a-tag>
 			</div>
-			<div class="question-answer-show-item">
+			<div class="question-answer-show-item" v-if="paperType!=5">
 				<span class="question-show-item">分数:</span>
 				<span>{{ question.score }}</span>
 			</div>
-			<div class="question-answer-show-item">
+			<div class="question-answer-show-item" v-if="paperType!=5">
 				<span class="question-show-item">难度:</span>
 				<a-rate :value="question.difficult" disabled class="question-show-item" />
 			</div>
@@ -120,10 +120,14 @@
 		qType: {
 			type: Number,
 			default: 0
+		},
+		paperType:{
+			type:String,
+			default:''
 		}
 	})
 
-	const { question, answer, qLoading, qType } = toRefs(props)
+	const { question, answer, qLoading, qType, paperType } = toRefs(props)
 	const examStore = useExamStore()
 
 	const doRightEnum = computed(() => examStore.exam.question.answer.doRightEnum)

+ 2 - 1
src/views/student/exam/paper/read.vue

@@ -24,7 +24,7 @@
 			<a-layout-header class="align-center">
 				<h1>{{ form.name }}</h1>
 				<div>
-					<span class="question-title-padding">试卷得分:{{ answer.score }}</span>
+					<span class="question-title-padding" v-if="form.paperType!=5">试卷得分:{{ answer.score }}</span>
 					<span class="question-title-padding">试卷耗时:{{ formatSeconds(answer.doTime) }}</span>
 				</div>
 			</a-layout-header>
@@ -48,6 +48,7 @@
 										:qType="questionItem.questionType"
 										:question="questionItem"
 										:answer="answer.answerItems[questionItem.itemOrder - 1]"
+										:paperType="form.paperType"
 									/>
 								</a-form-item>
 							</a-card>

+ 1 - 0
src/views/student/paper/index.vue

@@ -174,6 +174,7 @@
 			const params = {
 				current: pagination.value.current,
 				size: pagination.value.pageSize,
+				subjectId: pagination.value.subjectId,
 				courseId: route.query.id,
 				paperType: paperType.value,
 				examType: examType.value