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/personality.vue | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/views/exam/paper/personality.vue b/src/views/exam/paper/personality.vue index 8d7434e..70b4c8b 100644 --- a/src/views/exam/paper/personality.vue +++ b/src/views/exam/paper/personality.vue @@ -142,12 +142,10 @@ _this.initAnswer() _this.formLoading = false _this.memberName = _this.form.memberName - examPaperApi.selectTokenId(_this.memberToken).then(re => { _this.answered = re.response.examItemOrderAndContentList _this.doTime = re.response.doTime _this.timeReduce() - if (_this.answered !== null) { _this.answered.forEach(it => { _this.answer.answerItems[parseInt(it.itemOrder) - 1].content = it.content @@ -187,11 +185,26 @@ ).catch(e => { }) } + }, mounted () { }, beforeDestroy () { window.clearInterval(this.timer) + }, + watch: { + guideDescirption: function (newVal, oldVal) { + // 澶勭悊鎸囧璇紝鏇存崲鍙橀噺 + if (newVal) { + if (this.form) { + let productType = this.form.productType + if (productType === 'APIFan') { + newVal = newVal.replace('%%company%%', this.form.reportCompany) + this.guideDescirption = newVal + } + } + } + } }, methods: { formatSeconds (theTime) { @@ -449,7 +462,16 @@ } else { _this.answer.verifyStatus = 1 _this.answer.finish = 1 - _this.submitAnswer(_this.$t('finishPersonalityInfo')) + if (this.form) { + let productType = this.form.productType + if (productType === 'APIFan') { + _this.submitAnswer(_this.$t('finishPersonalityInfo_apifan')) + } else { + _this.submitAnswer(_this.$t('finishPersonalityInfo')) + } + } else { + _this.submitAnswer(_this.$t('finishPersonalityInfo')) + } } }, startDo: function () { -- Gitblit v1.9.1