| | |
| | | <el-tooltip :disabled="scope.row.deviceId != null" class="item" effect="dark" content="请先选择设备!" placement="top-start"> |
| | | <el-autocomplete clearable |
| | | cache="false" |
| | | ref="testValueInput" |
| | | @blur="checkTestValues(scope.row,'blur',$event)" |
| | | @select="checkTestValues(scope.row,'select',$event)" |
| | | :disabled="scope.row.deviceId == null || (dataForm.id!=null&&(resultVal!=null && resultVal!=''))" |
| | | v-model="scope.row.testValueList[index]" |
| | | :fetch-suggestions="querySearch" |
| | | placeholder="请输入或选择检测值" |
| | | :ref="`detectionValue${index}`+scope.$index" |
| | | :id="`detectionValue${index}`+scope.$index" |
| | | @keyup.native="moveFocus($event, scope.$index, `detectionValue${index}`)"> |
| | | @keyup.native="moveFocus($event, scope.$index, `detectionValue${index}`)" |
| | | popper-class="no-keyboard-events"> |
| | | <template slot-scope="{ item }"> |
| | | <div>{{ item.value }}</div> |
| | | </template> |
| | |
| | | return |
| | | } |
| | | document.getElementById(key + index).blur() |
| | | if(key.includes('detectionValue')){ |
| | | this.$refs[key + index][0].activated = false; |
| | | } |
| | | let i = 0; |
| | | while (true){ |
| | | let dom = document.getElementById(key + (index - 1-i)) |
| | |
| | | return |
| | | } |
| | | document.getElementById(key + index).blur() |
| | | if(key.includes('detectionValue')){ |
| | | this.$refs[key + index][0].activated = false; |
| | | } |
| | | this.$nextTick(() => { |
| | | let i = 0; |
| | | while (true){ |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | .no-keyboard-events * { |
| | | pointer-events: none; |
| | | /* 其他需要的样式 */ |
| | | } |
| | | .rawMaterial-detail { |
| | | width: 100%; |
| | | height: 530px; |