|
@@ -2,7 +2,7 @@ import request from "../utils/request";
|
|
|
//全部风机
|
|
|
const getWindturbine = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/windturbine/all`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -10,7 +10,7 @@ const getWindturbine = () => {
|
|
|
// 获取所有升压站tab数据
|
|
|
const getAllStationTab = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/boost_station/stations`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -18,7 +18,7 @@ const getAllStationTab = () => {
|
|
|
// 获取svg触发器
|
|
|
const getAllStationSvgInfo = (params) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/boost_station/svginfo?id=${params.id}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -26,7 +26,7 @@ const getAllStationSvgInfo = (params) => {
|
|
|
// 获取升压站svg图片数据
|
|
|
const getSvgData = (params) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/boost_station/svg?id=${params.id}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -34,7 +34,7 @@ const getSvgData = (params) => {
|
|
|
// 获取矩阵页面光伏二级页左侧栏数据
|
|
|
const getStationInfoData = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/pv_info`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -42,7 +42,7 @@ const getStationInfoData = () => {
|
|
|
// 获取矩阵页面光伏二级页整体数据
|
|
|
const getAllPvStationData = (params) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/latest?thingType=windturbine&thingId=${params.id}&uniformCodes=${params.codes}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -50,7 +50,7 @@ const getAllPvStationData = (params) => {
|
|
|
// 获取矩阵页面光伏二级页echarts数据
|
|
|
const getAllPvHistoryData = (params) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/history/snap?thingType=windturbine&thingId=${params.id}&uniformCode=${params.code}&startTs=${params.startTime}&endTs=${params.endTime}&interval=${params.interval}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -59,7 +59,7 @@ const getAllPvHistoryData = (params) => {
|
|
|
// 标题栏数据
|
|
|
const stationOverview = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/overview`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -67,7 +67,7 @@ const stationOverview = () => {
|
|
|
//获取报警数据
|
|
|
const alarmFault = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/alarm/fault`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -75,7 +75,7 @@ const alarmFault = () => {
|
|
|
//获取推荐风机信息
|
|
|
const recommendation = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/windturbine/recommendation`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -83,16 +83,16 @@ const recommendation = () => {
|
|
|
//登陆
|
|
|
const login = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/user/login`,
|
|
|
method: "post",
|
|
|
- data:data,
|
|
|
+ data: data,
|
|
|
});
|
|
|
};
|
|
|
//获取场站
|
|
|
const getStation = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/info`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -100,7 +100,7 @@ const getStation = () => {
|
|
|
//获取AGC场站
|
|
|
const getAGCStation = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/agc`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -108,15 +108,15 @@ const getAGCStation = () => {
|
|
|
//刷新报警信息
|
|
|
const getSnap = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_SHARDINGURL,
|
|
|
- url: `/alarm/snap/page?pagenum=${data.pagenum}&pagesize=${data.pagesize}&category1=${data.category1}&isopened=${data.isopened}&starttime=${data.starttime}&endtime=${data.endtime}&windturbineId=${data.windturbineId?data.windturbineId:''}`,
|
|
|
+ baseURL: process.env.VUE_APP_SHARDINGURL,
|
|
|
+ url: `/alarm/snap/page?pagenum=${data.pagenum}&pagesize=${data.pagesize}&category1=${data.category1}&isopened=${data.isopened}&starttime=${data.starttime}&endtime=${data.endtime}&windturbineId=${data.windturbineId ? data.windturbineId : ''}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
//数据刷新
|
|
|
const refreshData = (keys) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/latest?keys=${keys}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -124,124 +124,124 @@ const refreshData = (keys) => {
|
|
|
//风机控制
|
|
|
const windturbControl = (pairs) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/control/`,
|
|
|
method: "post",
|
|
|
- data:pairs
|
|
|
+ data: pairs
|
|
|
});
|
|
|
};
|
|
|
//风机控制
|
|
|
const windturbControlLock = (pairs) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/control/lock`,
|
|
|
method: "post",
|
|
|
- data:pairs
|
|
|
+ data: pairs
|
|
|
});
|
|
|
};
|
|
|
//获取风机详情页面数据
|
|
|
const nitWinturbineBaseData = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/latest?thingType=${data.thingType}&thingId=${data.thingId}&uniformCodes=${data.uniformCodes}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const getOverview = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/windturbine/overview`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const sendWarning = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/alarm/confirm?snapID=${data.snapID}&faultID=${data.faultID}&userName=${data.userName}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const sendRecommend = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `api/voice-control/addvoicetask`,
|
|
|
method: "post",
|
|
|
- data:data
|
|
|
+ data: data
|
|
|
});
|
|
|
};
|
|
|
const getPower = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/history/snap?tagName=${data.tagName}&startTs=${data.startTs}&endTs=${data.endTs}&interval=${data.interval}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const getOriginalPower = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/history/raw?tagName=${data.tagName}&startTs=${data.startTs}&endTs=${data.endTs}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const getWindturbinePower = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/history/snap?thingId=${data.thingId}&uniformCode=${data.uniformCode}&startTs=${data.startTs}&endTs=${data.endTs}&thingType=${data.thingType}&interval=${data.interval}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const getOriginalWindturbinePower = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/history/raw?thingId=${data.thingId}&uniformCode=${data.uniformCode}&startTs=${data.startTs}&endTs=${data.endTs}&thingType=${data.thingType}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
-const getWindWarning = (data,pageIndex,pageSize) => {
|
|
|
+const getWindWarning = (data, pageIndex, pageSize) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/alarm/real-time-alarm?objectId=${data}&pageIndex=${pageIndex}&pageSize=${pageSize}`,
|
|
|
method: "get"
|
|
|
});
|
|
|
};
|
|
|
-const getHealthDate=(stid,wtid)=>{
|
|
|
+const getHealthDate = (stid, wtid) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_WARNING,
|
|
|
- url:`/alarm/statistic?stId=${stid}&wtId=${wtid}`,
|
|
|
- method:"get"
|
|
|
+ baseURL: process.env.VUE_APP_WARNING,
|
|
|
+ url: `/alarm/statistic?stId=${stid}&wtId=${wtid}`,
|
|
|
+ method: "get"
|
|
|
})
|
|
|
}
|
|
|
-const getDetial=(data)=>{
|
|
|
+const getDetial = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
- url:`/api/windturbine/${data}`,
|
|
|
- method:"get"
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
+ url: `/api/windturbine/${data}`,
|
|
|
+ method: "get"
|
|
|
})
|
|
|
}
|
|
|
-const getWarning=(data,wtid,pt)=>{
|
|
|
+const getWarning = (data, wtid, pt) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_WARNING,
|
|
|
- url:`/alarm/list?stId=${data}&wtId=${wtid}&widget=${pt}`,
|
|
|
- method:"get"
|
|
|
+ baseURL: process.env.VUE_APP_WARNING,
|
|
|
+ url: `/alarm/list?stId=${data}&wtId=${wtid}&widget=${pt}`,
|
|
|
+ method: "get"
|
|
|
})
|
|
|
}
|
|
|
-const getCustomerLock=()=>{
|
|
|
+const getCustomerLock = () => {
|
|
|
return request({
|
|
|
baseURL: process.env.VUE_APP_API,
|
|
|
- url:`/api/windturbine/customer-lock`,
|
|
|
- method:"get"
|
|
|
+ url: `/api/windturbine/customer-lock`,
|
|
|
+ method: "get"
|
|
|
})
|
|
|
}
|
|
|
const controlRecord = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/control-record/search?stationId=${data.stationId}&userName=${data.userName}&windturbineId=${data.windturbineId}&startTime=${data.startTime}&endTime=${data.endTime}&pageSize=${data.pageSize}&pageIndex=${data.pageIndex}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const getLatest = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_ADAPTERURL,
|
|
|
+ baseURL: process.env.VUE_APP_ADAPTERURL,
|
|
|
url: `/ts/latest?keys=${data}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -249,14 +249,14 @@ const getLatest = (data) => {
|
|
|
//获取智能模式下场站
|
|
|
const getControlType = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/status`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const uodateControlType = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/status/update?stationid=${data.stationid}&type=${data.type}&userName=${data.userName}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -264,14 +264,14 @@ const uodateControlType = (data) => {
|
|
|
//获取UniformCodes数据
|
|
|
const getUniformCodes = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/windturbine/uniform-code`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const getBoostStation = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/boost-station`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -279,22 +279,22 @@ const getBoostStation = () => {
|
|
|
//获取风机code名称
|
|
|
const getWindturbineFdc = () => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/windturbine/fdc`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
const getWindturbineWarning = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_SHARDINGURL,
|
|
|
- url: `/alarm/history/page?pagenum=${data.pagenum}&pagesize=${data.pagesize}&windturbineid=${data.windturbineid?data.windturbineid:''}&starttime=${data.starttime}&endtime=${data.endtime}&keyword=${data.keyword?data.keyword:''}&stationid=${data.stationid?data.stationid:''}&category1=${data.category1?data.category1:''}`,
|
|
|
+ baseURL: process.env.VUE_APP_SHARDINGURL,
|
|
|
+ url: `/alarm/history/page?pagenum=${data.pagenum}&pagesize=${data.pagesize}&windturbineid=${data.windturbineid ? data.windturbineid : ''}&starttime=${data.starttime}&endtime=${data.endtime}&keyword=${data.keyword ? data.keyword : ''}&stationid=${data.stationid ? data.stationid : ''}&category1=${data.category1 ? data.category1 : ''}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
//获取报警历史数据
|
|
|
const getFaultHistory = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_SHARDINGURL,
|
|
|
+ baseURL: process.env.VUE_APP_SHARDINGURL,
|
|
|
url: `/fault/history/listpage?pagenum=${data.pageIndex}&pagesize=${data.pageSize}&stationid=${data.stationid}&keyword=${data.keyword}&starttime=${data.startTime}&endtime=${data.endTime}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -302,7 +302,7 @@ const getFaultHistory = (data) => {
|
|
|
|
|
|
const stationCompared = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/compared?models=${data}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -310,7 +310,7 @@ const stationCompared = (data) => {
|
|
|
//温度矩阵
|
|
|
const temperatureInfo = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/windturbine/temperature-info?id=${data.id}&status=${data.status}&pagenum=${data.pagenum}&pagesize=${data.pagesize}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -318,7 +318,7 @@ const temperatureInfo = (data) => {
|
|
|
//获取风机故障
|
|
|
const alarmSnap = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/alarm/alarm-snap?windturbineId=${data.windturbineId}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -327,7 +327,7 @@ const alarmSnap = (data) => {
|
|
|
//预警分析
|
|
|
const analysisDetail = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_WARNING,
|
|
|
+ baseURL: process.env.VUE_APP_WARNING,
|
|
|
url: `/analysis/detail?station=${data.station}&startTs=${data.startTs}&endTs=${data.endTs}&interval=${data.interval}&wtId=${data.wtId}&name=${data.name}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -335,7 +335,7 @@ const analysisDetail = (data) => {
|
|
|
//预警分析
|
|
|
const alarmCountQuery = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_WARNING,
|
|
|
+ baseURL: process.env.VUE_APP_WARNING,
|
|
|
url: `/alarm/count/query/new2?stationid=${data.stationid}&startdate=${data.startdate}&enddate=${data.enddate}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -343,7 +343,7 @@ const alarmCountQuery = (data) => {
|
|
|
//获取风场机型
|
|
|
const getStationModels = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/station/models?stationid=${data.stationid}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -351,7 +351,7 @@ const getStationModels = (data) => {
|
|
|
//获取设置查询
|
|
|
const getSettings = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/settings/recommendation?stationId=${data.stationId}&modelId=${data.modelId}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -359,16 +359,16 @@ const getSettings = (data) => {
|
|
|
//修改设置
|
|
|
const updateSettings = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/settings/recommendation`,
|
|
|
method: "post",
|
|
|
- data:data
|
|
|
+ data: data
|
|
|
});
|
|
|
};
|
|
|
//状态时间查询
|
|
|
const statusTime = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/windturbine/status-time?stationId=${data.stationid}&startTs=${data.startTs}&endTs=${data.endTs}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -377,7 +377,7 @@ const statusTime = (data) => {
|
|
|
//推荐记录查询
|
|
|
const recommended = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `control-record/recommended?pagesize=${data.pagesize}&pagenum=${data.pagenum}&stationid=${data.stationid}&windturbineid=${data.windturbineid}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -386,7 +386,7 @@ const recommended = (data) => {
|
|
|
//状态变化查询
|
|
|
const statusChange = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/windturbine/status?startTs=${data.startTs}&endTs=${data.endTs}&pagesize=${data.pagesize}&pagenum=${data.pagenum}&windturbineId=${data.windturbineid}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -395,7 +395,7 @@ const statusChange = (data) => {
|
|
|
//恢复默认设置
|
|
|
const returnSetting = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_API,
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
url: `/api/settings/recommendation/recover?stationId=${data.stationId}&modelId=${data.modelId}`,
|
|
|
method: "get",
|
|
|
});
|
|
@@ -422,11 +422,20 @@ const costumeSetting = (data) => {
|
|
|
//刷新报警信息
|
|
|
const getAlarmSnap = (data) => {
|
|
|
return request({
|
|
|
- baseURL:process.env.VUE_APP_SHARDINGURL,
|
|
|
+ baseURL: process.env.VUE_APP_SHARDINGURL,
|
|
|
url: `/alarm/snap?stationid=${data.stationid}&category1=${data.category1}&windturbineid=${data.windturbineid}&isopened=${data.isopened}`,
|
|
|
method: "get",
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+//刷新报警信息
|
|
|
+const getEvaluationData = (id) => {
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_API,
|
|
|
+ url: `/control-record/evaluation?id=${id || ""}`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
+};
|
|
|
export default {
|
|
|
login,
|
|
|
getStation,
|
|
@@ -482,4 +491,5 @@ export default {
|
|
|
statusChange,
|
|
|
returnSetting,
|
|
|
getAlarmSnap,
|
|
|
+ getEvaluationData
|
|
|
};
|