diff --git a/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue b/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue index e824380a85..02f3516647 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue @@ -10,6 +10,7 @@ import { computed, toRefs } from 'vue' import { ElDivider } from 'element-plus-secondary' import eventBus from '@/utils/eventBus' import { getCurInfo } from '@/store/modules/data-visualization/common' +import { useEmitt } from '@/hooks/web/useEmitt' const dvMainStore = dvMainStoreWithOut() const copyStore = copyStoreWithOut() const lockStore = lockStoreWithOut() @@ -20,6 +21,7 @@ const composeStore = composeStoreWithOut() const { areaData } = storeToRefs(composeStore) const { curComponent } = storeToRefs(dvMainStore) const emit = defineEmits(['close', 'rename']) +const { emitter } = useEmitt() const props = defineProps({ activePosition: { type: String, @@ -157,6 +159,10 @@ const composeDivider = computed(() => { const isGroupArea = computed(() => { return curComponent.value?.component === 'GroupArea' }) + +const editQueryCriteria = () => { + emitter.emit(`editQueryCriteria${curComponent.value.id}`) +}