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>({
|
return request<Api.DashboardSiteResponse>({
|
||||||
url: '/system/dashboard/page',
|
url: '/system/dashboard/page',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -3,12 +3,7 @@ import { ref, watch } from 'vue';
|
|||||||
import type { TableColumnType } from 'ant-design-vue';
|
import type { TableColumnType } from 'ant-design-vue';
|
||||||
import {
|
import {
|
||||||
EnvironmentOutlined,
|
EnvironmentOutlined,
|
||||||
EditOutlined,
|
|
||||||
CopyOutlined,
|
|
||||||
DeleteOutlined,
|
|
||||||
HomeOutlined,
|
|
||||||
SearchOutlined,
|
SearchOutlined,
|
||||||
PlusOutlined
|
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import { getDashboardSiteList } from '@/service/api/auth';
|
import { getDashboardSiteList } from '@/service/api/auth';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
@@ -34,7 +29,7 @@ const fetchSiteList = async () => {
|
|||||||
const { data } = await getDashboardSiteList({
|
const { data } = await getDashboardSiteList({
|
||||||
pageNum: currentPage.value,
|
pageNum: currentPage.value,
|
||||||
pageSize: pageSize.value,
|
pageSize: pageSize.value,
|
||||||
name: searchValue.value
|
searchKey: searchValue.value
|
||||||
});
|
});
|
||||||
console.log('API Response:', data);
|
console.log('API Response:', data);
|
||||||
if (data) {
|
if (data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user