From 4de46b91222bb5113d0c5c5233b9a5b2554b1b8a Mon Sep 17 00:00:00 2001 From: RubyLiu Date: Tue, 30 Jan 2024 11:21:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BB=84=E6=9D=83=E9=99=90&=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E9=A1=B9=E7=9B=AE=E6=9D=83=E9=99=90=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/ms-user-group-comp/authTable.vue | 14 ++---- .../ms-user-group-comp/msUserGroupLeft.vue | 1 + .../business/ms-user-group-comp/userTable.vue | 2 +- .../organization/project/orgProject.vue | 50 +++++++------------ .../components/systemOrganization.vue | 37 +++++++++++--- .../components/systemProject.vue | 20 ++++++-- 6 files changed, 71 insertions(+), 53 deletions(-) diff --git a/frontend/src/components/business/ms-user-group-comp/authTable.vue b/frontend/src/components/business/ms-user-group-comp/authTable.vue index cc77ff8879..8afda6c971 100644 --- a/frontend/src/components/business/ms-user-group-comp/authTable.vue +++ b/frontend/src/components/business/ms-user-group-comp/authTable.vue @@ -390,18 +390,14 @@ }; // 初始化数据 - const initData = async (id: string, internal: boolean) => { + const initData = async (id: string) => { try { let res: UserGroupAuthSetting[] = []; loading.value = true; if (systemType === AuthScopeEnum.SYSTEM) { res = await getGlobalUSetting(id); } else if (systemType === AuthScopeEnum.ORGANIZATION) { - if (internal) { - res = await getGlobalUSetting(id); - } else { - res = await getOrgUSetting(id); - } + res = await getOrgUSetting(id); } else { res = await getAuthByUserGroup(id); } @@ -449,7 +445,7 @@ }); } Message.success(t('common.saveSuccess')); - initData(props.current.id, props.current.internal); + initData(props.current.id); } catch (error) { // eslint-disable-next-line no-console console.log(error); @@ -459,13 +455,13 @@ // 恢复默认值 const handleReset = () => { if (props.current.id) { - initData(props.current.id, props.current.internal); + initData(props.current.id); } }; watchEffect(() => { if (props.current.id) { - initData(props.current.id, props.current.internal); + initData(props.current.id); } }); defineExpose({ diff --git a/frontend/src/components/business/ms-user-group-comp/msUserGroupLeft.vue b/frontend/src/components/business/ms-user-group-comp/msUserGroupLeft.vue index b063a654df..54a072450e 100644 --- a/frontend/src/components/business/ms-user-group-comp/msUserGroupLeft.vue +++ b/frontend/src/components/business/ms-user-group-comp/msUserGroupLeft.vue @@ -167,6 +167,7 @@ diff --git a/frontend/src/components/business/ms-user-group-comp/userTable.vue b/frontend/src/components/business/ms-user-group-comp/userTable.vue index 65ebae4b7b..3885091ca8 100644 --- a/frontend/src/components/business/ms-user-group-comp/userTable.vue +++ b/frontend/src/components/business/ms-user-group-comp/userTable.vue @@ -3,7 +3,7 @@ -