| | |
| | | <template> |
| | | <div> |
| | | <el-container class="app-item-contain"> |
| | | <el-header class="align-center" style="height: 50px;padding: 1%;"> |
| | | <H2 v-html="$t('guide')" v-if="formDo.questionTemplateId !== 'job'"></H2> |
| | | <el-header class="align-center" style="height: 50px;padding: 1%;margin-top: 4%"> |
| | | <H2 v-html="$t('guide')" v-if="formDo.questionTemplateId !== 'job' || formDo.questionTemplateId !== 'values'"></H2> |
| | | </el-header> |
| | | <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 !== 'personality'" @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="openExercise" type="primary" round>{{$t('exercise_start')}}</el-button> |
| | | </el-row> |
| | | </el-main> |
| | | </el-container> |
| | |
| | | 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) |
| | |
| | | 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 + ' 更新状态失败') |
| | | }) |
| | |
| | | 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: { |