From cbb07baa7fec84a79914651daa22ba214f4e0260 Mon Sep 17 00:00:00 2001
From: 阳洁 <2077506045@qq.com>
Date: 星期三, 31 一月 2024 17:36:27 +0800
Subject: [PATCH] Merge branch 'APIFan' of http://47.107.238.89:10801/r/TAI_OTS_BROWSER into APIFan
---
src/views/exam/paper/guide.vue | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/views/exam/paper/guide.vue b/src/views/exam/paper/guide.vue
index b3d3d46..8f1e39e 100644
--- a/src/views/exam/paper/guide.vue
+++ b/src/views/exam/paper/guide.vue
@@ -1,13 +1,14 @@
<template>
<div>
<el-container class="app-item-contain">
- <el-header class="align-center" style="height: 50px;padding: 1%;">
- <H2 v-html="$t('guide')" v-if="formDo.questionTemplateId !== 'job'"></H2>
+ <el-header class="align-center" style="height: 50px;padding: 1%;margin-top: 4%">
+ <H2 v-html="$t('guide')" v-if="formDo.questionTemplateId !== 'job' || formDo.questionTemplateId !== 'values'"></H2>
</el-header>
<el-main style="padding-top:0%">
<div v-html="formDo.guide"></div>
<el-row class="do-align-center">
<el-button @click="doExam" type="primary" round>{{$t('startDo')}}</el-button>
+ <el-button v-if="formDo.questionTemplateId === 'job'" @click="openExplain" type="danger" round>鎵撳紑宀椾綅璇存槑</el-button>
</el-row>
</el-main>
</el-container>
@@ -26,7 +27,6 @@
created () {
},
mounted () {
-
},
beforeDestroy () {
window.clearInterval(this.timer)
@@ -35,10 +35,19 @@
doExam: function () {
let _this = this
examPaperApi.updateTestMemberStatus(_this.memberToken).then(re => {
- _this.$router.push({ path: '/exam/' + _this.doUrl, query: { formDo: _this.$route.query.formDo } })
+ // LAQ鐗规畩澶勭悊
+ if (_this.formDo.name.indexOf('LAQ') !== -1) {
+ _this.$router.push({ path: '/exam/' + _this.formDo.questionTemplateId, query: { formDo: _this.$route.query.formDo } })
+ } else {
+ _this.$router.push({ path: '/exam/' + _this.doUrl, query: { formDo: _this.$route.query.formDo } })
+ }
}).catch(re => {
_this.$message.error(re.message + ' 鏇存柊鐘舵�佸け璐�')
})
+ },
+ openExplain: function () {
+ let _this = this
+ window.open(_this.formDo.jobDescriptionFile)
}
},
computed: {
--
Gitblit v1.9.1