From b1f4b07417ce38dcff3f0b2a9fa0fef9ab183b28 Mon Sep 17 00:00:00 2001 From: 阳洁 <2077506045@qq.com> Date: 星期四, 22 二月 2024 15:48:08 +0800 Subject: [PATCH] 1. 人格问卷答题目选项增加边框 2. API-Fan事中提示语解析变量 3. 答题完毕的提示语修改 4. 答题完毕页面增加关闭页面按钮 --- src/views/exam/paper/guide.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/exam/paper/guide.vue b/src/views/exam/paper/guide.vue index 53364aa..4aca1bf 100644 --- a/src/views/exam/paper/guide.vue +++ b/src/views/exam/paper/guide.vue @@ -1,7 +1,7 @@ <template> <div> <el-container class="app-item-contain"> - <el-header class="align-center" style="height: 50px;padding: 1%;"> + <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%"> @@ -27,7 +27,14 @@ created () { }, mounted () { - + console.log(this.formDo) + // 鏇挎崲APIFan鎸囧璇腑鐨勫彉閲� + if (this.formDo.productType === 'APIFan') { + 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 + ' 鏇存柊鐘舵�佸け璐�') }) -- Gitblit v1.9.1