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; }