机器人列表 修改接口 分页查询

This commit is contained in:
mmc
2026-05-26 14:36:46 +08:00
parent ba272ea3ac
commit 32d17aa477
2 changed files with 21 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ import {
DisconnectOutlined,
} from '@ant-design/icons';
import SerialNumGenerate from "./SerialNumGenerate"
import { getPlaneDeviceList, bindDrone, unbindDrone, getSmartDeviceList, bindSmartDevice, unbindSmartDevice } from '@/api/device';
import { getPlaneDeviceList, bindDrone, unbindDrone, bindSmartDevice, unbindSmartDevice, getSiteDevice } from '@/api/device';
import { getOrgList } from '@/api/organization/index';
import { getSiteByOrgId, getStationList } from '@/api/stationManage/index';
import { getUser } from '@/api/user/index';
@@ -127,7 +127,7 @@ export default function DeviceManagementPage() {
const fetchSmartList = async () => {
setLoading(true);
try {
const res = await getSmartDeviceList(smartParams);
const res = await getSiteDevice(smartParams);
if (res.code === 200) {
setSmartList(res.rows || []);
setSmartTotal(res.total || res.rows.length);