From 56bc4656b165459926dacfd8b247e0eb7a7aef95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 16 Apr 2024 14:20:13 +0800 Subject: [PATCH] xg --- .../RehabilitationPlanandRecords.vue | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/views/manage/components/RehabilitationPlanandRecords.vue b/src/views/manage/components/RehabilitationPlanandRecords.vue index c43e3ba..90e54d8 100644 --- a/src/views/manage/components/RehabilitationPlanandRecords.vue +++ b/src/views/manage/components/RehabilitationPlanandRecords.vue @@ -190,10 +190,11 @@ export default { phoneopen: false, propagandaopen: false, specialDiseaseNodeopen: false, + loading: null, }; }, mounted() { - this.info(); + this.info(0); }, methods: { //查看专病节点 @@ -227,19 +228,32 @@ export default { this.lookitem = {} }, clicknameitem(item, index) { - this.itemindex = index + this.loading = this.$loading({ + lock: true, + text: '加载数据中', + spinner: 'el-icon-loading', + background: 'rgba(255,255,255,0.7)' + }); if (index == 1) { this.query.taskCreateType = 'MANUAL_CREATE' } else { this.query.taskCreateType = 'MANUAL_MATCHE' } - this.info(); + this.info(index); }, - info() { + info(index) { + this.loading = this.$loading({ + lock: true, + text: '加载数据中', + spinner: 'el-icon-loading', + background: 'rgba(255,255,255,0.7)' + }); this.query.patientId = this.$route.query.patientId getList(this.query).then(res => { if (res.data.length > 0) { this.categorylist = res.data + this.itemindex = index + this.loading.close(); } }) },