阳洁
2024-02-23 8f685b98d924cabe0026163398e1867b54b3a988
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 !== 'APIFan'" @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 === 'APIFan'" @click="openExercise" type="primary" round>继续</el-button>
        </el-row>
      </el-main>
    </el-container>
@@ -27,7 +28,6 @@
  created () {
  },
  mounted () {
    console.log(this.formDo)
    // 替换APIFan指导语中的变量
    if (this.formDo.productType === 'APIFan') {
      let guide = this.formDo.guide
@@ -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: {