清空表单
This commit is contained in:
parent
245b2b2aec
commit
8b6bf6698c
@ -14,7 +14,7 @@ export function getDoctorList(params){
|
|||||||
export function addDoctor(data) {
|
export function addDoctor(data) {
|
||||||
return request({
|
return request({
|
||||||
url,
|
url,
|
||||||
method: 'Doctor',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,16 +51,17 @@ export const usePermissionStore = defineStore('permisson', {
|
|||||||
return routes;
|
return routes;
|
||||||
},
|
},
|
||||||
async getMenuRole() {
|
async getMenuRole() {
|
||||||
const res = await getUserMenuRole();
|
const {code,data,message}= await getUserMenuRole();
|
||||||
this.setMenuList(res.data);
|
if(code==200){
|
||||||
this.addRouters =await this.GenerateRoutes(res.data);
|
this.setMenuList(data);
|
||||||
|
this.addRouters =await this.GenerateRoutes(data);
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
async getButtonRole() {
|
async getButtonRole() {
|
||||||
const {code,data,message} = await getUserButtonRole();
|
const {code,data,message} = await getUserButtonRole();
|
||||||
if(code==200){
|
if(code==200){
|
||||||
this.buttonPermissions=data;
|
this.buttonPermissions=data;
|
||||||
}else{
|
|
||||||
Message.error(message);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clearRouters(){
|
clearRouters(){
|
||||||
|
|||||||
@ -812,6 +812,13 @@
|
|||||||
modalForm.doctor_id = null;
|
modalForm.doctor_id = null;
|
||||||
modalForm.hospital = {};
|
modalForm.hospital = {};
|
||||||
modalForm.user = {};
|
modalForm.user = {};
|
||||||
|
modalForm.license_cert='';
|
||||||
|
modalForm.qualification_cert='';
|
||||||
|
modalForm.work_cert='';
|
||||||
|
modalForm.user_doctor_info={};
|
||||||
|
modalForm.id_card_front='';
|
||||||
|
modalForm.id_card_back='';
|
||||||
|
modalForm.sign_image='';
|
||||||
//$refs.modalFormRef.resetFields();
|
//$refs.modalFormRef.resetFields();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user