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", }, }); } // export function getexportApi() { // return request({ // url: "/sensor/export", // method: "post", // responseType: "blob", // }); // }