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("暂存成功!"); }) },