From 7cd0f919d1fcdf63feb9a9d19255921cca6b8db6 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 12 Jun 2025 18:08:43 +0800 Subject: [PATCH] feat: add chart --- frontend/src/views/dashboard/editor/ChatChartSelection.vue | 4 +--- frontend/src/views/dashboard/editor/Toolbar.vue | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/dashboard/editor/ChatChartSelection.vue b/frontend/src/views/dashboard/editor/ChatChartSelection.vue index 77b0048b..eed9bce6 100644 --- a/frontend/src/views/dashboard/editor/ChatChartSelection.vue +++ b/frontend/src/views/dashboard/editor/ChatChartSelection.vue @@ -34,14 +34,12 @@ import { computed, reactive, ref } from 'vue' import { useI18n } from 'vue-i18n' const dialogShow = ref(false) -const curDvType = ref('dashboard') const { t } = useI18n() const selectComponentCount = computed(() => Object.keys(state.curMultiplexingComponents).length) const state = reactive({ curMultiplexingComponents: {}, }) -const dialogInit = (dvType = 'dashboard') => { - curDvType.value = dvType +const dialogInit = () => { dialogShow.value = true state.curMultiplexingComponents = {} } diff --git a/frontend/src/views/dashboard/editor/Toolbar.vue b/frontend/src/views/dashboard/editor/Toolbar.vue index ec310fad..2219d26e 100644 --- a/frontend/src/views/dashboard/editor/Toolbar.vue +++ b/frontend/src/views/dashboard/editor/Toolbar.vue @@ -23,8 +23,10 @@ const snapshotStore = snapshotStoreWithOut() const { snapshotIndex } = storeToRefs(snapshotStore) const emits = defineEmits(['addComponent']) const resourceGroupOptRef = ref(null) +const chatChartSelectionRef = ref(null) const openViewDialog = () => { - // do addComponent + // @ts-expect-error @typescript-eslint/ban-ts-comment + chatChartSelectionRef.value?.dialogInit() } let nameEdit = ref(false)