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 @@
- +