diff --git a/src/components/common/custom-module/model-text/index.vue b/src/components/common/custom-module/model-text/index.vue index 1a204ddb..2e7f8b5d 100644 --- a/src/components/common/custom-module/model-text/index.vue +++ b/src/components/common/custom-module/model-text/index.vue @@ -93,7 +93,7 @@ const text_title = computed(() => { }); text_title += (sourceList?.first || '') + (text == '' && !props.isDisplayPanel ? sourceList?.name || '请在此输入文字' : text ) + (sourceList?.last || ''); } else { - text_title += (sourceList?.first || '') + (data_handling(source_id) == '' && !props.isDisplayPanel ? sourceList?.name || '请在此输入文字' : data_handling(source_id) ) + (sourceList?.last || ''); + text_title += (sourceList?.first || '') + (data_handling(source_id) === '' && !props.isDisplayPanel ? sourceList?.name || '请在此输入文字' : data_handling(source_id) ) + (sourceList?.last || ''); } }); } @@ -105,8 +105,8 @@ const text_title = computed(() => { } } // 确定最终返回的文本,优先使用表单值中的文本标题,如果为空则使用之前获取的标题或默认文本 - let text = formValue.text_title || text_title || ''; - if (text == '' && !props.isDisplayPanel) { + let text = formValue.text_title || text_title; + if (text === '' && !props.isDisplayPanel) { text = '请在此输入文字'; } return text; diff --git a/src/components/common/data-filter/index.vue b/src/components/common/data-filter/index.vue index 8146098b..44f7bf02 100644 --- a/src/components/common/data-filter/index.vue +++ b/src/components/common/data-filter/index.vue @@ -5,13 +5,11 @@ {{ item.name }} - - + diff --git a/src/components/common/tabs-view/index.vue b/src/components/common/tabs-view/index.vue index a772161e..030fd902 100644 --- a/src/components/common/tabs-view/index.vue +++ b/src/components/common/tabs-view/index.vue @@ -9,7 +9,17 @@ -
{{ item.title }}
+ +
{{ item.desc }}
@@ -21,7 +31,7 @@