| | |
| | | <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> |
| | |
| | | basicMtbfRegulate: '', |
| | | repairMttcr: '', |
| | | basicMtbfOperatingRatio: '', |
| | | ai: '' |
| | | ai: '', |
| | | basicMtbfRegulSuccRate:'', |
| | | basicRunsNum:'' |
| | | }, |
| | | defultKey: [] |
| | | } |
| | |
| | | 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) { |