From dc2c454c2ae3fdfdddcad0fd609e1a0def3b67a5 Mon Sep 17 00:00:00 2001 From: 84702473 <84702473@qq.com> Date: 星期五, 31 三月 2023 09:44:36 +0800 Subject: [PATCH] 添加弹窗提示框 --- src/views/exam/paper/values.vue | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/views/exam/paper/values.vue b/src/views/exam/paper/values.vue index 2a6c5e9..7a4c865 100644 --- a/src/views/exam/paper/values.vue +++ b/src/views/exam/paper/values.vue @@ -4,11 +4,16 @@ <el-header class=""> <h1>{{$t('values_title')}}</h1> </el-header> - <el-main class="" style="padding-top: 3%;"> - <div v-html="$t('values_title_description')"> + <el-main class=""> + <div> + <div>{{$t('values_title_description')}}</div> + <div>{{$t('values_title_description_1')}}<img class="tools-button" src="@/assets/exam-paper/good.png" style="width: 15px;"/></div> + <div>{{$t('values_title_description_2')}}<img class="tools-button" src="@/assets/exam-paper/nogood.png" style="width: 15px;"/></div> + <div>{{$t('values_title_description_3')}}<img class="tools-button" src="@/assets/exam-paper/question.png" style="width: 15px;"/></div> </div> + <div style="display: flex;justify-content: flex-start;padding: 10px 0;"> - <el-button @click="step1_start" type="primary" round v-if="!step1Start">{{$t('start')}}</el-button> + <el-button style="margin-top: 12px;" @click="step1_start" type="primary" round v-if="!step1Start">{{$t('start')}}</el-button> <el-button style="margin-top: 12px;" type="primary" round @click="step1_next" v-if="(step1Start && itemSize>0)"> {{$t('next')}} @@ -612,9 +617,18 @@ this.$message.error(_this.$t('values_nextStepTips_choices_all')) return } - this.step = "step2" - this.sortQuestions() - this.caculateScoreRangeSelectedById(this.getStep2StepItem(this.step2SubStep).itemOrder) + this.$confirm(_this.$t('values_nextStepTips_tips'), _this.$t('prompt'), { + confirmButtonText: _this.$t('determine'), + cancelButtonText: _this.$t('cancel'), + type: 'warning' + }).then(() => { + _this.step = "step2" + _this.sortQuestions() + _this.caculateScoreRangeSelectedById(this.getStep2StepItem(this.step2SubStep).itemOrder) + }).catch(() => { + + }); + }, step2_pre() { if (this.step2SubStep > 1) { -- Gitblit v1.9.1