diff --git a/core/core-frontend/src/views/chart/components/editor/index.vue b/core/core-frontend/src/views/chart/components/editor/index.vue index bc95162997..3d0ef2b65b 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -513,6 +513,17 @@ const quotaItemRemove = item => { const isFilterActive = computed(() => { return !!view.value.customFilter?.items?.length }) +const isFilterInvalid = computed(() => { + if (!view.value.customFilter?.items?.length) { + return false + } + if (!view.value.tableId) { + return false + } + const item = view.value.customFilter.items[0] + const valid = allFields.value.some(f => f.id === item.fieldId) + return !valid +}) const drillItemChange = () => { recordSnapshotInfo('calcData') @@ -3157,7 +3168,11 @@ const deleteChartFieldItem = id => {
@@ -4678,6 +4693,11 @@ span { color: #3370ff; border-color: #3370ff; } + + &.invalid { + color: red !important; + border-color: red !important; + } } :deep(.tree-btn_secondary) {