Parcourir la source

无监督学习【未完成,弹窗 模型训练和测试的准确率】

wangmengwei@gyee-china.com il y a 3 ans
Parent
commit
f6ba175009

+ 3 - 2
src/views/MalfunctionWarning/components/detectionRecord.vue

@@ -30,7 +30,8 @@
 				</el-table-column>
 			</el-table>
 		</div>
-		<TestReport v-model="reportDisplay" :faultid='faultid'></TestReport>
+		<TestReport v-model="reportDisplay" :faultid='faultid' 
+	  ></TestReport>
 	</el-dialog>
 </template>
 <script>
@@ -41,7 +42,7 @@
 			TestReport,
 		},
 		props: {
-			myData: {}
+			myData: {},
 		},
 		data() {
 			return {

+ 13 - 5
src/views/MalfunctionWarning/components/lineChart.vue

@@ -1,10 +1,18 @@
 <template>
-  <div class="precisionEcharts" :id="id"></div>
+  <div class="precisionEcharts" :id="id" :style="{width:width,height:height}"></div>
 </template>
 <script>
 import * as echarts from "echarts";
 export default {
   props: {
+	  width: {
+	    type: String,
+	    default: "600px",
+	  },
+	  height: {
+	    type: String,
+	    default: "250px",
+	  },
     dataList: {
       type: String,
       required: true,
@@ -92,8 +100,8 @@ export default {
 };
 </script>
 <style lang="less" scoped>
-.precisionEcharts {
-  width: 600px;
-  height: 250px;
-}
+// .precisionEcharts {
+//   width: 600px;
+//   height: 250px;
+// }
 </style>

+ 6 - 7
src/views/MalfunctionWarning/components/records.vue

@@ -92,7 +92,7 @@
   </el-dialog>
 </template>
 <script>
-import BarChart from ".//barChart.vue";
+import BarChart from "./barChart.vue";
 import LineChart from "./lineChart.vue";
 import ChartDetails from "./chartDetails.vue";
 import * as echarts from "echarts";
@@ -253,7 +253,7 @@ export default {
             res.forEach((item) => {
               let arr = item.name.split("-");
               item.coordinate = JSON.parse(item.coordinate);
-              item.showName = arr[0];
+              item.showName = arr[0]+' - '+arr[1]+' - '+arr[2];
               item.showTime = new Date(Number(arr[1])).formatDate(
                 "yyyy-MM-dd hh:mm:ss"
               );
@@ -268,22 +268,21 @@ export default {
       let that = this;
       this.API.requestData({
         method: "GET",
-        baseURL: "http://192.168.10.18:8080/",
+        baseURL: "http://10.155.32.14:9090/",
         subUrl: "api/supervised/history",
         success(res) {
           if (res) {
             res.forEach((item) => {
               let arr = item.name.split("-");
               item.coordinate = JSON.parse(item.coordinate);
-              item.showName = arr[2];
+              item.showName = arr[0]+' - '+arr[1]+' - '+arr[2];
               item.showTime = new Date(Number(arr[3])).formatDate(
                 "yyyy-MM-dd hh:mm:ss"
               );
               item.coordinate.bar = JSON.parse(item.coordinate.bar);
             });
             that.accuracyList.accuracy = res[that.current]?.coordinate.accuracy;
-            that.accuracyList.val_accuracy =
-              res[that.current]?.coordinate.val_accuracy;
+            that.accuracyList.val_accuracy = res[that.current]?.coordinate.val_accuracy;
             res[that.current]?.coordinate.bar?.sort(that.Compare("value"));
             that.barList = res[that.current]?.coordinate.bar?.slice(0, 5);
             that.recordList = res;
@@ -365,7 +364,7 @@ export default {
       let that = this;
       this.API.requestData({
         method: "GET",
-        baseURL: "http://192.168.10.18:8080/",
+        baseURL: "http://10.155.32.14:9090/",
         subUrl: "api/coordinate/history/remove/",
         data: {
           names: val,

+ 1 - 0
src/views/MalfunctionWarning/components/superviseDataClassify.vue

@@ -362,6 +362,7 @@ export default {
       axios({
         method: "post",
         url: "http://10.155.32.14:9090/api/supervised/execute",
+		// url: "http://192.168.10.16:8080/api/supervised/execute",
         data: params,
         header: {
           "Content-Type": "application/json",

Fichier diff supprimé car celui-ci est trop grand
+ 110 - 50
src/views/MalfunctionWarning/components/testReport.vue


Fichier diff supprimé car celui-ci est trop grand
+ 555 - 605
src/views/MalfunctionWarning/supervised.vue


+ 2 - 2
src/views/specific/ztfx.vue

@@ -1806,7 +1806,7 @@ export default {
         },
       });
     },
-    getMonthList(showLoading) {
+    async getMonthList(showLoading) {
       let _this = this;
       let months = "";
       if (typeof this.monthValue === "string") {
@@ -1814,7 +1814,7 @@ export default {
       } else {
         months = this.monthChange(this.monthValue);
       }
-      _this.API.requestData({
+      await _this.API.requestData({
         showLoading,
         method: "GET",
         baseURL: "http://10.155.32.4:8034",