mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 03:48:05 +08:00
🔨 perf(web): 系统管理中用户登录日志无法分页
This commit is contained in:
parent
d193348765
commit
1a91af99dc
@ -11,6 +11,7 @@
|
|||||||
5. 【server】修复 docker管理新增docker选择证书界面权重异常 (感谢[@伤感的风铃草](https://gitee.com/bwy-flc) [Gitee issues I9GYVA](https://gitee.com/dromara/Jpom/issues/I9GYVA) )
|
5. 【server】修复 docker管理新增docker选择证书界面权重异常 (感谢[@伤感的风铃草](https://gitee.com/bwy-flc) [Gitee issues I9GYVA](https://gitee.com/dromara/Jpom/issues/I9GYVA) )
|
||||||
6. 【server】修复 系统管理中用户管理中登录日志无法筛选
|
6. 【server】修复 系统管理中用户管理中登录日志无法筛选
|
||||||
7. 【server】优化 用户登录记录操作日志(保证操作监控能记录)
|
7. 【server】优化 用户登录记录操作日志(保证操作监控能记录)
|
||||||
|
8. 【server】修复 系统管理中用户登录日志无法分页
|
||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
:active-page="activePage"
|
:active-page="activePage"
|
||||||
table-name="systemUserLoginLog"
|
table-name="systemUserLoginLog"
|
||||||
empty-description="没有任何登录日志"
|
empty-description="没有任何登录日志"
|
||||||
|
:loading="loading"
|
||||||
:data-source="list"
|
:data-source="list"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:pagination="pagination"
|
:pagination="pagination"
|
||||||
@ -122,16 +123,21 @@ const columns = ref<CustomColumnType[]>([
|
|||||||
{ title: '浏览器', dataIndex: 'userAgent', ellipsis: true, width: 100 }
|
{ title: '浏览器', dataIndex: 'userAgent', ellipsis: true, width: 100 }
|
||||||
])
|
])
|
||||||
|
|
||||||
const pagination = COMPUTED_PAGINATION(listQuery.value)
|
const pagination = computed(() => {
|
||||||
|
return COMPUTED_PAGINATION(listQuery.value)
|
||||||
|
})
|
||||||
|
|
||||||
const loadData = (pointerEvent?: any) => {
|
const loadData = (pointerEvent?: any) => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
listQuery.value.page = pointerEvent?.altKey || pointerEvent?.ctrlKey ? 1 : listQuery.value.page
|
listQuery.value.page = pointerEvent?.altKey || pointerEvent?.ctrlKey ? 1 : listQuery.value.page
|
||||||
userLoginLgin(listQuery.value).then((res) => {
|
userLoginLgin(listQuery.value)
|
||||||
|
.then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
list.value = res.data.result
|
list.value = res.data.result
|
||||||
listQuery.value.total = res.data.total
|
listQuery.value.total = res.data.total
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user