merge lll-fix-nodata-img into master

组织管理-成员列表删除成员修复

Created-by: LovableCat
Commit-by: LovableCat
Merged-by: LovableCat
Description: 组织管理-成员列表删除成员修复

See merge request: hk_openRepo/OpenRepo_Portal!36
This commit is contained in:
LovableCat
2025-03-19 11:57:48 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ export function inviteOrganizationMemberApi(params: { groupId: number, username:
export function deleteOrganizationMemberApi(params: { groupId: number, username: string }): Promise<UnitRes<boolean>> { export function deleteOrganizationMemberApi(params: { groupId: number, username: string }): Promise<UnitRes<boolean>> {
return request({ return request({
url: `/api/v1/group/member/remove`, url: `/api/v1/group/member/remove`,
method: 'delete', method: 'post',
data: params, data: params,
}); });
} }

View File

@@ -155,7 +155,7 @@ const userInfo = shallowRef<UserInfoType>({
groupDesc: null, groupDesc: null,
}); });
const searchOrganizationLoading = ref(false); const searchOrganizationLoading = ref(false);
const hasOrganization = ref(false); const hasOrganization = ref(true);
const organizationInfo = shallowRef<OrganizationInfoType>({ const organizationInfo = shallowRef<OrganizationInfoType>({
groupId: 0, groupId: 0,
organizationName: '', organizationName: '',
@@ -218,13 +218,14 @@ async function queryUserInfo() {
userInfo.value = res.data?.data.data; userInfo.value = res.data?.data.data;
} }
if (userInfo.value.groupId) { if (userInfo.value.groupId) {
hasOrganization.value = true;
organizationInfo.value = { organizationInfo.value = {
groupId: userInfo.value.groupId, groupId: userInfo.value.groupId,
organizationName: userInfo.value.groupName as string, organizationName: userInfo.value.groupName as string,
organizationProfile: userInfo.value.groupDesc as string, organizationProfile: userInfo.value.groupDesc as string,
}; };
getMemberList(); getMemberList();
} else {
hasOrganization.value = false;
} }
} catch (e) { } catch (e) {
Message.error('查询用户信息失败'); Message.error('查询用户信息失败');