物联组态 对接数据

This commit is contained in:
shih
2026-04-23 13:46:19 +08:00
parent ff257d8e68
commit 760eccdecc
2 changed files with 989 additions and 1040 deletions

View File

@@ -2,43 +2,70 @@ import request from '@/utils/request';
// 查询组态列表
export function listCenter(query) {
return request({
url: '/scada/picture/list',
method: 'get',
params: query
});
return request({
url: '/scada/picture/list',
method: 'get',
params: query,
});
}
// 查询组态详情
export function getCenter(id) {
return request({
url: '/scada/picture/' + id,
method: 'get'
});
return request({
url: '/scada/picture/' + id,
method: 'get',
});
}
// 新增组态
export function addCenter(data) {
return request({
url: '/scada/picture',
method: 'post',
data: data
});
return request({
url: '/scada/picture',
method: 'post',
data: data,
});
}
// 修改组态
export function updateCenter(data) {
return request({
url: '/scada/picture',
method: 'put',
data: data
});
return request({
url: '/scada/picture',
method: 'put',
data: data,
});
}
// 删除组态
export function delCenter(id) {
return request({
url: '/scada/picture/' + id,
method: 'delete'
});
return request({
url: '/scada/picture/' + id,
method: 'delete',
});
}
// 查询维修完成情况数据
export function getMaintenanceData(query) {
return request({
url: '/iot/configuration/repairList',
method: 'get',
params: query,
});
}
// 查询保养统计数据
export function getMaintenanceStats(query) {
return request({
url: '/iot/configuration/maintenanceList',
method: 'get',
params: query,
});
}
// 查询设备列表
export function getDeviceList(query) {
return request({
url: '/iot/configuration/deviceList',
method: 'get',
params: query,
});
}

File diff suppressed because it is too large Load Diff