| | |
| | | <div> |
| | | <table border="1" cellpadding="10" class="thermal-table" style="margin-bottom: 20px;"> |
| | | <tr> |
| | | <td style="font-size: 18px;font-weight: 500;background-color: #F0F1F5;padding: 10px 0;box-sizing: border-box;" colspan="6">{{ currentInfo.inspectionItemSubclass }}</td> |
| | | <td style="font-size: 18px;font-weight: 500;background-color: #F0F1F5;padding: 10px 0;box-sizing: border-box;" |
| | | colspan="6">{{ currentInfo.inspectionItemSubclass }}</td> |
| | | </tr> |
| | | <tr> |
| | | <td style="font-size: 16px;background-color: #F0F1F5;">规格型号</td> |
| | |
| | | <td>{{currentInfo.methodS}}</td> |
| | | <td style="font-size: 16px;background-color: #F0F1F5;">设备编号</td> |
| | | <td> |
| | | <el-select v-model="currentInfo.equipValue" placeholder="请选择" size="small" :disabled="state>1" @focus="methodFocus(item)" @change="m=>handleEquip(m,currentInfo)"> |
| | | <el-option |
| | | v-for="item in equipOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | <el-select v-model="currentInfo.equipValue" placeholder="请选择" size="small" :disabled="state > 1" |
| | | @focus="methodFocus(item)" @change="m => handleEquip(m, currentInfo)"> |
| | | <el-option v-for="item in equipOptions" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </td> |
| | |
| | | <tr v-for="(item,index) in currentInfo.list" :key="index"> |
| | | <td>{{index+1}}</td> |
| | | <td colspan="3"> |
| | | <el-input v-model="item.power" placeholder="" size="small" @change="m=>save(currentInfo)" :disabled="state>1"></el-input> |
| | | <el-input v-model="item.power" placeholder="" size="small" @change="m => save(currentInfo)" |
| | | :disabled="state > 1"></el-input> |
| | | </td> |
| | | <td colspan="2"> |
| | | <el-input v-model="item.peakPower" placeholder="" size="small" @change="m=>save(currentInfo)" :disabled="state>1"></el-input> |
| | | <el-input v-model="item.peakPower" placeholder="" size="small" @change="m => save(currentInfo)" |
| | | :disabled="state > 1"></el-input> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | }, |
| | | noQs:true}).then(res => { |
| | | noQs: true |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | this.$message.error('保存失败') |
| | | return |
| | |
| | | margin: 5px 5px 0; |
| | | table-layout: fixed; |
| | | } |
| | | |
| | | .thermal-table td { |
| | | min-width: 70px; |
| | | text-align: center; |
| | |
| | | white-space: normal; |
| | | padding: 5px; |
| | | } |
| | | |
| | | .thermal-table .el-input{ |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | |
| | | >>>.el-input__inner { |
| | | text-align: center; |
| | | } |