|
@@ -46,7 +46,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <ExamPaper :examId="examId" :examRecordDataId="examRecordDataId" />
|
|
|
+ <div style="margin: 20px; display: grid; grid-template-columns: repeat( auto-fit, minmax(100px, 1fr) ); grid-gap: 20px">
|
|
|
+ <i-button class="qm-primary-button" @click="shouldShowPaper= !shouldShowPaper">展开试卷</i-button>
|
|
|
+ <i-button v-if="!disableGoBack" class="qm-primary-button" @click="goBack">返回</i-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <ExamPaper v-if="shouldShowPaper" :examId="examId" :examRecordDataId="examRecordDataId" />
|
|
|
</main-layout>
|
|
|
</template>
|
|
|
|
|
@@ -60,7 +65,11 @@ import ExamPaper from "../OnlineExam/Examing/ExamPaper.vue";
|
|
|
export default {
|
|
|
name: "OnlinePracticeRecordDetail",
|
|
|
data() {
|
|
|
- return { examRecordResult: [] };
|
|
|
+ return {
|
|
|
+ examRecordResult: [],
|
|
|
+ shouldShowPaper: false,
|
|
|
+ disableGoBack: this.$route.query.disableGoBack
|
|
|
+ };
|
|
|
},
|
|
|
async created() {
|
|
|
try {
|
|
@@ -83,6 +92,9 @@ export default {
|
|
|
},
|
|
|
formatTime(ms) {
|
|
|
return moment.utc(ms).format("HH:mm:ss") || "";
|
|
|
+ },
|
|
|
+ goBack() {
|
|
|
+ this.$router.back();
|
|
|
}
|
|
|
},
|
|
|
computed: {
|