You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import request from "../request";
|
|
|
|
//获取登录
|
|
|
|
export function getTreeApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/sensor/getTree",
|
|
|
|
method: "get",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//获取装置总数图表
|
|
|
|
export function getDetailApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/sensor/detail",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//导出;
|
|
|
|
export function getexportApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/sensor/export",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// export function getexportApi() {
|
|
|
|
// return request({
|
|
|
|
// url: "/sensor/export",
|
|
|
|
// method: "post",
|
|
|
|
// responseType: "blob",
|
|
|
|
// });
|
|
|
|
// }
|