diff --git a/src/views/admin/log/changelog.vue b/src/views/admin/log/changelog.vue index 60b7743..7fc61ac 100644 --- a/src/views/admin/log/changelog.vue +++ b/src/views/admin/log/changelog.vue @@ -147,7 +147,8 @@ const { records, current, size, total } = await logService.getChangelogList({ current: currentPage, - size: pageSize + size: pageSize, + keyword: keyword.value }) tableData.value = records.map((item: any) => ({ ...item diff --git a/src/views/admin/system/operationlog.vue b/src/views/admin/system/operationlog.vue index 3fe50ce..49feaf5 100644 --- a/src/views/admin/system/operationlog.vue +++ b/src/views/admin/system/operationlog.vue @@ -1,27 +1,36 @@ @@ -31,6 +40,7 @@ import { useAuth } from '@/composables/useAuth' const { hasAuth } = useAuth() defineOptions({ name: 'Operationlog' }) + const keyword = ref('') const loading = ref(false) const pagination = reactive({ currentPage: 1, @@ -46,6 +56,10 @@ onMounted(() => { getWorkList() }) + watch([keyword], () => { + pagination.currentPage = 1 + getWorkList() + }) // 处理表格分页变化 const handleSizeChange = (newPageSize: number) => { pagination.pageSize = newPageSize @@ -63,7 +77,8 @@ const { records, current, size, total } = await logService.getOperationLogList({ current: currentPage, - size: pageSize + size: pageSize, + keyword: keyword.value }) tableData.value = records.map((item: any) => ({ ...item @@ -94,4 +109,8 @@ fill: currentcolor; } } + .customer-search-group { + display: flex; + gap: 12px; + }