| | |
| | | <el-table ref="table" :data="tjDataList" height="230px" border> |
| | | <el-table-column align="center" prop="tjlx" label="查询类型"> |
| | | </el-table-column> |
| | | <el-table-column align="center" prop="specifiedValue" label="已知规定值"> |
| | | <el-table-column align="center" prop="specifiedValue" label="检验上限"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.specifiedValue" style="width:100%" :disabled="row.tjlx==='不限定规定值查询'"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" prop="minAccepValue" label="最低可接受值"> |
| | | <el-table-column align="center" prop="minAccepValue" label="检验下限"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.minAccepValue" style="width:100%"></el-input> |
| | | </template> |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" width="100" label="操作"> |
| | | <template v-slot="{ row }"> |
| | | <el-button type="primary" @click="check(row)">查询</el-button> |
| | | <el-button type="primary" @click="check(row)">{{row.btnName}}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" prop="totalTestTime" label="总试验时间(h)"> |
| | | </el-table-column> |
| | | <el-table-column v-if="isShow" align="center" prop="number" label="规定值"> |
| | | <el-table-column v-if="isShow" align="center" prop="specifiedValue" label="检验上限"> |
| | | </el-table-column> |
| | | <el-table-column align="center" prop="productionRiskReal" label="生产方风险实际值(%)"> |
| | | </el-table-column> |
| | |
| | | isShow: false, |
| | | tjDataList: [{ |
| | | tjlx: '按风险名义值查询', |
| | | btnName: '查询一', |
| | | specifiedValue: null, |
| | | minAccepValue: null, |
| | | productionRisk: null, |
| | |
| | | }, |
| | | { |
| | | tjlx: '不限定生产方风险查询', |
| | | btnName: '查询二', |
| | | specifiedValue: null, |
| | | minAccepValue: null, |
| | | productionRisk: null, |
| | | userRisk: null, |
| | | showFailureTime: null |
| | | showFailureTime: 10 |
| | | }, |
| | | { |
| | | tjlx: '不限定规定值查询', |
| | | btnName: '查询三', |
| | | specifiedValue: null, |
| | | minAccepValue: null, |
| | | productionRisk: null, |
| | | userRisk: null, |
| | | showFailureTime: null |
| | | showFailureTime: 10 |
| | | } |
| | | ], |
| | | riskList: [ |
| | |
| | | this.dataList = res.data |
| | | if (row.tjlx === "不限定规定值查询") { |
| | | this.isShow = true |
| | | }else{ |
| | | this.isShow = false |
| | | } |
| | | } |
| | | } |