Browse Source

样本库文件目录调整

chenminghua 2 years ago
parent
commit
64f2b022d7

+ 9 - 9
src/router/index.js

@@ -509,11 +509,6 @@ const routes = [{
 	component: () => import( /* webpackChunkName: "powerCurve" */ "../views/powerCurve/index.vue"),
 },
 {
-	path: "/others/totalCurve", // 功率曲线拟合
-	name: "totalCurve",
-	component: () => import( /* webpackChunkName: "powerCurve" */ "../views/totalCurve/index.vue"),
-},
-{
 	path: "/health/nxfx/phdffx", // 偏航对风分析
 	name: "phdffx",
 	component: () => import( /* webpackChunkName: "malfunctionStatistics" */ "../views/windAnalysis/phdffx.vue"),
@@ -609,10 +604,9 @@ const routes = [{
 	name: "globalMonitor",
 	component: () =>
 		import( /* webpackChunkName: "globalMonitor" */ "../views/Others/index.vue"),
-}
-	/***********************************************************安全管控************************************************************* */
-
-	, {
+}, 
+/***********************************************************安全管控************************************************************* */
+{
 	path: '/others', // 其他
 	name: 'others',
 	component: () =>
@@ -849,6 +843,12 @@ const routes = [{
 },
 //样本库功率曲线分析
 {
+	path: "/others/totalCurve", 
+	name: "totalCurve",
+	component: () => import("../views/sampleDatabase/totalCurve/index.vue"),
+},
+//样本库性能预警分析
+{
 	path: "/others/powerline/analysis",
 	name: "powerlineAnalysis",
 	component: () => import("../views/sampleDatabase/powerlineAnalysis/index.vue")

+ 6 - 6
src/views/layout/Menu.vue

@@ -1008,21 +1008,21 @@ export default {
                   path: "/others/performance",
                 },
                 {
-                  text: "功率曲线拟合",
+                  text: "功率曲线拟合分析",
                   icon: "svg-matrix",
                   path: "/others/totalCurve",
                 },
-                 {
-                  text: "天气预测数据",
-                  icon: "svg-matrix",
-                  path: "/others/weatherPrognosis",
-                },
                 {
                   text: "性能预警综合分析",
                   icon: "svg-matrix",
                   path: "/others/analysis",
                 },
                 {
+                  text: "天气预测数据",
+                  icon: "svg-matrix",
+                  path: "/others/weatherPrognosis",
+                },
+                {
                   text: "风机检修规则",
                   icon: "svg-matrix",
                   path: "/others/overhaulRule",

+ 2 - 5
src/views/sampleDatabase/fault/index.vue

@@ -583,10 +583,7 @@ export default {
       await that.API.requestData({
         method: "GET",
         baseURL: "http://192.168.1.18:9002/",
-        subUrl: "basic/category",
-        data: {
-          category: 'GZ'
-        },
+        subUrl: "/know/fault/type/all",
         success(res) {
           let widgetArr = [],
             widget = [];
@@ -595,7 +592,7 @@ export default {
               label: ele.name,
               value: ele.code,
             });
-            widget.push(ele.faultcode);
+            widget.push(ele.code);
           });
           that.widget = widget;
           that.widgetArr = widgetArr;

+ 6 - 8
src/views/totalCurve/chart.vue

@@ -161,7 +161,7 @@
 </template>
 
 <script>
-import CurrentScatterChart from "../../components/chart/scatter/current-scatter-chart.vue";
+import CurrentScatterChart from "../../../components/chart/scatter/current-scatter-chart.vue";
 import axios from "axios";
 export default {
   components: {
@@ -195,15 +195,15 @@ export default {
       const that = this;
       that.API.requestData({
         method: "POST",
-        baseURL: "http://192.168.10.5:9002/",
+        baseURL: "http://192.168.1.18:9002/",
         subUrl: "powercurve/lasso",
         data: {
-          station: "NSS_FDC",
-          wtid: "NG01_70",
+          station: that.station,
+          wtid: that.wtId,
           time: that.lassoTimeArray.toString(),
         },
         success(res) {
-          let lassoTable = res.data.data;
+          let lassoTable = res.data;
           lassoTable.forEach((pEle) => {
             if (pEle.children?.length) {
               pEle.sortNum = pEle.children.length;
@@ -339,11 +339,9 @@ export default {
             sjgl.push(ele[1]);
             xAxisData.push(index);
           });
-
           res.data.lineoptimal.forEach((ele) => {
             zygl.push(ele[1]);
           });
-
           res.data.scatter.forEach((ele) => {
             if (ele[1] >= 0) fsgl.push(ele);
           });
@@ -456,7 +454,7 @@ export default {
 
           axios({
             method: "post",
-            url: "http://192.168.10.5:9002/case/warning/insert",
+            url: "http://192.168.1.18:9002/case/warning/insert",
             data: lassoData,
             header: {
               "Content-Type": "application/json",

src/views/totalCurve/dataDispose.vue → src/views/sampleDatabase/totalCurve/dataDispose.vue


src/views/totalCurve/index.vue → src/views/sampleDatabase/totalCurve/index.vue