|
@@ -0,0 +1,744 @@
|
|
|
+// import request from './axios.js'
|
|
|
+
|
|
|
+// //获取服务端公钥
|
|
|
+// export const getPublickey = query => {
|
|
|
+// return request({
|
|
|
+// url: 'info/publickey',
|
|
|
+// });
|
|
|
+// }
|
|
|
+// // login
|
|
|
+// export const loginRequest = params => {
|
|
|
+// return request.post("user/login", params);
|
|
|
+// };
|
|
|
+// //register
|
|
|
+// export const registerRequest = params => {
|
|
|
+// return request.post("user/registers", params);
|
|
|
+// };
|
|
|
+// // ----------------------------------------user------------------------------------------------
|
|
|
+// export const getUserList = () => {
|
|
|
+// return request.get(`user/getall`);
|
|
|
+// }
|
|
|
+// export const editRequest = params => {
|
|
|
+// return request.post("user/edituser", params);
|
|
|
+// };
|
|
|
+// export const deleteUser = data => {
|
|
|
+// return request.delete(`user/${data}`);
|
|
|
+// }
|
|
|
+// // ----------------------------------------user------------------------------------------------
|
|
|
+
|
|
|
+
|
|
|
+// //获取所有风场
|
|
|
+// export const fetchStationList = () => {
|
|
|
+// return request({
|
|
|
+// url: 'info/station',
|
|
|
+// method: 'get'
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //获取所有风场光伏
|
|
|
+// export const fetchStationListAll = () => {
|
|
|
+// return request({
|
|
|
+// url: 'info/station',
|
|
|
+// method: 'get'
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //根据风场id获取所有风机
|
|
|
+// export const fetchWindturbineList = query => {
|
|
|
+// return request({
|
|
|
+// url: 'info/windturbine',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// stationId: query
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+// // ----------------------------------------安全生产- 报警记录------------------------------------------------
|
|
|
+// //查询历史报警
|
|
|
+// export const alarm_history = (params) => {
|
|
|
+// return request({
|
|
|
+// url: `alarm/history/page2`,
|
|
|
+// params: params
|
|
|
+// });
|
|
|
+// }
|
|
|
+// //查报警
|
|
|
+// export const alarm_snap = (params) => {
|
|
|
+// return request({
|
|
|
+// url: `alarm/snap`,
|
|
|
+// params: params
|
|
|
+// });
|
|
|
+// }
|
|
|
+// // ----------------------------------------安全生产- 实时报警------------------------------------------------
|
|
|
+
|
|
|
+// //实时故障 最高级
|
|
|
+// export const alarm_fault_recent = (params) => {
|
|
|
+// return request({
|
|
|
+// url: `fault/recent`,
|
|
|
+// params: params,
|
|
|
+// showLoading: {
|
|
|
+// statu: false
|
|
|
+// }
|
|
|
+// });
|
|
|
+// }
|
|
|
+// //实时故障 第一次请求
|
|
|
+// export const alarm_fault_top = (params) => {
|
|
|
+// return request({
|
|
|
+// url: `fault/snap/top`,
|
|
|
+// params: params
|
|
|
+// });
|
|
|
+// }
|
|
|
+// //底下的实时报警
|
|
|
+// export const alarm_snap_top = (params) => {
|
|
|
+// return request({
|
|
|
+// url: `alarm/snap/top`,
|
|
|
+// params: params,
|
|
|
+// showLoading: {
|
|
|
+// statu: false
|
|
|
+// },
|
|
|
+// timeout: 1000
|
|
|
+
|
|
|
+// });
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+// // ----------------------------------------安全生产- 实时数据查询------------------------------------------------
|
|
|
+
|
|
|
+// // get 实时data
|
|
|
+// export const getAdapterLatest = (stationId, AIlist) => {
|
|
|
+// return request({
|
|
|
+// url: `ts/latest?uniformCodes=${AIlist}&thingId=${stationId}&thingType=windturbine`,
|
|
|
+// baseURL: '/adapter/',
|
|
|
+// showLoading: {
|
|
|
+// statu: false,
|
|
|
+// },
|
|
|
+// timeout: 1000
|
|
|
+// });
|
|
|
+// }
|
|
|
+// // get 历史数据
|
|
|
+// export const getAdapterHistory = (stationId, AIpoint, startTs, endTs) => {
|
|
|
+// return request({
|
|
|
+// url: `ts/history/raw?uniformCode=${AIpoint}&thingId=${stationId}&thingType=windturbine&startTs=${startTs}&endTs=${endTs}`,
|
|
|
+// baseURL: '/adapter/'
|
|
|
+// });
|
|
|
+// }
|
|
|
+// // get 历史数据
|
|
|
+// export const getAdapterHistorysnap = (stationId, AIpoint, startTs, endTs, interval) => {
|
|
|
+// return request({
|
|
|
+// url: `ts/history/snap?uniformCode=${AIpoint}&thingId=${stationId}&thingType=windturbine&startTs=${startTs}&endTs=${endTs}&interval=${interval}`,
|
|
|
+// baseURL: '/adapter/'
|
|
|
+// });
|
|
|
+// }
|
|
|
+// // 批量导出
|
|
|
+// export const AdapterHistoryExport = (activeAI, activeWT, startTs, endTs) => {
|
|
|
+// return request({
|
|
|
+// url: `ts/history/raw?uniformCode=${activeAI}&thingId=${activeWT}&thingType=windturbine&startTs=${startTs}&endTs=${endTs}`,
|
|
|
+// baseURL: '/adapter/'
|
|
|
+// });
|
|
|
+// }
|
|
|
+// // ----------------------------------------基础数据- 设备管理------------------------------------------------
|
|
|
+// //查询全部设备型号接口
|
|
|
+// export const device_list = () => {
|
|
|
+// return request.get(`device/model/list`);
|
|
|
+// }
|
|
|
+// //获取结构tree
|
|
|
+// export function tree(params) {
|
|
|
+// return request({
|
|
|
+// url: 'device/structure/tree/windturbine',
|
|
|
+// method: 'get',
|
|
|
+// });
|
|
|
+// }
|
|
|
+// //根据结构获取测点
|
|
|
+// export function point(code, pagenum, pagesize) {
|
|
|
+// return request.get(`device/metrics/page?pagenum=${pagenum}&pagesize=${pagesize}&deviceId=windturbine&structureCode=${code}`);
|
|
|
+// }
|
|
|
+// //测点新增
|
|
|
+// export function metrics(params) {
|
|
|
+// return request.post(`device/metrics/single`, params);
|
|
|
+// }
|
|
|
+// //测点删除
|
|
|
+// export function delmetrics(params) {
|
|
|
+// return request.delete(`device/metrics/single/delete/${params}`);
|
|
|
+// }
|
|
|
+// //测点导入
|
|
|
+
|
|
|
+
|
|
|
+// //tree新增 添加一个设备结构节点
|
|
|
+// export function treeAdd(params) {
|
|
|
+// return request.post(`device/structure`, params);
|
|
|
+// }
|
|
|
+// //tree删除 tree删除一个设备结构节点
|
|
|
+// export function treeDel(params) {
|
|
|
+// return request.delete(`device/structure/delete/${params}`);
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+// // 故障模式
|
|
|
+// // get All
|
|
|
+// export const faultmode_windturbine = () => {
|
|
|
+// return request.get(`device/faultmode/windturbine`);
|
|
|
+// }
|
|
|
+// // 根据 structurecode get
|
|
|
+// export const faultmode_structurecode = params => {
|
|
|
+// return request.get(`device/faultmode/windturbine/${params}`);
|
|
|
+// }
|
|
|
+// // 根据 id delete
|
|
|
+// export const faultmode_delete = params => {
|
|
|
+// return request.delete(`device/faultmode/delete/${params}`);
|
|
|
+// }
|
|
|
+
|
|
|
+// // 新增 修改
|
|
|
+// export const faultmode_add_edit = data => {
|
|
|
+// return request.post(`device/faultmode`, data);
|
|
|
+// }
|
|
|
+
|
|
|
+// // ----------------------------------------end 基础数据- 风机管理------------------------------------------------
|
|
|
+
|
|
|
+
|
|
|
+// // ---------------------------------------- 报警配置- 自定义预警------------------------------------------------
|
|
|
+// export function custombj_fetchTableData(params) {
|
|
|
+// return request.get(`alertrule2/page/`, {
|
|
|
+// params: params
|
|
|
+// });
|
|
|
+// }
|
|
|
+// // 获取机型
|
|
|
+// export function equipmentmodel_list(params) {
|
|
|
+// return request.get(`windpowerstation?id=${params}`);
|
|
|
+// }
|
|
|
+// // 获取机型new
|
|
|
+// export function getTestingpointDI() {
|
|
|
+// return request.get(`testingpointDI/model`);
|
|
|
+// }
|
|
|
+// // 获取规则
|
|
|
+// export function alertrule2_list() {
|
|
|
+// return request.get(`alertrule2/list/`);
|
|
|
+// }
|
|
|
+// //根据structcode获取AI.DI测点
|
|
|
+// export const fetchAIDIPointList = (deviceId, structcode, stationId, windturbineId, pageNum, pageSize) => {
|
|
|
+// return request({
|
|
|
+// url: 'info/point',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// deviceId: deviceId,
|
|
|
+// structcode: structcode,
|
|
|
+// stationId: stationId,
|
|
|
+// windturbineId: windturbineId,
|
|
|
+// pageNum,
|
|
|
+// pageSize,
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// //根据场站编号,风机型号获取AI测点
|
|
|
+// export const fetchAIPointList = (stationId, modelId) => {
|
|
|
+// return request({
|
|
|
+// url: 'info/testing_point_ai',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// stationId: stationId,
|
|
|
+// modelId: modelId
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //根据场站编号,风机型号获取DI测点
|
|
|
+// export const fetchDIPointList = (stationId, modelId) => {
|
|
|
+// return request({
|
|
|
+// url: 'info/testing_point_di',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// stationId: stationId,
|
|
|
+// modelId: modelId
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //根据场站编号,风机型号获取DI测点new
|
|
|
+// export const getDIPointList = (minModel) => {
|
|
|
+// return request({
|
|
|
+// url: 'testingpointDI/point',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// minModel
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //根据场站编号,获取电气DI测点
|
|
|
+// export const fetchElectricDIPointList = (stationId) => {
|
|
|
+// return request({
|
|
|
+// url: 'info/electrical_point_di',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// stationId: stationId
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //根据电气测点,获取测点信息
|
|
|
+// export const fetchElectricDIPointByPointId = (pointId) => {
|
|
|
+// return request({
|
|
|
+// url: 'info/electrical_point_di/byId',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// pointId: pointId
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// //获取风机关联部件列表
|
|
|
+// export const fetchRelatePart = () => {
|
|
|
+// return request({
|
|
|
+// url: 'info/windturbine_parts',
|
|
|
+// method: 'get',
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //根据风场编号获取电气AI测点
|
|
|
+// export const fetch_electrical_point_ai = (stationId) => {
|
|
|
+// return request({
|
|
|
+// url: 'info/electrical_point_ai',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// stationId: stationId
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //根据风场编号获取电气DI测点
|
|
|
+// export const fetch_electrical_point_di = (stationId) => {
|
|
|
+// return request({
|
|
|
+// url: 'info/electrical_point_di',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// stationId: stationId
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //获取报警类型
|
|
|
+// export const fetchWarningType = () => {
|
|
|
+// return request({
|
|
|
+// url: 'info/warning_type',
|
|
|
+// method: 'get',
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //获取报警种类
|
|
|
+// export const fetchWarningClassify = () => {
|
|
|
+// return request({
|
|
|
+// url: 'info/warning_classify',
|
|
|
+// method: 'get',
|
|
|
+// });
|
|
|
+// };
|
|
|
+// export const custombj_batchImport = list => {
|
|
|
+// return request.post("alertrule2/save-batch", list);
|
|
|
+// };
|
|
|
+// export const custombj_postSave = form => {
|
|
|
+// return request.post("alertrule2/save", form)
|
|
|
+// };
|
|
|
+
|
|
|
+// //******************************end****************************************//
|
|
|
+
|
|
|
+
|
|
|
+// //******************************升压站报警API************************************//
|
|
|
+
|
|
|
+// export const scadabj_fetchTableData = query => {
|
|
|
+// return request({
|
|
|
+// url: 'scadabj/page',
|
|
|
+// method: 'get',
|
|
|
+// params: query,
|
|
|
+// timeout: 20000,
|
|
|
+// });
|
|
|
+// };
|
|
|
+// export const scadabj_postSave = objData => {
|
|
|
+// return request.post("scadabj/save", objData);
|
|
|
+// };
|
|
|
+// export const scadabj_batchImport = list => {
|
|
|
+// return request.post("scadabj/save-batch", list);
|
|
|
+// };
|
|
|
+// //********************************************end********************************//\
|
|
|
+
|
|
|
+// //********************************************报警记录日志********************************//\
|
|
|
+// export const fetchruleventLogs = (pagenum, pagesize, ruleName, ruleType) => {
|
|
|
+// return request({
|
|
|
+// url: 'rulevent/page',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// pagenum,
|
|
|
+// pagesize,
|
|
|
+// ruleName,
|
|
|
+// ruleType
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// //********************************************end********************************//\
|
|
|
+
|
|
|
+// //******************************风机报警API************************************//
|
|
|
+// export const windturbinebj_fetchTableData = query => {
|
|
|
+// return request({
|
|
|
+// url: 'warning2/page',
|
|
|
+// method: 'get',
|
|
|
+// params: query,
|
|
|
+// timeout: 20000,
|
|
|
+// });
|
|
|
+// };
|
|
|
+// export const windturbinebj_postSave = form => {
|
|
|
+// return request.post('warning2/save', form);
|
|
|
+// };
|
|
|
+// export const windturbinebj_batchImport = list => {
|
|
|
+// return request.post("warning2/save-batch", list);
|
|
|
+// };
|
|
|
+
|
|
|
+// export const fetchLeaf = () => {
|
|
|
+// return request({
|
|
|
+// url: 'warning2/page',
|
|
|
+// method: 'get',
|
|
|
+// params: {
|
|
|
+// pagenum: 1,
|
|
|
+// pagesize: 10000,
|
|
|
+// isLeaf: 0,
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+
|
|
|
+// //根据风机型号获取DI测点统一编码相关数据 testingpointdi2
|
|
|
+// export const getDIPointByModelId = query => {
|
|
|
+// return request({
|
|
|
+// url: 'info/testing_point_di',
|
|
|
+// method: 'get',
|
|
|
+// params: query
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// //******************************end*******************************************//
|
|
|
+// //******************************预警统计*******************************************//
|
|
|
+// export const statistics_querymap = params => {
|
|
|
+// return request.get(`alarm/count/querymap2`, { params: params })
|
|
|
+// };
|
|
|
+// export const statistics_querybyname = params => {
|
|
|
+// return request.get('alarm/count/querybyname2', { params: params })
|
|
|
+// };
|
|
|
+// export const statistics_lineandproject = params => {
|
|
|
+// return request.get('alarm/count/lineandproject2', { params: params })
|
|
|
+// };
|
|
|
+// //******************************end*******************************************//
|
|
|
+
|
|
|
+// //******************************预警分析*******************************************//
|
|
|
+// export const warning_query_new = params => {
|
|
|
+// return request.get(`alarm/count/query/new2`, { params: params })
|
|
|
+// };
|
|
|
+// export const warning_detail = params => {
|
|
|
+// return request({
|
|
|
+// url: `analysis/detail`,
|
|
|
+// params: params,
|
|
|
+// timeout: 60000
|
|
|
+
|
|
|
+// });
|
|
|
+// };
|
|
|
+// // export const statistics_lineandproject = params => {
|
|
|
+// // return request.get('alarm/count/lineandproject', { params: params })
|
|
|
+// // };
|
|
|
+
|
|
|
+
|
|
|
+// //******************************end*******************************************//
|
|
|
+
|
|
|
+
|
|
|
+// //*****************************诊断报告*******************************************//
|
|
|
+// export const earlywarnscore_list = params => {
|
|
|
+// return request.get(`earlywarnscore/list`, { params: params })
|
|
|
+// };
|
|
|
+// export const warning_query_new3 = params => {
|
|
|
+// return request.get(`alarm/count/query/new3`, { params: params })
|
|
|
+// };
|
|
|
+// //******************************end*******************************************//
|
|
|
+
|
|
|
+// //*****************************故障诊断*******************************************//
|
|
|
+
|
|
|
+// // 获取配置
|
|
|
+// export const getConfig = () => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/serverparam/list`,
|
|
|
+// timeout: 60000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取配置详情
|
|
|
+// export const getConfigDetails = params => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/hostparam/${params}`,
|
|
|
+// timeout: 60000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取表数组
|
|
|
+// export const getSQLTable = () => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnose/tables`,
|
|
|
+// timeout: 60000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 使用原始数据获取列
|
|
|
+// export const getColumnsno = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnosepoint/list/`,
|
|
|
+// params,
|
|
|
+// timeout: 60000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 执行 SQL
|
|
|
+// export const executeSQLno = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnose/data`,
|
|
|
+// params,
|
|
|
+// timeout: 60000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取表格数据 SQL
|
|
|
+// export const executeSQL = (data) => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnose/pointdata`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+// export const executeSQLpredict = (data) => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/predict/pointdata`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 不使用原始数据获取列
|
|
|
+// export const getColumns = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnose/colmuns`,
|
|
|
+// params,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+// // 开始训练
|
|
|
+// export const train = data => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnose/trainfile`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+// export const trainpredict = data => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/predict/trainfile`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取训练进度
|
|
|
+// export const getProgress = () => {
|
|
|
+// return request({
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnose/gettrainInfo`,
|
|
|
+// timeout: 100000,
|
|
|
+// showLoading: {
|
|
|
+// statu: false
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 预测
|
|
|
+// export const forecastData = (data) => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnose/forecasts`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取预测模型
|
|
|
+// export const getModel = () => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnose/getHistory`,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取所有场站
|
|
|
+// export const getstationAll = () => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `basic/station/all`,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取所有风机
|
|
|
+// export const getWindturbineAll = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `basic/windturbine/all`,
|
|
|
+// params,
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 保存模型
|
|
|
+// export const updateModel = (data) => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `/api/history/editHistory`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+// export const saveModel = (data) => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `/api/history/addHistory`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //******************************end*******************************************//
|
|
|
+
|
|
|
+// //*****************************模型管理*******************************************//
|
|
|
+// // 获取模型历史
|
|
|
+// export const getModelHistoryList = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/history/getHistoryList`,
|
|
|
+// params
|
|
|
+// });
|
|
|
+// };
|
|
|
+// // 获取模型详情
|
|
|
+// export const getModeldetail = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnosereport/info`,
|
|
|
+// params
|
|
|
+// });
|
|
|
+// };
|
|
|
+// // 删除模型管理
|
|
|
+// export const removeHistoryModel = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/history/removeHistory`,
|
|
|
+// params
|
|
|
+// });
|
|
|
+// };
|
|
|
+// //******************************end*******************************************//
|
|
|
+
|
|
|
+// //*****************************实时故障诊断*******************************************//
|
|
|
+
|
|
|
+// // 获取实时故障诊断表格数据
|
|
|
+// export const getInstantDiagnosticTableData = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `case/faultalg/list`,
|
|
|
+// params,
|
|
|
+// showLoading: {
|
|
|
+// statu: false
|
|
|
+// }
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取故障时的报警信息
|
|
|
+// export const getFaultWarningInfo = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/warning/info`,
|
|
|
+// params
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取诊断报告数据
|
|
|
+// export const getAllReportMsg = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnosereport/item`,
|
|
|
+// params
|
|
|
+// });
|
|
|
+// }
|
|
|
+
|
|
|
+// // 获取故障类型
|
|
|
+// export const getFaultType = () => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `know/fault/type/all`,
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 确认故障
|
|
|
+// export const confirmFault = (data) => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `case/faultalg/confirm`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// }
|
|
|
+
|
|
|
+// // 获取离线故障诊断表格数据
|
|
|
+// export const getOfflineTableData = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/diagnosefault/offline`,
|
|
|
+// params
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 获取离线启用的模型
|
|
|
+// export const getOfflineHistoryList = (params) => {
|
|
|
+// return request({
|
|
|
+// method: "get",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `api/history/getHistoryList`,
|
|
|
+// params
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+// // 离线诊断
|
|
|
+// export const offlineDiagnoseFault = (data) => {
|
|
|
+// return request({
|
|
|
+// method: "post",
|
|
|
+// baseURL: '/current/',
|
|
|
+// url: `/api/diagnosefault/offlinediagnose`,
|
|
|
+// data,
|
|
|
+// timeout: 120000
|
|
|
+// });
|
|
|
+// };
|
|
|
+
|
|
|
+//******************************end*******************************************//
|