Skip to content

Commit cb28cfd

Browse files
committed
refactor: update user option label to use nick_name in Application and Model Resource Index
1 parent d58a223 commit cb28cfd

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ui/src/views/system-resource-management/ApplicationResourceIndex.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
clearable
3535
style="width: 220px"
3636
>
37-
<el-option v-for="u in user_options" :key="u.id" :value="u.id" :label="u.username" />
37+
<el-option v-for="u in user_options" :key="u.id" :value="u.id" :label="u.nick_name" />
3838
</el-select>
3939
</div>
4040
</div>
@@ -161,6 +161,7 @@ import { isAppIcon } from '@/utils/common'
161161
import useStore from '@/stores'
162162
import { datetimeFormat } from '@/utils/time'
163163
import {loadPermissionApi} from "@/utils/dynamics-api/permission-api.ts";
164+
import UserApi from '@/api/user/user.ts'
164165
165166
const { user } = useStore()
166167
@@ -215,6 +216,10 @@ function getList() {
215216
onMounted(() => {
216217
getWorkspaceList()
217218
getList()
219+
220+
UserApi.getAllMemberList('').then((res: any) => {
221+
user_options.value = res.data
222+
})
218223
})
219224
</script>
220225

ui/src/views/system-resource-management/ModelResourceIndex.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
clearable
3535
style="width: 220px"
3636
>
37-
<el-option v-for="u in user_options" :key="u.id" :value="u.id" :label="u.username"/>
37+
<el-option v-for="u in user_options" :key="u.id" :value="u.id" :label="u.nick_name"/>
3838
</el-select>
3939
<el-select
4040
v-else-if="search_type === 'model_type'"
@@ -174,6 +174,7 @@ import {t} from '@/locales'
174174
import useStore from '@/stores'
175175
import {datetimeFormat} from '@/utils/time'
176176
import {loadPermissionApi} from "@/utils/dynamics-api/permission-api.ts";
177+
import UserApi from '@/api/user/user.ts'
177178
178179
const {user, model} = useStore()
179180
@@ -263,6 +264,10 @@ function getProvider() {
263264
onMounted(() => {
264265
getWorkspaceList()
265266
getProvider()
267+
268+
UserApi.getAllMemberList('').then((res: any) => {
269+
user_options.value = res.data
270+
})
266271
})
267272
</script>
268273

0 commit comments

Comments
 (0)