From cb28cfd427a9645aab2b02febc8e07b9afa84c07 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 4 Jul 2025 10:55:35 +0800 Subject: [PATCH] refactor: update user option label to use nick_name in Application and Model Resource Index --- .../ApplicationResourceIndex.vue | 7 ++++++- .../system-resource-management/ModelResourceIndex.vue | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ui/src/views/system-resource-management/ApplicationResourceIndex.vue b/ui/src/views/system-resource-management/ApplicationResourceIndex.vue index 38378b0ea..24fc4eac1 100644 --- a/ui/src/views/system-resource-management/ApplicationResourceIndex.vue +++ b/ui/src/views/system-resource-management/ApplicationResourceIndex.vue @@ -34,7 +34,7 @@ clearable style="width: 220px" > - + @@ -161,6 +161,7 @@ import { isAppIcon } from '@/utils/common' import useStore from '@/stores' import { datetimeFormat } from '@/utils/time' import {loadPermissionApi} from "@/utils/dynamics-api/permission-api.ts"; +import UserApi from '@/api/user/user.ts' const { user } = useStore() @@ -215,6 +216,10 @@ function getList() { onMounted(() => { getWorkspaceList() getList() + + UserApi.getAllMemberList('').then((res: any) => { + user_options.value = res.data + }) }) diff --git a/ui/src/views/system-resource-management/ModelResourceIndex.vue b/ui/src/views/system-resource-management/ModelResourceIndex.vue index 0615e5801..554cfa3c5 100644 --- a/ui/src/views/system-resource-management/ModelResourceIndex.vue +++ b/ui/src/views/system-resource-management/ModelResourceIndex.vue @@ -34,7 +34,7 @@ clearable style="width: 220px" > - + { getWorkspaceList() getProvider() + + UserApi.getAllMemberList('').then((res: any) => { + user_options.value = res.data + }) })