2
0

fix:仪表盘站点搜索功能

This commit is contained in:
zhongzm
2025-02-14 17:42:46 +08:00
parent e6a5d91b5e
commit 28ab9dceeb
2 changed files with 2 additions and 7 deletions

View File

@@ -210,7 +210,7 @@ export function getDashboardOverview() {
});
}
/** 获取仪表盘站点列表 */
export function getDashboardSiteList(params: { pageNum: number; pageSize: number; name?: string }) {
export function getDashboardSiteList(params: { pageNum: number; pageSize: number; searchKey?: string }) {
return request<Api.DashboardSiteResponse>({
url: '/system/dashboard/page',
method: 'get',

View File

@@ -3,12 +3,7 @@ import { ref, watch } from 'vue';
import type { TableColumnType } from 'ant-design-vue';
import {
EnvironmentOutlined,
EditOutlined,
CopyOutlined,
DeleteOutlined,
HomeOutlined,
SearchOutlined,
PlusOutlined
} from '@ant-design/icons-vue';
import { getDashboardSiteList } from '@/service/api/auth';
import { useI18n } from 'vue-i18n';
@@ -34,7 +29,7 @@ const fetchSiteList = async () => {
const { data } = await getDashboardSiteList({
pageNum: currentPage.value,
pageSize: pageSize.value,
name: searchValue.value
searchKey: searchValue.value
});
console.log('API Response:', data);
if (data) {