From 0613a4b1a326d50dd58c880b823eaee5f8e49dbb Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Thu, 20 Jul 2023 11:07:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/doctor/doctor-examine/index.vue | 5 +++-- src/views/doctor/doctor-list/index.vue | 3 +++ src/views/doctor/doctor-multipoint/index.vue | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/doctor/doctor-examine/index.vue b/src/views/doctor/doctor-examine/index.vue index 77d35d5..77c3153 100644 --- a/src/views/doctor/doctor-examine/index.vue +++ b/src/views/doctor/doctor-examine/index.vue @@ -719,14 +719,15 @@ const handleSubmit = (done) => { proxy.$refs.checkFormRef.validate(async (valid) => { if (!valid) { + proxy.$loading.show(); const {code,message,data}= await checkDoctor(modalCheckForm,modalForm.doctor_id); if (code == 200) { proxy.$notification.success("提交成功"); getDoctorInfo(pager); modalVisible.value=false; } + proxy.$loading.hide(); done(); - } else { console.log(valid) proxy.$message.error('表单校验失败'); @@ -765,7 +766,7 @@ getDoctorInfo(pager); proxy.$loading.hide(); modalVisible.value=false; - } + } }else{ modalCheckForm.iden_auth_status=3; diff --git a/src/views/doctor/doctor-list/index.vue b/src/views/doctor/doctor-list/index.vue index 1561f5c..69c03f7 100644 --- a/src/views/doctor/doctor-list/index.vue +++ b/src/views/doctor/doctor-list/index.vue @@ -984,6 +984,7 @@ proxy.$refs.modalFormRef.validate(async (valid) => { if (!valid) { let res; + let modalData = { card_name: modalForm.user_name, mobile: modalForm.user.mobile, @@ -1057,10 +1058,12 @@ } } + proxy.$loading.show(); const { code, message } = await updateDoctor(modalData, modalForm.doctor_id); if (code == 200) { proxy.$notification.success('更新成功'); } + proxy.$loading.hide(); } //done(); getDoctorInfo(pager); diff --git a/src/views/doctor/doctor-multipoint/index.vue b/src/views/doctor/doctor-multipoint/index.vue index 3672276..590dc58 100644 --- a/src/views/doctor/doctor-multipoint/index.vue +++ b/src/views/doctor/doctor-multipoint/index.vue @@ -507,11 +507,13 @@ const handleSubmit = (done) => { proxy.$refs.checkFormRef.validate(async (valid) => { if (!valid) { + proxy.$loading.show(); const {code,message,data}= await checkDoctor({ multi_point_status:3, multi_point_fail_reason:modalCheckForm.multi_point_fail_reason },modalForm.doctor_id); if (code == 200) { + proxy.$loading.hide(); proxy.$notification.success("提交成功"); modalVisible.value=false; }