From 3d140ae64725f57f8d0be9f8182dfd6f9b3999fd Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期一, 17 三月 2025 09:20:42 +0800 Subject: [PATCH] qx --- src/views/doctor/check/index.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 9948418..5e86068 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -288,7 +288,7 @@ @input="vale"></el-input> --> <template slot-scope="{ row, $index }"> <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" - @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" + @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" @blur="handleInputConfirm(row)" @input="vale"></el-input> </template> </el-table-column> @@ -428,7 +428,7 @@ <!-- slot-scope="scope" --> <template slot-scope="{ row, $index }"> <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" - @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" + @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" @blur="handleInputConfirm(row)" @input="vale"></el-input> <!-- <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off" :ref="`input-${scope.$index}-${scope.row.proResult}`" @@ -1285,6 +1285,7 @@ keyInputConfirm(event, currentRowIndex) { // 闃绘榛樿鍥炶溅琛屼负锛屾瘮濡傛彁浜よ〃鍗� event.preventDefault(); + event.stopPropagation() const nextRowIndex = currentRowIndex + 1; // 璁$畻涓嬩竴琛岀储寮� // 濡傛灉涓嬩竴琛屽瓨鍦紝鍒欒仛鐒﹁琛岀殑杈撳叆妗� @@ -1296,7 +1297,7 @@ // 澶勭悊 ref 鍙兘涓烘暟缁勭殑鎯呭喌锛堝鍔ㄦ�佹覆鏌擄級 const target = Array.isArray(nextInput) ? nextInput[0] : nextInput; target.focus(); // 鑱氱劍杈撳叆妗� - target.select(); // 鍙�夛細閫変腑鏂囨湰 + // target.select(); // 鍙�夛細閫変腑鏂囨湰 } }); } -- Gitblit v1.8.0