From 5cea5dff7f0d73c1b172252936b393fb390ab669 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期六, 12 十月 2024 09:31:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 web/src/views/modules/baseReliability/ParamDataBasic.vue |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/web/src/views/modules/baseReliability/ParamDataBasic.vue b/web/src/views/modules/baseReliability/ParamDataBasic.vue
index 11869d5..81726fd 100644
--- a/web/src/views/modules/baseReliability/ParamDataBasic.vue
+++ b/web/src/views/modules/baseReliability/ParamDataBasic.vue
@@ -39,6 +39,16 @@
                   <span>{{  keepNumber(scope.row.repairMttcr) }}</span>
                 </template>
               </el-table-column>
+              <el-table-column prop="basicMtbfRegulSuccRate" label="鎴愬姛鐜�" align="right">
+                <template slot-scope="scope">
+                  <span>{{keepNumber(scope.row.basicMtbfRegulSuccRate) }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column prop="basicRunsNum" label="杩愯娆℃暟" align="right">
+                <template slot-scope="scope">
+                  <span>{{scope.row.basicRunsNum}}</span>
+                </template>
+              </el-table-column>
               <el-table-column prop="basicMtbfOperatingRatio" label="杩愯姣�" align="right">
                 <template slot-scope="scope">
                   <span>{{keepNumber(scope.row.basicMtbfOperatingRatio) }}</span>
@@ -68,7 +78,9 @@
           basicMtbfRegulate: '',
           repairMttcr: '',
           basicMtbfOperatingRatio: '',
-          ai: ''
+          ai: '',
+          basicMtbfRegulSuccRate:'',
+          basicRunsNum:''
         },
         defultKey: []
       }
@@ -79,8 +91,12 @@
     computed: {
       keepNumber() { //杩囨护鍣ㄤ繚鐣�4涓哄皬鏁�
         return function (val) {		// 瀵硅绠楀睘鎬ц繘琛屼紶鍙�
-          const numM = Number(val).toFixed(5);
-          return numM.substring(0, numM.length - 1);
+          let numM = 0.0
+          if (val){
+            numM = Number(val).toFixed(4);
+            numM.substring(0, numM.length - 1)
+          }
+          return numM;
         }
       },
     },

--
Gitblit v1.9.1