import axios from "@/assets/js/axios"; /** * 查询台站列表 */ export const getStation = () => { return axios({ method: "GET", url: "station/getStation" }) } /** * 台站下添加文件 */ export const addFileInStation = (params) => { return axios({ method: "GET", url: "stationInfo/addFileInStation", params }) } /** * 移除台站下文件(单个文件) * ?FilePath=1&stationName=1 */ export const delFileFromStation = (params) => { return axios({ method: "GET", url: "stationInfo/delFileFromStation", params }) } /** * 添加台站 */ export const addStation = (params) => { return axios({ method: "GET", url: "stationInfo/addStation", params }) } /** * 删除台站 * ?stationName1=null&stationName2=null&stationName3=null */ export const deleteStation = (params) => { return axios({ method: "GET", url: "stationInfo/deleteStation", params }) } /** * 编辑台站 */ export const updateStation = (params) => { return axios({ method: "GET", url: "stationInfo/updateStation", params }) } /** * 解析xml文件 * filePath */ export const getXmlValue = (params) => { return axios({ method: "GET", url: "fileInfo/getXmlValue", params }) } /** * fileParam/getParamByFileId 根据文件id获取文件参数 */ export const getParamByFileId = (fileId) => { return axios({ method: "GET", url: "fileParam/getParamByFileId", params: { fileId } }) } /** * 单数据分析 * fileId */ export const getInfoByFileId = (fileId) => { return axios({ method: "GET", url: "battGroupData/list", params: { fileId } }) } /** * 对比时下拉选择站点下挂在的文件列表 */ export const getFileList = () => { return axios({ method: "GET", url: "fileInfo/selectFileInStation" }) } /** * 对比分析-两组数据列表 * ?baseFileId=1&fileId=2 */ export const comparedList = (baseFileId, fileId) => { return axios({ method: "GET", url: "battGroupData/comparedList", params: { baseFileId, fileId } }) } /** * 按照筛选条件查询数据库信息 * ?battVol=2&endTime=2222-01-01&pageCurr=1&pageSize=10&startTime=1982-01-01 */ export const getDatas = (params) => { return axios({ method: "GET", url: "fileParam/getDataByCondition", params }) } /** * 删除基站下数据 * ?fileId=2&stationId=2222 */ export const deleteData = (params) => { return axios({ method: "GET", url: "fileParam/deleteDataById", params }) } /** * 生成报告 单文件分析 * {dataList: [], fileParam: {}, resPic: '', volPic: '', stationInfo: {},"stdDevBr": "214.48%", stdDevBs: "66175.74%", stdDevBv: "586.35%", stdDevCr: "0.0%"} */ export const testReport = (data) => { return axios({ method: "POST", url: "excelExport/resTestReport", responseType: 'blob', data }) } /** * 生成报告 对比分析 * ?fileId=1&fileId2=1 * {resPic=1&volPic=1} data */ export const testCompareReport = (params, data) => { return axios({ method: "POST", url: "excelExport/resTestCompareReport", responseType: 'blob', params, data }) } /** * 分级评价-系数及阈值查询 */ export const getParams = () => { return axios({ method: "GET", url: "testParam/factorsAndThreshold" }) } /** * 分级评价-系数及阈值 更新 * { "chainRes": 0, "enabled": 0, "id": 0, "resBadCoeK4": 0, "resGoodCoeK3": 0, "volHighCoeK2": 0, "volLowCoeK1": 0 } */ export const setParams = (data) => { return axios({ method: "PUT", url: "testParam/factorsAndThreshold", data }) } /** * 弃用 * 通过修改属性窗口值来修改文件值(传参对象) */ // export const updateFileParam = (filePath, data) => { // return axios({ // method: "POST", // url: "fileInfo/updateXmlByFileParam", // params: { filePath }, // data // }) // } /** * 根据文件id改数据库 * * 通过修改属性窗口值来修改文件值(传参对象) */ export const updateFileParam = (fileId, data) => { return axios({ method: "POST", url: "fileInfo/updateFileParamByFileId", params: { fileId }, data }) }