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 @@