设备、传感器信息;大屏接口的开发;数据接口修改

This commit is contained in:
zhangjunwen 2024-04-03 09:29:21 +08:00
parent 54ff266258
commit f18ad8ef04
3 changed files with 148 additions and 0 deletions

View File

@ -0,0 +1,60 @@
import request from "@/utils/request";
// 查询超压底缸大屏数据
export function listBottomCylData() {
return request({
url: "/dataQuery/bottomCyl",
method: "get",
});
}
// 查询可控中高辊顶辊大屏数据
export function listTopScollerData() {
return request({
url: "/dataQuery/topScoller",
method: "get",
});
}
// 查询可控中高辊底辊大屏数据
export function listBottomScollerData() {
return request({
url: "/dataQuery/bottomScoller",
method: "get",
});
}
// 根据时间查询超压底缸数据
export function getBottomCylDataByDate(params) {
return request({
url: "/dataQuery/bottomCylByDate",
method: "get",
params: params,
});
}
//根据时间查询可控中高辊顶辊数据
export function getTopScollerDataByDate(columnName, startTime, endTime) {
return request({
url: "/dataQuery/topScollerByDate",
method: "get",
params: {
columnName: columnName,
startTime: startTime,
endTime: endTime,
},
});
}
// 根据时间查询可控中高辊顶辊数据
export function getBottomScollerDataByDate(columnName, startTime, endTime) {
return request({
url: "/dataQuery/bottomScollerByDate",
method: "get",
params: {
columnName: columnName,
startTime: startTime,
endTime: endTime,
},
});
}

View File

@ -0,0 +1,44 @@
import request from "@/utils/request";
// 查询设备信息列表
export function listInfo(query) {
return request({
url: "/equip/info/list",
method: "get",
params: query,
});
}
// 查询设备信息详细
export function getInfo(id) {
return request({
url: "/equip/info/" + id,
method: "get",
});
}
// 新增设备信息
export function addInfo(data) {
return request({
url: "/equip/info",
method: "post",
data: data,
});
}
// 修改设备信息
export function updateInfo(data) {
return request({
url: "/equip/info",
method: "put",
data: data,
});
}
// 删除设备信息
export function delInfo(id) {
return request({
url: "/equip/info/" + id,
method: "delete",
});
}

View File

@ -0,0 +1,44 @@
import request from "@/utils/request";
// 查询传感器信息列表
export function listInfo(query) {
return request({
url: "/sensor/info/list",
method: "get",
params: query,
});
}
// 查询传感器信息详细
export function getInfo(id) {
return request({
url: "/sensor/info/" + id,
method: "get",
});
}
// 新增传感器信息
export function addInfo(data) {
return request({
url: "/sensor/info",
method: "post",
data: data,
});
}
// 修改传感器信息
export function updateInfo(data) {
return request({
url: "/sensor/info",
method: "put",
data: data,
});
}
// 删除传感器信息
export function delInfo(id) {
return request({
url: "/sensor/info/" + id,
method: "delete",
});
}