mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix(Workspace): Switch from the user management module to the workspace module. The default workspace does not display space users.
This commit is contained in:
@@ -136,7 +136,11 @@ const handleToggleRowSelection = (check: boolean = true) => {
|
||||
|
||||
const search = () => {
|
||||
searchLoading.value = true
|
||||
workspaceUserList({ keyword: keywordsMember.value }, pageInfo.currentPage, pageInfo.pageSize)
|
||||
workspaceUserList(
|
||||
keywordsMember.value ? { keyword: keywordsMember.value } : {},
|
||||
pageInfo.currentPage,
|
||||
pageInfo.pageSize
|
||||
)
|
||||
.then((res) => {
|
||||
toggleRowLoading.value = true
|
||||
fieldList.value = res.items
|
||||
|
||||
@@ -188,7 +188,11 @@ const search = () => {
|
||||
searchLoading.value = true
|
||||
oldKeywords.value = keywords.value
|
||||
professionalApi
|
||||
.getList(pageInfo.currentPage, pageInfo.pageSize, { word: keywords.value })
|
||||
.getList(
|
||||
pageInfo.currentPage,
|
||||
pageInfo.pageSize,
|
||||
keywords.value ? { word: keywords.value } : {}
|
||||
)
|
||||
.then((res) => {
|
||||
toggleRowLoading.value = true
|
||||
fieldList.value = res.data
|
||||
|
||||
@@ -196,7 +196,11 @@ const search = () => {
|
||||
searchLoading.value = true
|
||||
oldKeywords.value = keywords.value
|
||||
trainingApi
|
||||
.getList(pageInfo.currentPage, pageInfo.pageSize, { question: keywords.value })
|
||||
.getList(
|
||||
pageInfo.currentPage,
|
||||
pageInfo.pageSize,
|
||||
keywords.value ? { question: keywords.value } : {}
|
||||
)
|
||||
.then((res) => {
|
||||
toggleRowLoading.value = true
|
||||
fieldList.value = res.data
|
||||
|
||||
@@ -92,6 +92,7 @@ const init = () => {
|
||||
tableList.value.forEach((ele: any) => {
|
||||
if (ele.id === currentTable.value.id) {
|
||||
currentTable.value.name = ele.name
|
||||
clickTable(ele)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user