机器人列表 修改接口 分页查询
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user