licp
2024-05-23 5b51c0fbc5e39a2303e32059c1ecc86d04b88d72
完善键盘切换功能
已修改1个文件
15 ■■■■ 文件已修改
src/views/quality/rawMaterial/rawMaterial-form.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -205,15 +205,16 @@
                            <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>
@@ -1095,6 +1096,9 @@
            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))
@@ -1116,6 +1120,9 @@
            return
            }
            document.getElementById(key + index).blur()
            if(key.includes('detectionValue')){
                this.$refs[key + index][0].activated = false;
            }
            this.$nextTick(() => {
            let i = 0;
            while (true){
@@ -1184,6 +1191,10 @@
</script>
<style>
.no-keyboard-events * {
  pointer-events: none;
  /* 其他需要的样式 */
}
.rawMaterial-detail {
  width: 100%;
  height: 530px;