From 6bae24b32e3196f5e01d4a9fed62a4e51528b809 Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期一, 19 八月 2024 08:58:28 +0800
Subject: [PATCH] 修改

---
 web/src/views/modules/taskReliability/SimulatCurve.vue |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/web/src/views/modules/taskReliability/SimulatCurve.vue b/web/src/views/modules/taskReliability/SimulatCurve.vue
index 128cc91..1ca6d67 100644
--- a/web/src/views/modules/taskReliability/SimulatCurve.vue
+++ b/web/src/views/modules/taskReliability/SimulatCurve.vue
@@ -15,14 +15,16 @@
         yDataList: [],
         mttr: '',
         mtbf: '',
+        msr: '',
         myChart: {},
-        myChartStyle: {float: "left", width: "100%", height: "600px"}, //鍥捐〃鏍峰紡
+        myChartStyle: {float: "left", width: "100%", height: "680px"}, //鍥捐〃鏍峰紡
         option: {}
       }
     },
     components: {},
     methods: {
       async initEcharts(Param) {
+        console.log(Param)
         let res = await this.$http.post(`/taskReliability/SimulatAssess/getResultXML`, Param)
         console.log(res.data)
         if (res.data) {
@@ -30,23 +32,24 @@
           this.xDataList = res.data.curveParam.xdata
           this.mttr = res.data.mttr.toFixed(4)
           this.mtbf = res.data.mtbf.toFixed(4)
+          this.msr = res.data.msr.toFixed(4)
         }
         this.option = {
           title: {
-            text: "mttr:" + this.mttr + "    mtbf:" + this.mtbf,
+            text: "mtbf:" + this.mtbf + "    mttr:" + this.mttr + "    msr:" + this.msr,
             textStyle: { // 涓绘爣棰樻枃鏈牱寮弡"fontSize": 18,"fontWeight": "bolder","color": "#333"}
               fontFamily: 'Arial',
               fontSize: 30,
               fontStyle: 'normal',
               fontWeight: 'normal',
             },
-            textAlign:'auto',//鏁翠綋锛堝寘鎷� text 鍜� subtext锛夌殑姘村钩瀵归綈
-            textVerticalAlign:'auto',//鏁翠綋锛堝寘鎷� text 鍜� subtext锛夌殑鍨傜洿瀵归綈
-            padding:0,//[5,10] | [ 5,6, 7, 8] ,鏍囬鍐呰竟璺�
-            left:'center',//'5' | '5%'锛宼itle 缁勪欢绂诲鍣ㄥ乏渚х殑璺濈
-            right:'auto',//'title 缁勪欢绂诲鍣ㄥ彸渚х殑璺濈
-            top:'auto',//title 缁勪欢绂诲鍣ㄤ笂渚х殑璺濈
-            bottom:'auto',//title 缁勪欢绂诲鍣ㄤ笅渚х殑璺濈
+            textAlign: 'auto',//鏁翠綋锛堝寘鎷� text 鍜� subtext锛夌殑姘村钩瀵归綈
+            textVerticalAlign: 'auto',//鏁翠綋锛堝寘鎷� text 鍜� subtext锛夌殑鍨傜洿瀵归綈
+            padding: 0,//[5,10] | [ 5,6, 7, 8] ,鏍囬鍐呰竟璺�
+            left: 'center',//'5' | '5%'锛宼itle 缁勪欢绂诲鍣ㄥ乏渚х殑璺濈
+            right: 'auto',//'title 缁勪欢绂诲鍣ㄥ彸渚х殑璺濈
+            top: '20',//title 缁勪欢绂诲鍣ㄤ笂渚х殑璺濈
+            bottom: 'auto',//title 缁勪欢绂诲鍣ㄤ笅渚х殑璺濈
           },
           xAxis: {
             data: this.xDataList,
@@ -80,10 +83,11 @@
           this.xDataList = res.data.curveParam.xdata
           this.mttr = res.data.mttr.toFixed(4)
           this.mtbf = res.data.mtbf.toFixed(4)
+          this.msr = res.data.msr.toFixed(4)
         }
         this.option = {
           title: {
-            text: "mttr:" + this.mttr + "    mtbf:" + this.mtbf,
+            text: "mtbf:" + this.mtbf + "    mttr:" + this.mttr + "    msr:" + this.msr,
             textStyle: { // 涓绘爣棰樻枃鏈牱寮弡"fontSize": 18,"fontWeight": "bolder","color": "#333"}
               fontFamily: 'Arial',
               fontSize: 30,

--
Gitblit v1.9.1