import request from "../request"; //登录 export function userloginApi(data) { return request({ url: "/user/login", method: "post", data, }); } //退出 //首页接口 //装置总数 export function getlistAllCountApi(data) { return request({ url: "/modevtype/sensorCount", method: "get", data, }); } //获取新的树结构 export function getTreeApi(data) { return request({ url: "/nsensor/getTree", method: "get", data, }); } //获取装置总数图表 export function getDetailApi(data) { return request({ url: "/nsensor/detail", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //获取树结构 // 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: "/nsensor/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, }); } //查询icd文件列表 export function icdFileApi(data) { return request({ url: "/icdconfig/listFile", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //查询客户端icd文件的IED列表 export function listIedApi(data) { return request({ url: "/icdconfig/listIed", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //查询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", }, }); } //生成rpt export function generateRptApi(data) { return request({ url: "/icdconfig/generateParamindex", method: "post", data, }); } // /icdconfig/listled 查询客户端icd文件的IED列表 export function listIedConfigApi(data) { return request({ url: "/icdconfig/listIed", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //开始实时采集转发 export function startCollectApi(data) { return request({ url: "/icdconfig/startCollect", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //停止实时采集转发 export function stopCollectApi(data) { return request({ url: "/icdconfig/stopCollect", 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 monitoringListAllApi(data) { return request({ url: "/nsensor/listAll", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //新增 export function modevAddApi(data) { return request({ url: "/nsensor/add", method: "post", data, }); } //修改更新 export function modevUpdateApi(data) { return request({ url: "/nsensor/update", method: "post", data, }); } //删除 export function modevDeleteApi(data) { return request({ url: "/nsensor/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 updateParamindexApi(data) { return request({ url: "/parambind/updateParamindex", 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, }); } //监测设备相关接口 export function monitoringListApi(data) { return request({ url: "/nsensor/list", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //导入CAC export function cacUploadApi(data) { return request({ url: "/nsensor/importCac", method: "post", params: data, headers: { "Content-Type": "multipart/form-data", // set the content type to multipart/form-data }, }); } //查询树干 export function getTrunkApi(data) { return request({ url: "/nsensor/getTrunk", method: "get", data, }); } //批量更新 export function batchUpdateApi(data) { return request({ url: "/nsensor/batchUpdate", method: "post", data, }); } //从modev表导入 export function importFromModevApi(data) { return request({ url: "/nsensor/importFromModev", method: "post", data, }); } //属性相关接口 //新增 export function modevtypepointAddApi(data) { return request({ url: "/modevtypepoint/add", method: "post", data, }); } //列表/modevtypepoint/listAll export function modevtypepointListApi(data) { return request({ url: "/modevtypepoint/listAll", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } // //删除 export function modevtypepointDeleteApi(data) { return request({ url: "/modevtypepoint/delete", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //告警规则 //查询全部列表 export function AlarmRulesListApi(data) { return request({ url: "/rule/listAll", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //添加告警规则 export function AlarmRulesAddRules(data) { return request({ url: "/rule/add", method: "post", data, }); } //删除告警规则 export function AlarmRulesDeleteRules(data) { return request({ url: "/rule/delete", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //更新告警规则 export function AlarmRulesUpdateRules(data) { return request({ url: "/rule/update", method: "post", data, }); } //查询比较符 export function listOperatorApi(data) { return request({ url: "/rule/listOperator", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //查询比较器 export function listComparatorApi(data) { return request({ url: "/rule/listComparator", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //告警信息 export function warningListApi(data) { return request({ url: "/warning/list", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //I2配置 //字段映射列表 export function listFieldConfigApi(data) { return request({ url: "/i2sync/listFieldConfig", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //修改字段映射表 export function updateFieldConfigApi(data) { return request({ url: "/i2sync/updateFieldConfig", method: "post", data, }); } //删除字段映射表 export function delFieldConfigApi(data) { return request({ url: "/i2sync/delFieldConfig", method: "post", data, }); } //查询导出类型配置 export function listConfigApi(data) { return request({ url: "/i2sync/listConfig", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //新增到类型 export function addConfigApi(data) { return request({ url: "/i2sync/addConfig", method: "post", data, }); } //删除导出类型 export function delConfigApi(data) { return request({ url: "/i2sync/delConfig", method: "post", data, }); } //预览导出类型 export function prewXmlApi(data) { return request({ url: "/i2sync/prewXml", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //查询导出记录 export function listRecordApi(data) { return request({ url: "/i2sync/listRecord", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //rptparam相关接口 //查询绑定信息 export function getRptApi(data) { return request({ url: "/rptparam/getRpt", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } // 查询可用rptparam export function listRptApi(data) { return request({ url: "/rptparam/listRpt", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //绑定 export function updateRptApi(data) { return request({ url: "/rptparam/updateRpt", method: "post", data, }); } //查询I2状态 export function i2statusApi(data) { return request({ url: "/i2sync/status", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //远端服务器 //获取所有列表 export function serverlistApi(data) { return request({ url: "/remote/listAll", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //新增 export function serveAddApi(data) { return request({ url: "/remote/add", method: "post", data, }); } //修改 export function serveUpdateApi(data) { return request({ url: "/remote/update", method: "post", data, }); } //删除导出类型 export function serveDelApi(data) { return request({ url: "/remote/delete", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //下载记录 export function DownloadAllApi(data) { return request({ url: "/remote/listDownload", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //IEC服务器 //启动IEC服务端 export function serverstartApi(data) { return request({ url: "/iecserver/start", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //查看IEC服务端状态 export function serverstatusApi(data) { return request({ url: "/iecserver/status", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //停止IEC服务端 export function serverstopApi(data) { return request({ url: "/iecserver/stop", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //上传服务端icd文件 /iecserver/upload //​/iecserver​/listFile查询服务端icd文件列表 export function ieclistFileApi(data) { return request({ url: "/iecserver/listFile", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //61850下载文件相关接口 Ied Dl Controller //获取所有列表 export function ieddlServerApi(data) { return request({ url: "/ieddl/listAll", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //新增 export function ieddlAddApi(data) { return request({ url: "/ieddl/add", method: "post", data, }); } //修改 export function ieddlUpdateApi(data) { return request({ url: "/ieddl/update", method: "post", data, }); } //删除导出类型 export function ieddlDelApi(data) { return request({ url: "/ieddl/delete", method: "post", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); } //下载记录 export function ieddlDownloadAllApi(data) { return request({ url: "/ieddl/listDownload", method: "get", params: data, headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); }