jinlin
2024-10-22 26ebef24f023a80f5be5ff27c93585f70688f6ee
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,14 +91,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) {