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 | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 779119e..5e86068 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -287,8 +287,8 @@ " @focus="handleFocus(scope.row)" @blur="handleInputConfirm(scope.row)" @input="vale"></el-input> --> <template slot-scope="{ row, $index }"> - <el-input v-model="row.name" :ref="`input-${$index}`" - @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" + <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" + @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" @blur="handleInputConfirm(row)" @input="vale"></el-input> </template> </el-table-column> @@ -427,8 +427,8 @@ <el-table-column prop="proResult" label="妫�娴嬬粨鏋�" width="150"> <!-- slot-scope="scope" --> <template slot-scope="{ row, $index }"> - <el-input v-model="row.name" :ref="`input-${$index}`" - @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" + <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" + @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}`" @@ -919,7 +919,6 @@ radio: "", nums: "", proParentList: [], - inputDoms: [], tjNumber: "", // 鍏ㄩ儴灏忕粨 DeptadviceAll: [], @@ -1286,6 +1285,7 @@ keyInputConfirm(event, currentRowIndex) { // 闃绘榛樿鍥炶溅琛屼负锛屾瘮濡傛彁浜よ〃鍗� event.preventDefault(); + event.stopPropagation() const nextRowIndex = currentRowIndex + 1; // 璁$畻涓嬩竴琛岀储寮� // 濡傛灉涓嬩竴琛屽瓨鍦紝鍒欒仛鐒﹁琛岀殑杈撳叆妗� @@ -1297,7 +1297,7 @@ // 澶勭悊 ref 鍙兘涓烘暟缁勭殑鎯呭喌锛堝鍔ㄦ�佹覆鏌擄級 const target = Array.isArray(nextInput) ? nextInput[0] : nextInput; target.focus(); // 鑱氱劍杈撳叆妗� - target.select(); // 鍙�夛細閫変腑鏂囨湰 + // target.select(); // 鍙�夛細閫変腑鏂囨湰 } }); } -- Gitblit v1.8.0