物联组态 对接数据

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) { export function listCenter(query) {
return request({ return request({
url: '/scada/picture/list', url: '/scada/picture/list',
method: 'get', method: 'get',
params: query params: query,
}); });
} }
// 查询组态详情 // 查询组态详情
export function getCenter(id) { export function getCenter(id) {
return request({ return request({
url: '/scada/picture/' + id, url: '/scada/picture/' + id,
method: 'get' method: 'get',
}); });
} }
// 新增组态 // 新增组态
export function addCenter(data) { export function addCenter(data) {
return request({ return request({
url: '/scada/picture', url: '/scada/picture',
method: 'post', method: 'post',
data: data data: data,
}); });
} }
// 修改组态 // 修改组态
export function updateCenter(data) { export function updateCenter(data) {
return request({ return request({
url: '/scada/picture', url: '/scada/picture',
method: 'put', method: 'put',
data: data data: data,
}); });
} }
// 删除组态 // 删除组态
export function delCenter(id) { export function delCenter(id) {
return request({ return request({
url: '/scada/picture/' + id, url: '/scada/picture/' + id,
method: 'delete' 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