Skip to content

Commit a3cf05c

Browse files
committed
Merge branch 'main' of https://github.com/dataease/SQLBot
2 parents 5fdc3ac + 9a0249a commit a3cf05c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[default.extend-words]
2+
sibing = "sibing"
23
[default.extend-identifiers]
34
maintain_column_froms = "maintain_column_froms"
45
[files]

backend/apps/system/api/user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def pager(
3333
paginator = Paginator(session)
3434
filters = {}
3535

36-
origin_stmt = select(UserModel.id).join(UserWsModel, UserModel.id == UserWsModel.uid).where(UserModel.id != 1).distinct()
36+
origin_stmt = select(UserModel.id).join(UserWsModel, UserModel.id == UserWsModel.uid, isouter=True).where(UserModel.id != 1).distinct()
3737
if oidlist:
3838
origin_stmt = origin_stmt.where(UserWsModel.oid.in_(oidlist))
3939
if status is not None:
@@ -75,7 +75,7 @@ async def pager(
7575

7676
# 组合结果
7777
result = [
78-
{**extra_attrs[user_id], "oid_list": oid_list}
78+
{**extra_attrs[user_id], "oid_list": list(filter(None, oid_list))}
7979
for user_id, oid_list in merged.items()
8080
]
8181
user_page.items = result

frontend/src/views/dashboard/common/AddViewDashboard.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import { onMounted, reactive, ref, h } from 'vue'
2+
import { reactive, ref, h } from 'vue'
33
import { ElButton, ElMessage } from 'element-plus-secondary'
44
import {
55
findNextComponentIndex,
@@ -16,6 +16,7 @@ const { t } = useI18n()
1616
const resource = ref(null)
1717
1818
const optInit = (viewInfo: any) => {
19+
initDashboardList()
1920
resourceDialogShow.value = true
2021
state.viewInfo = viewInfo
2122
}
@@ -181,10 +182,6 @@ const initDashboardList = () => {
181182
})
182183
}
183184
184-
onMounted(() => {
185-
initDashboardList()
186-
})
187-
188185
defineExpose({
189186
optInit,
190187
})

0 commit comments

Comments
 (0)