diff --git a/src/components/doctorCheck/CheckItemList.vue b/src/components/doctorCheck/CheckItemList.vue index 0d886a5..7a9048a 100644 --- a/src/components/doctorCheck/CheckItemList.vue +++ b/src/components/doctorCheck/CheckItemList.vue @@ -228,6 +228,7 @@ export default { currentRow: -1, //当前操作的行 dialogWinMoreResult: false, + dialogWinMoreResultTimes:0, // 控制避免多次开启监听 dialogWinPacsTemplate: false, moreResult: { data: [], @@ -328,6 +329,8 @@ export default { this.userInfo.operatorType = window.sessionStorage.getItem("operatorType") || '0'; this.userInfo.userId = window.sessionStorage.getItem("userId") || null; this.userInfo.user = window.sessionStorage.getItem("user") || null; + + }, // 销毁前 @@ -772,7 +775,13 @@ export default { this.dialogWinMoreResult = true; - this.watchSelection(); + // 监听结果模板 点击时 光标位置 + if(this.dialogWinMoreResultTimes == 0){ + this.watchSelection(); + this.dialogWinMoreResultTimes++ // 下次打开,则无需重复开启监听 + } + + }, // pacs结果模板 @@ -1127,11 +1136,13 @@ export default { let resultBox = document.getElementById("resultBox"); //用数组可以读取多个标签的元素 //.inline-input // 绑定键盘事件到文本框 resultBox.addEventListener("click", function (event) { + event.preventDefault(); // 获取光标位置 that.getCaretPosition(); }); resultBox.addEventListener("input", function (event) { + event.preventDefault(); // 获取光标位置 that.getCaretPosition(); });