From 0592d70f977509878b211130c4e9cd593f72ad24 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 5 Dec 2023 16:30:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=A2=E9=98=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/team.ts | 7 +- ui/src/api/user.ts | 15 ++- ui/src/styles/element-plus.scss | 36 ++--- ui/src/views/application/AppOverview.vue | 2 +- ui/src/views/application/CreateAndSetting.vue | 6 +- ui/src/views/application/DialogLog.vue | 2 +- .../setting/component/CreateMemberDialog.vue | 124 +++++------------- .../setting/component/PermissionSetting.vue | 4 +- ui/src/views/setting/index.vue | 3 +- .../template/component/CreateModelDialog.vue | 2 +- ui/src/views/template/component/EditModel.vue | 2 +- 11 files changed, 80 insertions(+), 123 deletions(-) diff --git a/ui/src/api/team.ts b/ui/src/api/team.ts index 9e6ef896b..82e8f986e 100644 --- a/ui/src/api/team.ts +++ b/ui/src/api/team.ts @@ -13,10 +13,10 @@ const getTeamMember: () => Promise> = () => { /** * 添加成员 - * @param 参数 { "username_or_email": "string" } + * @param 参数 [] */ -const postCreatTeamMember: (data: String) => Promise> = (data) => { - return post(`${prefix}`, { username_or_email: data }) +const postCreatTeamMember: (data: Array) => Promise> = (data) => { + return post(`${prefix}/_batch`, data) } /** @@ -58,7 +58,6 @@ const putMemberPermissions: (member_id: String, body: any) => Promise) => Promise> = ( + email_or_username, + loading +) => { + return get('/user/list', { email_or_username }, loading) +} + export default { login, register, @@ -121,5 +133,6 @@ export default { resetPassword, sendEmailToCurrent, resetCurrentUserPassword, - logout + logout, + getUserList } diff --git a/ui/src/styles/element-plus.scss b/ui/src/styles/element-plus.scss index 22e0c8946..2ed279ee8 100644 --- a/ui/src/styles/element-plus.scss +++ b/ui/src/styles/element-plus.scss @@ -74,24 +74,24 @@ } } -@media only screen and (min-width: 1400px) { - .app-list-row { - .el-col-lg-6 { - display: block; - max-width: 20.8333333333%; - flex: 0 0 20.8333333333%; - } - } -} -@media only screen and (min-width: 1920px) { - .app-list-row { - .el-col-xl-4 { - display: block; - max-width: 16.6666666667%; - flex: 0 0 16.6666666667%; - } - } -} +// @media only screen and (min-width: 1400px) { +// .app-list-row { +// .el-col-lg-6 { +// display: block; +// max-width: 20.8333333333%; +// flex: 0 0 20.8333333333%; +// } +// } +// } +// @media only screen and (min-width: 1920px) { +// .app-list-row { +// .el-col-xl-4 { +// display: block; +// max-width: 16.6666666667%; +// flex: 0 0 16.6666666667%; +// } +// } +// } .el-card { --el-card-padding: calc(var(--app-base-px) * 2); diff --git a/ui/src/views/application/AppOverview.vue b/ui/src/views/application/AppOverview.vue index ba36084d2..224ed723b 100644 --- a/ui/src/views/application/AppOverview.vue +++ b/ui/src/views/application/AppOverview.vue @@ -1,5 +1,5 @@