This commit is contained in:
zoujiandong 2023-07-20 10:57:47 +08:00
parent 8f23d30860
commit e139ea66e0
3 changed files with 18 additions and 2 deletions

View File

@ -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) => {

View File

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

View File

@ -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{