From ec488901a1f6cfc829c082b062fb641531588037 Mon Sep 17 00:00:00 2001
From: 阳洁 <2077506045@qq.com>
Date: 星期四, 22 二月 2024 16:23:50 +0800
Subject: [PATCH] 修改答题完毕下载报告提示语
---
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