diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderGroupConfig.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderGroupConfig.vue index 803445fb37..c87c69543f 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderGroupConfig.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderGroupConfig.vue @@ -192,6 +192,8 @@ const renderTable = (chart: ChartObj) => { } //只有一个cell,并且colIndex为-1,那就是组合的,显示取消分组按钮和重命名按钮 if (activeColumns?.length === 1 && curCell.getMeta().colIndex === -1) { + s2.interaction.clearState() + s2.interaction.selectHeaderCell({ cell: curCell }) const cancelBtn = document.createElement('span') groupMenuContainer.appendChild(cancelBtn) cancelBtn.innerText = t('chart.cancel_group') diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue index 8a4417bf64..0a6f449201 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue @@ -16,7 +16,7 @@ import { storeToRefs } from 'pinia' import TableHeaderGroupConfig from './TableHeaderGroupConfig.vue' const dvMainStore = dvMainStoreWithOut() -const { mobileInPc } = storeToRefs(dvMainStore) +const { batchOptStatus, mobileInPc } = storeToRefs(dvMainStore) const { t } = useI18n() const props = defineProps({ @@ -79,6 +79,7 @@ const changeHeaderGroupConfig = (headerGroupConfig: ChartTableHeaderAttr['header const enableGroupConfig = computed(() => { return ( + !batchOptStatus.value && showProperty('headerGroup') && state.tableHeaderForm.headerGroup && state.tableHeaderForm.showTableHeader !== false @@ -742,7 +743,7 @@ onMounted(() => {