From a86c2eb2db34d2d350e5c2eb72bf6416ec89c0d2 Mon Sep 17 00:00:00 2001 From: xyc <jc_xiong@hotmail.com> Date: 星期二, 19 十一月 2024 11:43:03 +0800 Subject: [PATCH] 1)可靠性评定时新增模型检查处理; 2)获取任务二项分布参数时,去掉模型的匹配。 --- web/src/views/modules/baseReliability/ParamDataBasic.vue | 31 ++++++++++++++++++++++++------- 1 files changed, 24 insertions(+), 7 deletions(-) diff --git a/web/src/views/modules/baseReliability/ParamDataBasic.vue b/web/src/views/modules/baseReliability/ParamDataBasic.vue index 11869d5..3039eac 100644 --- a/web/src/views/modules/baseReliability/ParamDataBasic.vue +++ b/web/src/views/modules/baseReliability/ParamDataBasic.vue @@ -29,22 +29,33 @@ border @selection-change="table.selectionChangeHandle"> <!--<el-table-column type="selection" width="40"/>--> <el-table-column prop="name" label="鍚嶇О"/> - <el-table-column prop="basicMtbfRegulate" label="MTBF" align="right"> + <el-table-column prop="basicUnitNum" label="鍗曞厓鏁伴噺" align="center" width="100"/> + <el-table-column prop="basicMtbfRegulate" label="MTBF" align="right" width="120"> <template slot-scope="scope"> <span>{{ keepNumber(scope.row.basicMtbfRegulate) }}</span> </template> </el-table-column> - <el-table-column prop="repairMttcr" label="MTTR" align="right"> + <el-table-column prop="repairMttcr" label="MTTR" align="right" width="120"> <template slot-scope="scope"> <span>{{ keepNumber(scope.row.repairMttcr) }}</span> </template> </el-table-column> - <el-table-column prop="basicMtbfOperatingRatio" label="杩愯姣�" align="right"> + <el-table-column prop="basicMtbfRegulSuccRate" label="鎴愬姛鐜�" align="right" width="100"> + <template slot-scope="scope"> + <span>{{keepNumber(scope.row.basicMtbfRegulSuccRate) }}</span> + </template> + </el-table-column> + <el-table-column prop="basicRunsNum" label="杩愯娆℃暟" align="right" width="100"> + <template slot-scope="scope"> + <span>{{scope.row.basicRunsNum}}</span> + </template> + </el-table-column> + <el-table-column prop="basicMtbfOperatingRatio" label="杩愯姣�" align="right" width="100"> <template slot-scope="scope"> <span>{{keepNumber(scope.row.basicMtbfOperatingRatio) }}</span> </template> </el-table-column> - <el-table-column prop="ai" label="鍙敤搴�" align="right"> + <el-table-column prop="ai" label="鍙敤搴�" align="right" width="100"> <template slot-scope="scope"> <span>{{keepNumber(scope.row.ai)}}</span> </template> @@ -68,7 +79,9 @@ basicMtbfRegulate: '', repairMttcr: '', basicMtbfOperatingRatio: '', - ai: '' + ai: '', + basicMtbfRegulSuccRate:'', + basicRunsNum:'' }, defultKey: [] } @@ -79,8 +92,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