loading
This commit is contained in:
parent
8f23d30860
commit
e139ea66e0
@ -52,7 +52,7 @@
|
||||
:title="modalTitle"
|
||||
title-align="start"
|
||||
@before-ok="handleBeforeOk"
|
||||
@close="() => $refs.modalFormRef.resetFields()"
|
||||
@close="closeModal"
|
||||
>
|
||||
<a-form :model="modalForm" :rules="rules" ref="modalFormRef">
|
||||
<a-form-item field="parent_id" label="上级部门">
|
||||
@ -213,6 +213,15 @@ const disabledSelect=(id,arr)=>{
|
||||
}
|
||||
}
|
||||
}
|
||||
const abledSelect=(arr)=>{
|
||||
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
arr[i].disabled=false;
|
||||
if(arr[i].children){
|
||||
abledSelect(arr[i].children);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 修改
|
||||
const handleUpdate = async (record) => {
|
||||
modalVisible.value = true;
|
||||
@ -248,7 +257,10 @@ function deepDelChildren(data) {
|
||||
|
||||
return depts;
|
||||
}
|
||||
|
||||
const closeModal=()=>{
|
||||
proxy.$refs.modalFormRef.resetFields();
|
||||
abledSelect(tableData.value);
|
||||
}
|
||||
// Modal 表单提交前检查
|
||||
const handleBeforeOk = (done) => {
|
||||
proxy.$refs.modalFormRef.validate(async (err) => {
|
||||
|
||||
@ -755,6 +755,7 @@
|
||||
document.querySelector(".myModal").scrollTo(0,top)
|
||||
return false
|
||||
}
|
||||
proxy.$loading.show();
|
||||
const {code,message,data}= await checkDoctor({
|
||||
iden_auth_status:1,
|
||||
qualification_cert_num:id
|
||||
@ -762,6 +763,7 @@
|
||||
if (code == 200) {
|
||||
proxy.$notification.success("审核通过");
|
||||
getDoctorInfo(pager);
|
||||
proxy.$loading.hide();
|
||||
modalVisible.value=false;
|
||||
}
|
||||
|
||||
|
||||
@ -527,6 +527,7 @@
|
||||
};
|
||||
//审核
|
||||
const handleCheck= async(type)=>{
|
||||
proxy.$loading.show();
|
||||
if(type=="ok"){
|
||||
const {code,message,data}= await checkDoctor({
|
||||
multi_point_status:1
|
||||
@ -535,6 +536,7 @@
|
||||
proxy.$notification.success("审核通过");
|
||||
modalVisible.value=false;
|
||||
};
|
||||
proxy.$loading.hide();
|
||||
getDoctorInfo(pager);
|
||||
|
||||
}else{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user