fix:仪表盘站点搜索功能
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user