|
@@ -113,6 +113,7 @@ const rules = computed<FormRules<RegisterGatewayForm>>(() => {
|
|
|
const addOrganization = () => {
|
|
|
organizationOpen.value = true;
|
|
|
organizationTitle.value = true;
|
|
|
+ setColorPrimary?.('#32BAC0');
|
|
|
useForm.id = undefined;
|
|
|
useForm.orgName = '';
|
|
|
useForm.themeColor = '#32BAC0';
|
|
@@ -170,6 +171,7 @@ const organizationEditor = (id: number) => {
|
|
|
dayjs(endTenancy ? endTenancy : getFormattedDate(), 'YYYY-MM-DD'),
|
|
|
];
|
|
|
useForm.dataValidityPeriod = dataValidityPeriod;
|
|
|
+ establishOrganizationRef.value?.getInfoListByOrg?.();
|
|
|
});
|
|
|
};
|
|
|
// const organizationDelete = (id: number) => {
|
|
@@ -180,14 +182,16 @@ const clickOrganizationChange = () => {
|
|
|
getOrganizationAll();
|
|
|
};
|
|
|
const cancelOrganization = () => {
|
|
|
+ organizationOpen.value = false;
|
|
|
+};
|
|
|
+
|
|
|
+const handleClose = () => {
|
|
|
handleRequest(async () => {
|
|
|
const { orgThemeColor } = await getLoginData();
|
|
|
setTimeout(() => {
|
|
|
setColorPrimary?.(orgThemeColor);
|
|
|
}, 500);
|
|
|
});
|
|
|
-
|
|
|
- organizationOpen.value = false;
|
|
|
};
|
|
|
const saveOrganization = async () => {
|
|
|
try {
|
|
@@ -284,6 +288,7 @@ onMounted(() => {
|
|
|
width="920px"
|
|
|
:mask-closable="false"
|
|
|
:footer="null"
|
|
|
+ :after-close="handleClose"
|
|
|
>
|
|
|
<AForm ref="organizationRefs" class="organization-form" :model="useForm" label-align="left" :rules="rules">
|
|
|
<EstablishOrganization
|