From a7892d2ab77735063408c24be9bddfba01740e1d Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期四, 31 十月 2024 14:46:26 +0800
Subject: [PATCH] 时序图模板修改

---
 web/src/views/modules/baseReliability/ParamDataBasic.vue |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/web/src/views/modules/baseReliability/ParamDataBasic.vue b/web/src/views/modules/baseReliability/ParamDataBasic.vue
index 3de24d4..5b497be 100644
--- a/web/src/views/modules/baseReliability/ParamDataBasic.vue
+++ b/web/src/views/modules/baseReliability/ParamDataBasic.vue
@@ -29,6 +29,7 @@
                       border @selection-change="table.selectionChangeHandle">
               <!--<el-table-column type="selection" width="40"/>-->
               <el-table-column prop="name" label="鍚嶇О"/>
+              <el-table-column prop="basicUnitNum" label="鍗曞厓鏁伴噺"/>
               <el-table-column prop="basicMtbfRegulate" label="MTBF" align="right">
                 <template slot-scope="scope">
                   <span>{{  keepNumber(scope.row.basicMtbfRegulate) }}</span>
@@ -37,6 +38,16 @@
               <el-table-column prop="repairMttcr" label="MTTR" align="right">
                 <template slot-scope="scope">
                   <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">
@@ -68,7 +79,9 @@
           basicMtbfRegulate: '',
           repairMttcr: '',
           basicMtbfOperatingRatio: '',
-          ai: ''
+          ai: '',
+          basicMtbfRegulSuccRate:'',
+          basicRunsNum:''
         },
         defultKey: []
       }
@@ -79,14 +92,17 @@
     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;
         }
       },
     },
     mounted() {
       this.$refs.modelTree.getProductList()
-      console.log(this.pageCode, 'this.pageCode this.pageCode')
     },
     methods: {
       onProductSelected(data) {

--
Gitblit v1.9.1