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", }, }); } //更新更新ICD类型属性配置 export function icdupdateAttApi(data) { return request({ url: "/icdconfig/updateAtt", method: "post", data, }); } //删除 export function deleteAttApi(data) { return request({ url: "/icdconfig/deleteAtt", method: "post", 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", }, }); } //监测设备相关接口 //新增 export function modevAddApi(data) { return request({ url: "/modev/add", method: "post", data, }); } //修改更新 export function modevUpdateApi(data) { return request({ url: "/modev/update", method: "post", data, }); } //删除 export function modevDeleteApi(data) { return request({ url: "/modev/delete", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //计量单位相关接口Unit Controller //查询全部 export function unitListAllApi(data) { return request({ url: "/unit/listAll", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //新增 export function unitAddApi(data) { return request({ url: "/unit/add", method: "post", data, }); } //修改更新 export function unitUpdateApi(data) { return request({ url: "/unit/update", method: "post", data, }); } //删除 export function unitDeleteApi(data) { return request({ url: "/unit/delete", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //查询全部 export function modevListAllApi(data) { return request({ url: "/modev/listAll", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //参数绑定相关接口 //获取树结构 export function getParamTreeApi(data) { return request({ url: "/parambind/getTree", method: "get", data, }); } //查询逻辑设备实例列表 export function getinstListApi(data) { return request({ url: "/parambind/instList", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //查询绑定信息 export function getBindApi(data) { return request({ url: "/parambind/getBind", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //预览 export function previewApi(data) { return request({ url: "/parambind/preview", method: "post", data, }); } //绑定 export function bindApi(data) { return request({ url: "/parambind/bind", method: "post", data, }); } //解绑 export function unbindApi(data) { return request({ url: "/parambind/unbind", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } export function generateParamindexApi(data) { return request({ url: "/parambind/generateParamindex", method: "post", data, }); } //IcdConfig相关接口 //清空所有配置 export function icdclearAllApi(data) { return request({ url: "/icdconfig/clearAll", method: "post", data, }); } //参数绑定相关接口 //清空所有绑定 export function paramclearAllApi(data) { return request({ url: "/parambind/clearAll", method: "post", data, }); }