From a669d093b150577fcec75fb19c24dd6b1dd91958 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 19 Aug 2019 13:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=85=A8=E5=B1=80loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demonstration/detail/index.vue | 1 - src/views/exam/detail/examDetail.vue | 1 - src/views/lesson/trainingmanage/index.vue | 7 ------- 3 files changed, 9 deletions(-) diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue index 12b2f8f4e..f76309737 100644 --- a/src/views/demonstration/detail/index.vue +++ b/src/views/demonstration/detail/index.vue @@ -291,7 +291,6 @@ export default { this.$router.push({ path: `${UrlConfig.display}/demon`, query: query }); launchFullscreen(); }).catch(error => { - this.loading.close(); this.$messageBox(`创建仿真失败: ${error.message}`); }); }, diff --git a/src/views/exam/detail/examDetail.vue b/src/views/exam/detail/examDetail.vue index 4e786ed21..9d2f354ba 100644 --- a/src/views/exam/detail/examDetail.vue +++ b/src/views/exam/detail/examDetail.vue @@ -180,7 +180,6 @@ export default { await this.$store.dispatch('exam/setTotalTime', this.userExam.duration); await this.$store.dispatch('trainingList/setTrainingList', list); } catch (error) { - this.loading.close(); // 判断是否有考试权限,如果没有权限则跳到购买页面,否则报错 if (error.code === 500004) { this.$confirm('无此课程的考试权限,请前往购买!', '提示', { diff --git a/src/views/lesson/trainingmanage/index.vue b/src/views/lesson/trainingmanage/index.vue index 0b35d655e..1a2cbcce8 100644 --- a/src/views/lesson/trainingmanage/index.vue +++ b/src/views/lesson/trainingmanage/index.vue @@ -258,12 +258,6 @@ export default { this.$refs.draftTrain.show({ event: '03', title: '删除自动生成实训' }); }, demoDisplay(index, node) { - this.loading = this.$loading({ - lock: true, - text: 'Loading', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }); trainingNotify({ trainingId: node.id }).then(resp => { /** 区分演示和正式,需要在演示时设置lessonId为0*/ const query = { group: resp.data, trainingId: node.id, lessonId: 0 }; @@ -271,7 +265,6 @@ export default { launchFullscreen(); }).catch(error => { this.$messageBox(`创建仿真失败: ${error.message}`); - this.loading.close(); }); },