浏览代码

Merge branch 'mw' of http://124.70.43.205:3000/yangxiao/sis_zhfx

Koishi 3 年之前
父节点
当前提交
ec8272d287
共有 1 个文件被更改,包括 10 次插入3 次删除
  1. 10 3
      src/views/MalfunctionWarning/components/superviseDataClassify.vue

+ 10 - 3
src/views/MalfunctionWarning/components/superviseDataClassify.vue

@@ -338,12 +338,18 @@ export default {
       let dataInfos = []
       let dataParams = []
       this.trainingList.forEach((item) => {
+		  let model = '';
+		  if(item.model === 'UP82' && item.stationen === "SBQ_FDC"){
+			  model = 'UP82_2'
+		  }else{
+			  model = item.model;
+		  }
         let datas = {};
         datas.startTs =
           new Date(item.starttime).getTime() - this.intervalValue * 3600000;
         datas.endTs = new Date(item.starttime).getTime();
         datas.thingId = item.windturbineid;
-        datas.modelId = item.model;
+        datas.modelId = model;
         datas.stationId = item.stationen;
         datas.id = item.faultid;
         datas.faultTime = new Date(item.starttime).getTime();
@@ -359,10 +365,11 @@ export default {
       }
       params.algorithm = algorithm
       params.dataInfos = dataInfos
+	  
       axios({
         method: "post",
-        // url: "http://10.155.32.14:9090/api/supervised/execute",
-		url: "http://192.168.10.16:8080/api/supervised/execute",
+        url: "http://10.155.32.14:9090/api/supervised/execute",
+		// url: "http://192.168.10.21:8080/api/supervised/execute",
         data: params,
         header: {
           "Content-Type": "application/json",