From cf88299bd0b8668c566eb7c82358718f2e283100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 19 Apr 2024 10:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/specialDiseaseNode/index.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index 55301bc..60dbf84 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -360,12 +360,19 @@ export default { }, methods: { info() { + const loading = this.$loading({ + lock: true, + text: '数据加载中', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); this.lists = [] if (this.$route.query) { this.updata.suitRange = this.$route.query.suitRange this.updata.routeName = this.$route.query.routeName this.updata.specialDiseaseRouteId = this.$route.query.id selectSpecialDisease(this.$route.query.id).then(res => { + loading.close(); this.agreeNumber = res.data.agreeNumber this.totalNumber = res.data.totalNumber res.data.specialDiseaseNodeList.forEach(e => { @@ -380,6 +387,7 @@ export default { } }) } else { + loading.close(); this.lists.push({ routeNodeName: "", routeNodeDay: '', @@ -452,6 +460,12 @@ export default { //暂存 TemporaryStorage() { this.$refs.wangeditor.emit() + const loading = this.$loading({ + lock: true, + text: '暂存中', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); this.updata.specialDiseaseNodeList = [] this.lists.forEach(e => { e.list.length > 0 ? e.list.forEach(el => { @@ -462,6 +476,7 @@ export default { }) specialDiseaseNode(this.updata).then(res => { this.info(); + loading.close(); this.$modal.msgSuccess("暂存成功!"); }) },