Pre Merge pull request !190 from xingyu/dev

pull/190/MERGE
xingyu 2025-08-04 11:22:41 +00:00 committed by Gitee
commit 8f33d91f15
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 19 additions and 9 deletions

View File

@ -104,7 +104,10 @@ onMounted(async () => {
</template>
<template #userId="{ row }">
<span>
{{ userList.find((item) => item.id === row.userId)?.nickname }}
{{
userList.find((item: SystemUserApi.User) => item.id === row.userId)
?.nickname
}}
</span>
</template>
<template #publicStatus="{ row }">

View File

@ -108,7 +108,10 @@ onMounted(async () => {
</template>
<template #userId="{ row }">
<span>
{{ userList.find((item) => item.id === row.userId)?.nickname }}
{{
userList.find((item: SystemUserApi.User) => item.id === row.userId)
?.nickname
}}
</span>
</template>
<template #actions="{ row }">

View File

@ -112,7 +112,11 @@ onMounted(async () => {
</template>
<template #keyId="{ row }">
<span>
{{ apiKeyList.find((item) => item.id === row.keyId)?.name }}
{{
apiKeyList.find(
(item: AiModelApiKeyApi.ApiKey) => item.id === row.keyId,
)?.name
}}
</span>
</template>
<template #actions="{ row }">

View File

@ -66,6 +66,8 @@ const [Modal, modalApi] = useVbenModal({
if (!isOpen) {
return;
}
//
await loadMenuTree();
const data = modalApi.getData<SystemRoleApi.Role>();
if (!data || !data.id) {
return;
@ -75,8 +77,6 @@ const [Modal, modalApi] = useVbenModal({
//
const menuIds = await getRoleMenuList(data.id as number);
await formApi.setFieldValue('menuIds', menuIds);
//
await loadMenuTree();
await formApi.setValues(data);
} finally {

View File

@ -63,6 +63,8 @@ const [Modal, modalApi] = useVbenModal({
if (!isOpen) {
return;
}
//
await loadMenuTree();
const data = modalApi.getData<SystemRoleApi.Role>();
if (!data || !data.id) {
return;
@ -72,8 +74,6 @@ const [Modal, modalApi] = useVbenModal({
//
const menuIds = await getRoleMenuList(data.id as number);
await formApi.setFieldValue('menuIds', menuIds);
//
await loadMenuTree();
await formApi.setValues(data);
} finally {

View File

@ -63,6 +63,8 @@ const [Modal, modalApi] = useVbenModal({
if (!isOpen) {
return;
}
//
await loadMenuTree();
const data = modalApi.getData<SystemRoleApi.Role>();
if (!data || !data.id) {
return;
@ -72,8 +74,6 @@ const [Modal, modalApi] = useVbenModal({
//
const menuIds = await getRoleMenuList(data.id as number);
await formApi.setFieldValue('menuIds', menuIds);
//
await loadMenuTree();
await formApi.setValues(data);
} finally {