From 8699bd544645fafb4e0d094cdc9d8ce6841a29b4 Mon Sep 17 00:00:00 2001 From: jingna <1264204245@qq.com> Date: Wed, 30 Jul 2025 09:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A0=E6=AF=94=E5=9B=BE=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visualization/DePreviewPopDialog.vue | 1 - .../src/custom-component/de-tree/Component.vue | 14 +++++++++++++- .../src/views/chart/components/editor/index.vue | 3 +-- .../components/js/panel/charts/others/DeTree.ts | 11 ++--------- .../components/js/panel/charts/pie/proportion.ts | 16 ++++------------ .../src/views/chart/components/views/index.vue | 3 +++ 6 files changed, 23 insertions(+), 25 deletions(-) diff --git a/core/core-frontend/src/components/visualization/DePreviewPopDialog.vue b/core/core-frontend/src/components/visualization/DePreviewPopDialog.vue index 41b9ac5..17ef9b7 100644 --- a/core/core-frontend/src/components/visualization/DePreviewPopDialog.vue +++ b/core/core-frontend/src/components/visualization/DePreviewPopDialog.vue @@ -88,7 +88,6 @@ defineExpose({ previewInit }) onMounted(()=>{ - console.log(state,999,'DePreviewPopDialog mounted') }) diff --git a/core/core-frontend/src/custom-component/de-tree/Component.vue b/core/core-frontend/src/custom-component/de-tree/Component.vue index e7f64dd..da4869c 100644 --- a/core/core-frontend/src/custom-component/de-tree/Component.vue +++ b/core/core-frontend/src/custom-component/de-tree/Component.vue @@ -41,6 +41,7 @@ import { imgUrlTrans } from '@/utils/imgUtils' import Board from '@/components/de-board/Board.vue' import ChartCarouselTooltip from '@/views/chart/components/js/g2plot_tooltip_carousel' + import { getData } from '@/api/chart' const dvMainStore = dvMainStoreWithOut() const snapshotStore = snapshotStoreWithOut() const { tabMoveInActiveId, bashMatrixInfo, editMode, mobileInPc } = storeToRefs(dvMainStore) @@ -57,6 +58,9 @@ element: { type: Object }, + view: { + type: Object, + }, editMode: { type: String, require: false, @@ -594,6 +598,8 @@ // } onMounted(() => { + console.log(props.view) + initview() // if (element.value.propValue.length > 0) { // editableTabsValue.value = element.value.propValue[0].name // } @@ -612,7 +618,12 @@ // viewToolTipsChange() // }, 1000) }) - + function initview(){ + debugger + getData(props.view).then(res => { + console.log(res,378923749234) + }) + } // onBeforeUnmount(() => { // if (['canvas', 'canvasDataV', 'edit'].includes(showPosition.value) && !mobileInPc.value) { // eventBus.off('onTabMoveIn-' + element.value.id, componentMoveIn) @@ -626,6 +637,7 @@ // carouselTimer = null // } // }) +