|
|
|
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,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//icd上传文件
|
|
|
|
export function icdUploadApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/icdconfig/upload",
|
|
|
|
method: "post",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "multipart/form-data", // set the content type to multipart/form-data
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//icd查询全部类型列表
|
|
|
|
export function icdListApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/icdconfig/list",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//ied查询全部类型列表
|
|
|
|
export function iedListApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/icdconfig/iedList",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//icd删除
|
|
|
|
export function icdDeleteApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/icdconfig/delete",
|
|
|
|
method: "post",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//icd更新类型
|
|
|
|
export function icdUpdateApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/icdconfig/update",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//查询data表名
|
|
|
|
export function tableListApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/icdconfig/tableList",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//查询data表字段名
|
|
|
|
export function colListApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/icdconfig/colList",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//设备台账管理列表api
|
|
|
|
//变电站相关接口
|
|
|
|
//新增
|
|
|
|
export function bdzAddApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/bdz/add",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//修改更新
|
|
|
|
export function bdzUpdateApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/bdz/update",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//删除
|
|
|
|
export function bdzDeleteApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/bdz/delete",
|
|
|
|
method: "post",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//查询全部
|
|
|
|
export function bdzListAllApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/bdz/listAll",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//区域间隔相关接口
|
|
|
|
//新增
|
|
|
|
export function areaAddApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/area/add",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//修改更新
|
|
|
|
export function areaUpdateApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/area/update",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//删除
|
|
|
|
export function areaDeleteApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/area/delete",
|
|
|
|
method: "post",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//查询全部
|
|
|
|
export function areaListAllApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/area/listAll",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//主设备管理相关接口
|
|
|
|
//新增
|
|
|
|
export function zsbAddApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/zsb/add",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//修改更新
|
|
|
|
export function zsbUpdateApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/zsb/update",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//删除
|
|
|
|
export function zsbDeleteApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/zsb/delete",
|
|
|
|
method: "post",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//查询全部
|
|
|
|
export function zsbListAllApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/zsb/listAll",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//设备类型相关接口
|
|
|
|
//新增
|
|
|
|
export function sblxAddApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/lx/add",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//修改更新
|
|
|
|
export function sblxUpdateApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/lx/update",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//删除
|
|
|
|
export function sblxDeleteApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/lx/delete",
|
|
|
|
method: "post",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//查询全部
|
|
|
|
export function sblxListAllApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/lx/listAll",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//监测设备类型相关接口
|
|
|
|
//新增
|
|
|
|
export function modevtypeAddApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/modevtype/add",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//修改更新
|
|
|
|
export function modevtypeUpdateApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/modevtype/update",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//删除
|
|
|
|
export function modevtypeDeleteApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/modevtype/delete",
|
|
|
|
method: "post",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//查询全部
|
|
|
|
export function modevtypeListAllApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/modevtype/listAll",
|
|
|
|
method: "get",
|
|
|
|
params: data,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|