From abff99332f01964f43859b6cc88d22dcac12c343 Mon Sep 17 00:00:00 2001
From: 阳洁 <2077506045@qq.com>
Date: 星期二, 05 三月 2024 10:25:17 +0800
Subject: [PATCH] 根据产品显示不同logo图片
---
src/views/exam/paper/guide.vue | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/views/exam/paper/guide.vue b/src/views/exam/paper/guide.vue
index 8c6c0b4..f0c4667 100644
--- a/src/views/exam/paper/guide.vue
+++ b/src/views/exam/paper/guide.vue
@@ -7,8 +7,9 @@
<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.productType !== 'API_Fan'" @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.productType === 'API_Fan'" @click="openExercise" type="primary" round>缁х画</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)
@@ -49,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