From 862bb03efb1fb738588f45fbe0e0c335db8e9c44 Mon Sep 17 00:00:00 2001 From: zhuangdashia Date: Wed, 2 Jul 2025 21:48:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=8F=98=E9=87=8F=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=BB=84=E6=9D=83=E9=99=90=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/api/group.ts | 9 +++ src/typings/api.d.ts | 12 +++- .../modules/system-variable-detail-drawer.vue | 25 ++++++- .../system-variable-operate-drawer.vue | 66 ++++++++++++++++--- 4 files changed, 96 insertions(+), 16 deletions(-) diff --git a/src/service/api/group.ts b/src/service/api/group.ts index c78940f..ea42f8c 100644 --- a/src/service/api/group.ts +++ b/src/service/api/group.ts @@ -60,6 +60,15 @@ export function fetchGetAllGroupConfigList(data: string[]) { }); } +/** get all group config list */ +export function fetchGetAllGroupList(data: string[]) { + return request({ + url: '/group/all/group/list', + method: 'post', + + }); +} + /** delete group by id */ export function fetchDeleteGroup(groupName: string) { return request({ diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 9754ba2..597c452 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -998,7 +998,7 @@ declare namespace Api { /** 组名称 */ groupName: string; /** 组名称 */ - groupNameCn: string; + groupNameCn?: string; /** 负责人id */ ownerId: string; /** 负责人名 */ @@ -1399,11 +1399,17 @@ declare namespace Api { /** value: yyyyMMdd */ variableValue: string; /** 变量类型 1-字符串变量 2-表达式变量 */ - variableType: string; + variableType: number; /** 描述 */ description: string; + /** 组 */ + permissions: Permission[]; + }>; + type Permission = Common.CommonRecord<{ + groupName: string; + namespaceId: string; + namespaceName?: string; }>; - /**搜索参数*/ type SystemVariableSearchParams = CommonType.RecordNullable< Pick & diff --git a/src/views/system/manager/modules/system-variable-detail-drawer.vue b/src/views/system/manager/modules/system-variable-detail-drawer.vue index 2312b2e..58797a8 100644 --- a/src/views/system/manager/modules/system-variable-detail-drawer.vue +++ b/src/views/system/manager/modules/system-variable-detail-drawer.vue @@ -1,6 +1,6 @@