ソースを参照

调查问卷修改

canghailong 6 ヶ月 前
コミット
44be569f72

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

@@ -68,17 +68,17 @@
 				</div>
 			</div>
 			<!-- 结果、分数、难度、解析、正确答案 -->
-			<div class="question-answer-show-item" style="margin-top: 15px" v-if="paperType!=5">
+			<div class="question-answer-show-item" style="margin-top: 15px">
 				<span class="question-show-item">结果:</span>
 				<a-tag :color="doRightTagFormatter(answer.doRight)">
 					{{ doRightTextFormatter(answer.doRight) }}
 				</a-tag>
 			</div>
-			<div class="question-answer-show-item" v-if="paperType!=5">
+			<!-- <div class="question-answer-show-item">
 				<span class="question-show-item">分数:</span>
 				<span>{{ question.score }}</span>
-			</div>
-			<div class="question-answer-show-item" v-if="paperType!=5">
+			</div> -->
+			<div class="question-answer-show-item">
 				<span class="question-show-item">难度:</span>
 				<a-rate :value="question.difficult" disabled class="question-show-item" />
 			</div>

+ 1 - 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" v-if="form.paperType!=5">试卷得分:{{ answer.score }}</span>
+					<!-- <span class="question-title-padding">试卷得分:{{ answer.score }}</span> -->
 					<span class="question-title-padding">试卷耗时:{{ formatSeconds(answer.doTime) }}</span>
 				</div>
 			</a-layout-header>

+ 18 - 7
src/views/student/paper/index.vue

@@ -26,13 +26,13 @@
 									{{ record.examName }}
 								</template>
 								<template v-if="column.key === 'examType'">
-									{{ examTypeName(record.examType)||'--' }}
+									{{ examTypeName(record.examType) || '--' }}
 								</template>
 								<template v-if="column.key === 'startTime'">
-									{{ formatDateTime(record.startTime)||'--' }}
+									{{ formatDateTime(record.startTime) || '--' }}
 								</template>
 								<template v-if="column.key === 'endTime'">
-									{{ formatDateTime(record.endTime)||'--' }}
+									{{ formatDateTime(record.endTime) || '--' }}
 								</template>
 								<template v-if="column.key === 'status'">
 									<a-tag :color="statusTagFormatter(record.status)" size="small">
@@ -41,14 +41,14 @@
 								</template>
 								<template v-if="column.key === 'action'">
 									<router-link
-										v-if="record.status === 0"
+										v-if="record.status == 0"
 										:to="{ path: '/student/do', query: { id: record.paperId } }"
 										target="_blank"
 									>
 										<a-button type="link" size="small">填写{{ examName }}</a-button>
 									</router-link>
 									<router-link
-										v-if="record.status === 2"
+										v-if="record.examType != 3 && record.status == 2"
 										:to="{ path: '/student/read', query: { id: record.answerId } }"
 										target="_blank"
 									>
@@ -64,12 +64,23 @@
 									{{ paperTypeEnum(record.paperType) }}
 								</template>
 								<template v-if="column.key === 'subjectId'">
-									{{ subjectName(record.subjectId)|| '--' }}
+									{{ subjectName(record.subjectId) || '--' }}
 								</template>
 								<template v-if="column.key === 'action'">
-									<router-link :to="{ path: '/student/do', query: { id: record.id } }" target="_blank">
+									<router-link
+										v-if="!record.status"
+										:to="{ path: '/student/do', query: { id: record.id } }"
+										target="_blank"
+									>
 										<a-button type="link" size="small">开始答题</a-button>
 									</router-link>
+									<router-link
+										v-if="record.status == 2"
+										:to="{ path: '/student/read', query: { id: record.answerId } }"
+										target="_blank"
+									>
+										<a-button type="link" size="small">查看结果</a-button>
+									</router-link>
 								</template>
 							</div>
 						</template>