+ :style="`z-index:3;border-radius: 10px;border: 1px solid #ddd;background-color:#FFF; position: absolute;top:50px;right:120px;width:300px;height: ${window.pageHeight - 42 - 10}px;opacity:1;`">
From f58a7b0f43b0e23fb85b4a778c5cad7cff09287d Mon Sep 17 00:00:00 2001
From: pengjun <158915633@qq.com>
Date: Sun, 14 Dec 2025 16:41:03 +0800
Subject: [PATCH 2/2] SEO
---
src/components/doctorCheck/CheckItemList.vue | 38 ++++++++------------
src/views/fee-settings/cardRegister.vue | 4 +--
2 files changed, 16 insertions(+), 26 deletions(-)
diff --git a/src/components/doctorCheck/CheckItemList.vue b/src/components/doctorCheck/CheckItemList.vue
index 5cdc0f4..7a2b918 100644
--- a/src/components/doctorCheck/CheckItemList.vue
+++ b/src/components/doctorCheck/CheckItemList.vue
@@ -834,32 +834,22 @@ export default {
// 单击选择结果模版的结果
clickResult(item) {
- let result = [];
+ let moreResult = this.moreResult.result || ''
// console.log('this.moreResult',JSON.stringify(this.moreResult))
// console.log('item',item)
//点击结果前 == 默认结果
- if (this.moreResult.result == this.moreResult.defaultResult) {
+ if (!moreResult || moreResult == this.moreResult.defaultResult ) {
this.moreResult.result = item.result
- } else {
-
- if (this.moreResult.result) result = this.moreResult.result.split(";");
- // 不用分隔符时,不判断包含关系
- if (this.LocalConfig.doctorCheck.isSplitChooseResult == "Y" && result.indexOf(item.result) > -1)
- return;
- if (this.LocalConfig.doctorCheck.isSplitChooseResult == "Y" || result.length == 0) {
- result.push(item.result);
- } else {
- result[result.length - 1] = result[result.length - 1] + item.result;
- }
-
- let ret = "";
- result.forEach((e, i) => {
- let splitStr = ";";
- if (i == 0) splitStr = "";
- ret += splitStr + e;
- });
- this.moreResult.result = ret;
+ this.selection.start = length(item.result) - 1
+ this.selection.end = this.selection.start
+ }else if(moreResult.includes(item.result)){
+ // 结果包含已选时,不作处理
+ }else {
+ let choosedResult = item.result
+ if(this.LocalConfig.doctorCheck.isSplitChooseResult == 'Y') choosedResult = ';' + choosedResult
+ this.insertSymbols(choosedResult)
}
+
},
// 清除结果值
@@ -1111,7 +1101,7 @@ export default {
});
},
- // 光标位置插入特殊符号
+ // 光标位置插入特殊符号(插入结果)
insertSymbols(symbols) {
let result = this.moreResult.result || "";
if (result) {
@@ -1123,8 +1113,8 @@ export default {
result = symbols;
}
this.moreResult.result = result;
- this.selection.start++;
- this.selection.end++;
+ this.selection.start = this.selection.start + length(symbols);
+ this.selection.end = this.selection.start;
},
// 获取光标位置的函数
getCaretPosition() {
diff --git a/src/views/fee-settings/cardRegister.vue b/src/views/fee-settings/cardRegister.vue
index 05e7dd5..07ac79a 100644
--- a/src/views/fee-settings/cardRegister.vue
+++ b/src/views/fee-settings/cardRegister.vue
@@ -1000,10 +1000,10 @@ export default {
this.loadOptsInit = Object.assign({}, this.loadOpts);
postapi("/api/app/cardregister/getcardregisterlist", body).then((res) => {
- if (res.code != -1) {
+ if (res.code > -1) {
this.dataList = res.data.items;
this.loadOpts.totalCount = res.data.totalCount
- this.loadOpts.skipCount = 1
+ //this.loadOpts.skipCount = 0
}
});
},