From 94952b540f5cd3eb34cf24010c420969e076048e Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期一, 17 三月 2025 10:46:13 +0800 Subject: [PATCH] qx --- src/views/doctor/check/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 215c0e7..a72bc03 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -283,7 +283,7 @@ <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> @@ -423,7 +423,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}`" @@ -1063,7 +1063,6 @@ const proId = row.proId; resultList(tjNum, proId).then((res) => { this.jieguoList = res.data; - console.log(this.jieguoList, 998877); this.jyjc = this.jieguoList[0].jyjc; const ycbz = this.jieguoList[0].ycbz; @@ -1282,6 +1281,7 @@ keyInputConfirm(event, currentRowIndex) { // 闃绘榛樿鍥炶溅琛屼负锛屾瘮濡傛彁浜よ〃鍗� event.preventDefault(); + event.stopPropagation() const nextRowIndex = currentRowIndex + 1; // 璁$畻涓嬩竴琛岀储寮� // 濡傛灉涓嬩竴琛屽瓨鍦紝鍒欒仛鐒﹁琛岀殑杈撳叆妗� @@ -1293,7 +1293,7 @@ // 澶勭悊 ref 鍙兘涓烘暟缁勭殑鎯呭喌锛堝鍔ㄦ�佹覆鏌擄級 const target = Array.isArray(nextInput) ? nextInput[0] : nextInput; target.focus(); // 鑱氱劍杈撳叆妗� - target.select(); // 鍙�夛細閫変腑鏂囨湰 + // target.select(); // 鍙�夛細閫変腑鏂囨湰 } }); } -- Gitblit v1.8.0