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 // } // }) +