加loading

This commit is contained in:
zoujiandong 2023-07-20 11:07:39 +08:00
parent e139ea66e0
commit 0613a4b1a3
3 changed files with 8 additions and 2 deletions

View File

@ -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('表单校验失败');

View File

@ -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);

View File

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