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