lining 3 年之前
父節點
當前提交
036638a94e

+ 2 - 1
package.json

@@ -7,7 +7,8 @@
     "servebig": "node --max-old-space-size=6000  ./node_modules/@vue/cli-service/bin/vue-cli-service.js serve",
     "build": "vue-cli-service build",
     "test:unit": "vue-cli-service test:unit",
-    "lint": "vue-cli-service lint"
+    "lint": "vue-cli-service lint",
+    "fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit"
   },
   "dependencies": {
     "@antv/x6": "^1.24.4",

+ 28 - 21
src/views/MalfunctionWarning/components/testReport.vue

@@ -83,20 +83,30 @@
           </div>
           <div class="charts">
             <BarChart
-            v-if="barList.length > 0"
-            id="reportBar"
-            :barList="barList"
-          ></BarChart>
-          <LineChart v-if="lossList" id="reporLoss" :reportFlag="true" :dataList="lossList"></LineChart>
-          <LineChart
-            v-if="accuracyList"
-            id="reporAccuracy"
-            :reportFlag="true"
-            :dataList="accuracyList"
-          ></LineChart>
+              v-if="barList.length > 0"
+              id="reportBar"
+              :barList="barList"
+            ></BarChart>
+            <LineChart
+              v-if="lossList"
+              id="reporLoss"
+              :reportFlag="true"
+              :dataList="lossList"
+            ></LineChart>
+            <LineChart
+              v-if="accuracyList"
+              id="reporAccuracy"
+              :reportFlag="true"
+              :dataList="accuracyList"
+            ></LineChart>
           </div>
           <div class="resultContent">
-            该模型训练和测试的准确率分别为<text style="color: #dc143c">74.2%和73.3%</text>;误差率分别为<text style="color: #dc143c">2%和1%</text>;该模型训练所倚重的测点比重分别为:<text style="color: #dc143c">偏航位置7.2%、发电机转速4.4%、有功功率3.4%、U1项绕组电流2.9%、齿轮箱轴2温度2.1%</text>。模型训练过程所有测点倚重占比如下表所示:
+            该模型训练和测试的准确率分别为<text style="color: #dc143c"
+              >74.2%和73.3%</text
+            >;误差率分别为<text style="color: #dc143c">2%和1%</text
+            >;该模型训练所倚重的测点比重分别为:<text style="color: #dc143c"
+              >偏航位置7.2%、发电机转速4.4%、有功功率3.4%、U1项绕组电流2.9%、齿轮箱轴2温度2.1%</text
+            >。模型训练过程所有测点倚重占比如下表所示:
           </div>
           <div class="resultTable">
             <el-table
@@ -154,8 +164,8 @@ export default {
   data() {
     return {
       barList: [],
-      lossList:{},
-      accuracyList:{},
+      lossList: {},
+      accuracyList: {},
       faultList: [
         {
           name: "齿轮箱故障",
@@ -167,10 +177,10 @@ export default {
         },
         {
           name: "变桨系统故障",
-          percent: "13%",
+          percent: "3%",
         },
       ],
-      proportionList:[
+      proportionList: [
         {
           name: "偏航位置",
           percent: "7.2%",
@@ -205,10 +215,7 @@ export default {
         type: "success",
         msg: "正在导出...请稍后...",
       });
-      Get_PDF.downloadPDF(
-        document.querySelector(".pdfDom"),
-        "故障检测报告"
-      );
+      Get_PDF.downloadPDF(document.querySelector(".pdfDom"), "故障检测报告");
     },
   },
 };
@@ -262,7 +269,7 @@ export default {
         margin-left: 30%;
       }
 
-      .charts{
+      .charts {
         display: flex;
         flex-direction: row;
         align-items: center;

+ 12 - 12
src/views/MalfunctionWarning/supervised.vue

@@ -196,18 +196,18 @@ export default {
     ChartDetails,
     DetectionRecord,
   },
-  // created() {
-  //   if (this.timeValue.length === 0) {
-  //     let date = new Date();
-  //     this.timeValue[0] = date.getTime() - 86400000;
-  //     this.timeValue[1] = date.getTime();
-  //   }
-  //   let select = this.options.filter(
-  //     (item) => item.value === this.selectValue
-  //   )[0];
-  //   this.selectMoudle = select.station[0].lable;
-  //   this.moudleList = select.station;
-  // },
+  created() {
+    if (this.timeValue.length === 0) {
+      let date = new Date();
+      this.timeValue[0] = date.getTime() - 86400000;
+      this.timeValue[1] = date.getTime();
+    }
+    let select = this.options.filter(
+      (item) => item.value === this.selectValue
+    )[0];
+    this.selectMoudle = select.station[0].lable;
+    this.moudleList = select.station;
+  },
   data() {
     return {
       dataList: [],

+ 0 - 5
src/views/layout/Menu.vue

@@ -560,11 +560,6 @@ export default {
                   icon: "svg-wind-site",
                   path: "/health/MalfunctionWarning/Supervised",
                 },
-                {
-                  text: "性能预警综合分析",
-                  icon: "svg-matrix",
-                  path: "/others/analysis",
-                },
               ],
             },
           ],

+ 1 - 1
src/views/sampleDatabase/analysis/index.vue

@@ -108,7 +108,7 @@
           <el-col :span="9">
             <div class="charts" v-if="warningTimeList.length > 0">
               <div class="titles">预警饼状图</div>
-              <PieCharts id="pie" width="90%" height="70vh" :warningTimeList="warningTimeList"></PieCharts>
+              <PieCharts id="pie" width="100%" height="70vh" :warningTimeList="warningTimeList"></PieCharts>
             </div>
           </el-col>
         </el-row>