From 0f5c580f07e40475cd8e5d3d205ac29c071f4e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 8 Jan 2025 15:04:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-module/condition-config/index.vue | 2 +- .../common/custom-module/model-text/index.vue | 7 ++- .../model-text/model-text-style.vue | 8 +++ .../components/custom-dialog/index.vue | 35 +++++------ .../model-custom/components/index-default.ts | 5 ++ src/components/model-custom/index.vue | 2 +- .../model-custom/model-custom-content.vue | 53 +++++++++------- src/components/model-tabs-carousel/index.vue | 1 - src/utils/index.ts | 63 ++++++++++++++++--- 9 files changed, 123 insertions(+), 53 deletions(-) diff --git a/src/components/common/custom-module/condition-config/index.vue b/src/components/common/custom-module/condition-config/index.vue index 6570a3ac..96f2c2f5 100644 --- a/src/components/common/custom-module/condition-config/index.vue +++ b/src/components/common/custom-module/condition-config/index.vue @@ -3,7 +3,7 @@
条件设置
- + diff --git a/src/components/common/custom-module/model-text/index.vue b/src/components/common/custom-module/model-text/index.vue index 2d45151c..3ec3ef79 100644 --- a/src/components/common/custom-module/model-text/index.vue +++ b/src/components/common/custom-module/model-text/index.vue @@ -117,8 +117,9 @@ const text_title = computed(() => { try { // 多选判断 if (data_source_id.length > 0) { + text_title += form.value?.data_split?.left || ''; // 遍历取出所有的值 - data_source_id.forEach((source_id: string) => { + data_source_id.forEach((source_id: string, index: number) => { const sourceList = option.find((item: any) => item.field == source_id); // 根据数据源ID是否包含点号来区分处理方式 if (source_id.includes(';')) { @@ -131,7 +132,11 @@ const text_title = computed(() => { } else { text_title += (sourceList?.first || '') + (data_handling(source_id) === '' && !props.isDisplayPanel ? sourceList?.name || '请在此输入文字' : data_handling(source_id) ) + (sourceList?.last || ''); } + if (index < data_source_id.length - 1) { + text_title += form.value?.data_split?.middle || ''; + } }); + text_title += form.value?.data_split?.right || ''; } } catch (error) { if (!props.isDisplayPanel) { diff --git a/src/components/common/custom-module/model-text/model-text-style.vue b/src/components/common/custom-module/model-text/model-text-style.vue index 79ef3d03..124fda86 100644 --- a/src/components/common/custom-module/model-text/model-text-style.vue +++ b/src/components/common/custom-module/model-text/model-text-style.vue @@ -19,6 +19,13 @@ + +
+ + + +
+
@@ -164,6 +171,7 @@ const text_change = (key: string) => { id: [], option: [], }; + form.value.data_split = ''; } }; // 数据字段切换时,更新另外一个数据 diff --git a/src/components/model-custom/components/custom-dialog/index.vue b/src/components/model-custom/components/custom-dialog/index.vue index aad0aef2..f137c9c2 100644 --- a/src/components/model-custom/components/custom-dialog/index.vue +++ b/src/components/model-custom/components/custom-dialog/index.vue @@ -6,7 +6,7 @@
- +