加loading
This commit is contained in:
parent
e139ea66e0
commit
0613a4b1a3
@ -719,14 +719,15 @@
|
|||||||
const handleSubmit = (done) => {
|
const handleSubmit = (done) => {
|
||||||
proxy.$refs.checkFormRef.validate(async (valid) => {
|
proxy.$refs.checkFormRef.validate(async (valid) => {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
|
proxy.$loading.show();
|
||||||
const {code,message,data}= await checkDoctor(modalCheckForm,modalForm.doctor_id);
|
const {code,message,data}= await checkDoctor(modalCheckForm,modalForm.doctor_id);
|
||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
proxy.$notification.success("提交成功");
|
proxy.$notification.success("提交成功");
|
||||||
getDoctorInfo(pager);
|
getDoctorInfo(pager);
|
||||||
modalVisible.value=false;
|
modalVisible.value=false;
|
||||||
}
|
}
|
||||||
|
proxy.$loading.hide();
|
||||||
done();
|
done();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.log(valid)
|
console.log(valid)
|
||||||
proxy.$message.error('表单校验失败');
|
proxy.$message.error('表单校验失败');
|
||||||
@ -765,7 +766,7 @@
|
|||||||
getDoctorInfo(pager);
|
getDoctorInfo(pager);
|
||||||
proxy.$loading.hide();
|
proxy.$loading.hide();
|
||||||
modalVisible.value=false;
|
modalVisible.value=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
modalCheckForm.iden_auth_status=3;
|
modalCheckForm.iden_auth_status=3;
|
||||||
|
|||||||
@ -984,6 +984,7 @@
|
|||||||
proxy.$refs.modalFormRef.validate(async (valid) => {
|
proxy.$refs.modalFormRef.validate(async (valid) => {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
let res;
|
let res;
|
||||||
|
|
||||||
let modalData = {
|
let modalData = {
|
||||||
card_name: modalForm.user_name,
|
card_name: modalForm.user_name,
|
||||||
mobile: modalForm.user.mobile,
|
mobile: modalForm.user.mobile,
|
||||||
@ -1057,10 +1058,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
proxy.$loading.show();
|
||||||
const { code, message } = await updateDoctor(modalData, modalForm.doctor_id);
|
const { code, message } = await updateDoctor(modalData, modalForm.doctor_id);
|
||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
proxy.$notification.success('更新成功');
|
proxy.$notification.success('更新成功');
|
||||||
}
|
}
|
||||||
|
proxy.$loading.hide();
|
||||||
}
|
}
|
||||||
//done();
|
//done();
|
||||||
getDoctorInfo(pager);
|
getDoctorInfo(pager);
|
||||||
|
|||||||
@ -507,11 +507,13 @@
|
|||||||
const handleSubmit = (done) => {
|
const handleSubmit = (done) => {
|
||||||
proxy.$refs.checkFormRef.validate(async (valid) => {
|
proxy.$refs.checkFormRef.validate(async (valid) => {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
|
proxy.$loading.show();
|
||||||
const {code,message,data}= await checkDoctor({
|
const {code,message,data}= await checkDoctor({
|
||||||
multi_point_status:3,
|
multi_point_status:3,
|
||||||
multi_point_fail_reason:modalCheckForm.multi_point_fail_reason
|
multi_point_fail_reason:modalCheckForm.multi_point_fail_reason
|
||||||
},modalForm.doctor_id);
|
},modalForm.doctor_id);
|
||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
|
proxy.$loading.hide();
|
||||||
proxy.$notification.success("提交成功");
|
proxy.$notification.success("提交成功");
|
||||||
modalVisible.value=false;
|
modalVisible.value=false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user