mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
refactor: add create_user field to tool serialization and update related logic
--bug=1057413 --user=刘瑞斌 【工具】搜索项选择创建者,创建者列表为空 https://www.tapd.cn/62980211/s/1721870
This commit is contained in:
parent
6473f27cae
commit
8d52166307
|
|
@ -47,10 +47,10 @@ const getWorkspaceMemberList: (
|
|||
/**
|
||||
* 获取工作空间全部成员列表
|
||||
*/
|
||||
const getWorkspaceAllMemberList: (
|
||||
const getAllMemberList: (
|
||||
workspace_id: string,
|
||||
loading?: Ref<boolean>,
|
||||
) => Promise<Result<PageList<WorkspaceMemberItem[]>>> = (workspace_id, loading) => {
|
||||
) => Promise<Result<any[]>> = (workspace_id, loading) => {
|
||||
return get(
|
||||
`${prefix}/${workspace_id}/user_list`,
|
||||
loading,
|
||||
|
|
@ -90,7 +90,7 @@ export default {
|
|||
getWorkspaceList,
|
||||
getSystemWorkspaceList,
|
||||
getWorkspaceMemberList,
|
||||
getWorkspaceAllMemberList,
|
||||
getAllMemberList,
|
||||
CreateWorkspaceMember,
|
||||
deleteWorkspaceMember,
|
||||
getWorkspaceRoleList,
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ const systemShareApiMap = {
|
|||
paragraph: paragraphSystemShareApi,
|
||||
problem: problemSystemShareApi,
|
||||
chatUser: chatUserSystemShareApi,
|
||||
workspace: workspaceApi, // 共享的应该查全部人吧
|
||||
} as any
|
||||
|
||||
// 资源管理 API
|
||||
|
|
|
|||
|
|
@ -633,7 +633,7 @@ onMounted(() => {
|
|||
getList()
|
||||
}
|
||||
loadSharedApi({type: 'workspace', isShared: isShared.value, systemType: apiType.value })
|
||||
.getWorkspaceAllMemberList(user.getWorkspaceId(), loading)
|
||||
.getAllMemberList(user.getWorkspaceId(), loading)
|
||||
.then((res: any) => {
|
||||
user_options.value = res.data
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue