From f4e2671da66eca9d9eb5020617dab1e8e3380bb4 Mon Sep 17 00:00:00 2001 From: yelan Date: Mon, 14 Sep 2026 11:07:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=87=E4=B9=A6=E7=BC=96=E8=BE=91):=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=8F=92=E5=85=A5=E5=8B=BE=E9=80=89=E6=A1=86?= =?UTF-8?q?=E4=B8=8E=E5=8D=A0=E4=BD=8D=E7=AC=A6=E7=89=87=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documents/components/WordEditorDialog.vue | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/clinical-web/src/views/management/documents/components/WordEditorDialog.vue b/clinical-web/src/views/management/documents/components/WordEditorDialog.vue index 3f283ac..00ab05d 100644 --- a/clinical-web/src/views/management/documents/components/WordEditorDialog.vue +++ b/clinical-web/src/views/management/documents/components/WordEditorDialog.vue @@ -97,7 +97,14 @@ function handleCampusChange() { } } -function insertPlaceholder(text: string) { +// 勾选框与占位符走同一个 EditorPaneHandle.insertText:光标停在表格单元格里, +// 插入的内容就落在这个单元格,签署时由渲染管线转为可交互选项。 +const choiceSnippets = [ + { label: '勾选框 □', text: '□', title: '在光标处插入一个勾选框' }, + { label: '二选一 □是 □否', text: '□是 □否', title: '插入一对互斥选项,可自行改文字' }, +] + +function insertContent(text: string) { paneRef.value?.insertText(text) } @@ -227,12 +234,27 @@ function save() { :key="item" type="button" class="placeholder-chip" - @click="insertPlaceholder(item)" + @click="insertContent(item)" > {{ item }} +
+ 插入勾选框 +
+ +
+
@@ -255,7 +277,7 @@ function save() { /> {{ importMessage }} - 建议从 Word/WPS 中全选复制文书后直接粘贴到下方编辑区;需要患者勾选的条目请做成表格——表头第一行写「勾选」,旁边一列写「项目」,签署时该列会自动转为勾选框。 + 建议从 Word/WPS 中全选复制文书后直接粘贴到下方编辑区;需要患者勾选的内容可点上方「插入勾选框」按钮插入(光标停在表格单元格里就插到该单元格),或用表头含「勾选」列的表格承载。