From d9e74666ce84b0f32c5cd6f9799d61bd0b009f10 Mon Sep 17 00:00:00 2001 From: yj <2077506045@qq.com> Date: 星期四, 04 七月 2024 09:28:27 +0800 Subject: [PATCH] 1.修复填写人口学变量页面刷新后变为英文的问题 2.更新JAQ文字,打开岗位说明 -> 问卷作答说明 --- src/views/exam/paper/guide.vue | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/views/exam/paper/guide.vue b/src/views/exam/paper/guide.vue index 3a76279..6ab4db6 100644 --- a/src/views/exam/paper/guide.vue +++ b/src/views/exam/paper/guide.vue @@ -1,14 +1,15 @@ <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-button v-if="formDo.questionTemplateId !== 'personality'" @click="doExam" type="primary" round>{{$t('startDo')}}</el-button> + <el-button v-if="formDo.questionTemplateId === 'job'" @click="openExplain" type="danger" round>{{$t('openJobDesc')}}</el-button> + <el-button v-if="formDo.questionTemplateId === 'personality'" @click="openExercise" type="primary" round>{{$t('exercise_start')}}</el-button> </el-row> </el-main> </el-container> @@ -27,7 +28,13 @@ created () { }, mounted () { - + // 鏇挎崲APIFan鎸囧璇腑鐨勫彉閲� + if (this.formDo.productType === 'API_Fan') { + let guide = this.formDo.guide + guide = guide.replace('%%fullName%%', this.formDo.memberName) + guide = guide.replace('%%company%%', this.formDo.reportCompany) + this.formDo.guide = guide + } }, beforeDestroy () { window.clearInterval(this.timer) @@ -36,7 +43,12 @@ 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 + ' 鏇存柊鐘舵�佸け璐�') }) @@ -44,6 +56,12 @@ openExplain: function () { let _this = this window.open(_this.formDo.jobDescriptionFile) + }, + + // 鎵撳紑缁冧範椤甸潰 + openExercise: function () { + let _this = this + _this.$router.push({ path: '/exam/exercise', query: { formDo: _this.$route.query.formDo } }) } }, computed: { -- Gitblit v1.9.1