| | |
| | | <template> |
| | | <div> |
| | | <el-row :gutter="5"> |
| | | <el-col :span="5"> |
| | | <el-col :span="4"> |
| | | <div class="fa-card-a" style="margin-right: 5px;height: calc(100vh - 123px)"> |
| | | <product-model-tree @on-selected="onProductSelected" showXdy="false" :isShow="false"/> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="19"> |
| | | <el-col :span="20"> |
| | | <div class="mod-basicInfo-paramData fa-card-a" style="margin-left: 5px;"> |
| | | <zt-table-wraper ref="tableObj" defaultNotQuery="true" query-url="/basicInfo/ParamData/page" |
| | | delete-url="/basicInfo/ParamData/" |
| | |
| | | :typeColor="typeColor" :size="size" :effect="effect" :hit="hit"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="basicMtbfRegulate" :key="7" label="MTBF" align="right" width="100"> |
| | | <el-table-column prop="basicMtbfRegulate" :key="7" label="MTBF" align="right" width="110"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-if="scope.row.isEdit" v-model="scope.row.basicMtbfRegulate"></el-input> |
| | | <span v-else v-text="scope.row.basicMtbfRegulate"></span> |
| | | <span v-else >{{scope.row.basicMtbfRegulate | keepNumber}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <!--<el-table-column prop="basicMtbfAccept" :key="8" label="可接受的MTBF" width="100"> |
| | |
| | | |
| | | <el-table-column v-if="dataForm.productType==='3'||dataForm.productType==='4'" :key="15" |
| | | label="任务可靠性计算"> |
| | | <el-table-column prop="taskMtbcfRegulate" :key="16" label="MTBCF" width="100" align="right"> |
| | | <el-table-column prop="taskMtbcfRegulate" :key="16" label="MTBCF" width="110" align="right"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-if="scope.row.isEdit" v-model="scope.row.taskMtbcfRegulate"></el-input> |
| | | <span v-else v-text="scope.row.taskMtbcfRegulate"></span> |
| | | <span v-else>{{scope.row.taskMtbcfRegulate | keepNumber}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <!--<el-table-column prop="taskMtbcfAccept" :key="17" label="可接受的MTBCF" width="100"> |
| | |
| | | <el-table-column prop="repairMttcr" label="MTTCR" :key="25" width="100" align="right"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-if="scope.row.isEdit" v-model="scope.row.repairMttcr"></el-input> |
| | | <span v-else v-text="scope.row.repairMttcr"></span> |
| | | <span v-else >{{scope.row.repairMttcr | keepNumber}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="repairMttcrOtherParams2" :key="26" label="MTTCR其他参数2" align="right"> |
| | |
| | | originalData: null, // 记录修改前的数据 |
| | | } |
| | | }, |
| | | filters: { |
| | | keepNumber(value) { //过滤器保留4为小数 |
| | | const numM = Number(value).toFixed(5); |
| | | if (numM === "NaN") { |
| | | return "0.0000"; |
| | | } |
| | | const realVal = numM.substring(0, numM.length - 1); |
| | | return realVal; |
| | | }, |
| | | }, |
| | | // 在组件中定义 beforeRouteLeave 导航守卫 |
| | | beforeRouteLeave(to, from, next) { |
| | | console.log(this.$store.state.contentTabs, 'this.$store.state.contentTabsActiveName') |