签报弹框

This commit is contained in:
‘huanghaiixia’
2025-12-23 17:51:40 +08:00
parent 4ea8ed2313
commit 03c943e4d6
7 changed files with 372 additions and 25 deletions

View File

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

View File

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