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 |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/views/exam/paper/guide.vue b/src/views/exam/paper/guide.vue
index e9ed05e..4aca1bf 100644
--- a/src/views/exam/paper/guide.vue
+++ b/src/views/exam/paper/guide.vue
@@ -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