| | |
| | | <el-tooltip v-if="scope.row.iname != null" :disabled="scope.row.eId != null" |
| | | class="item" effect="dark" content="请先选择设备!" placement="top-start"> |
| | | <el-select style="width: 100%;" @change="changeState(scope.row, index)" :disabled="scope.row.eId == null" v-model="scope.row.empiricalValueAddss[index]" placeholder="请选择"> |
| | | <el-option v-for="item in dataVal" :key="item.value" :label="item.label" |
| | | <!-- <el-option v-for="item in dataVal" :key="item.value" :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-option> --> |
| | | <el-option v-for="item in dataVal" :key="item.value" :label="(item.value === '1' ? '是' : '否')" :value="item.value"></el-option> |
| | | |
| | | |
| | | </el-select> |
| | | <span v-if="resultVal != null && processInspectVo.id != null" |
| | | v-text="scope.row.empiricalValueAddss[index]"></span> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | // 1 是 0否 |
| | | dataVal: [{ |
| | | label: '是', |
| | | value: '是' |
| | | label: '1', |
| | | value: '1' |
| | | }, { |
| | | label: '否', |
| | | value: '否' |
| | | label: '0', |
| | | value: '0' |
| | | }], |
| | | resultVal: null, |
| | | deviceList: [], |
| | |
| | | this.init() |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | submitSave(){ |
| | | let pro = 0 |
| | | this.inspectionItems.forEach(item => { |
| | |
| | | material: result.material, |
| | | userName: Array.from(new Set(userList)).join(","), |
| | | result: this.resultVal==null ? '' : this.resultVal, |
| | | |
| | | }] |
| | | }).catch(error=>{ |
| | | console.log(error) |