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

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

@@ -166,14 +166,6 @@ export function unbindDrone(data) {
})
}
// 获取所有智能装备列表
export function getSmartDeviceList(params) {
return request({
url: '/iot/device/list',
method: 'get',
params
})
}
// 绑定智能装备
export function bindSmartDevice(data) {
@@ -203,6 +195,24 @@ export function postLiveHeartbeat(data) {
}
//获取场站设备/iot/device/getSiteList
export function getSiteDevice(data) {
return request({
url: `/iot/device/getSiteList`,
method: 'get',
params: data
})
}
//获取配置i界面机器人设备/iot/device/getDeviceList
export function getAllDevice(data) {
return request({
url: `/iot/device/getDeviceList `,
method: 'get',
params: data
})
}

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);