From 0f3a72e00606a7626406fcd76f97098d99686481 Mon Sep 17 00:00:00 2001
From: yj <2077506045@qq.com>
Date: 星期一, 18 十一月 2024 09:32:23 +0800
Subject: [PATCH] 更新

---
 src/views/exam/paper/guide.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/views/exam/paper/guide.vue b/src/views/exam/paper/guide.vue
index 4aca1bf..6ab4db6 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.questionTemplateId === 'job'" @click="openExplain" type="danger" round>鎵撳紑宀椾綅璇存槑</el-button>
+          <el-button v-if="formDo.questionTemplateId !== 'personality'" @click="doExam" type="primary" round>{{$t('startDo')}}</el-button>
+          <el-button v-if="formDo.questionTemplateId === 'job'" @click="openExplain" type="danger" round>{{$t('openJobDesc')}}</el-button>
+          <el-button v-if="formDo.questionTemplateId === 'personality'" @click="openExercise" type="primary" round>{{$t('exercise_start')}}</el-button>
         </el-row>
       </el-main>
     </el-container>
@@ -27,9 +28,8 @@
   created () {
   },
   mounted () {
-    console.log(this.formDo)
     // 鏇挎崲APIFan鎸囧璇腑鐨勫彉閲�
-    if (this.formDo.productType === '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)
@@ -56,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