签报弹框
This commit is contained in:
@ -51,7 +51,9 @@
|
||||
const emits = defineEmits(['success']);
|
||||
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
||||
setModalProps({ confirmLoading: false, fixedHeight: true });
|
||||
setSelectedRowKeys1(data.orgs?.map((x) => x.id) || []);
|
||||
if (data.pageType == 'edit') {
|
||||
setSelectedRowKeys1(data.orgs?.map((x) => x.id) || []);
|
||||
}
|
||||
reload();
|
||||
});
|
||||
|
||||
|
||||
@ -742,12 +742,14 @@
|
||||
};
|
||||
const handleOrgCreate = () => {
|
||||
openOrgModal(true, {
|
||||
orgs: orgDatasource.value
|
||||
orgs: orgDatasource.value,
|
||||
pageType: !unref(isUpdate) ? 'add' : 'edit'
|
||||
});
|
||||
};
|
||||
const handleDeptCreate = () => {
|
||||
openDeptModal(true, {
|
||||
orgs: deptDatasource.value
|
||||
orgs: deptDatasource.value,
|
||||
pageType: !unref(isUpdate) ? 'add' : 'edit'
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user