From 6cdc46fedcbb6f8b28bd8ef89091acdecbde4a82 Mon Sep 17 00:00:00 2001 From: wangxk Date: Wed, 9 Jul 2025 13:54:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=89=E7=BB=B4=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E7=9A=84=E5=88=9B=E5=BB=BA=E5=92=8C=E4=B8=89=E7=BB=B4=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E7=9A=84=E6=A8=A1=E5=9E=8B=E4=B8=8A=E4=BC=A0=EF=BC=8C?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=92=8C=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/config/dev.ts | 4 +- .../data-visualization/canvas/Shape.vue | 3 +- .../src/components/three-display/index.vue | 273 ++++++++++++++++++ .../components/visualization/SettingMenu.vue | 6 +- .../visualization/UserViewEnlarge.vue | 2 +- .../components/visualization/ViewTrackBar.vue | 22 +- core/core-frontend/src/locales/en.ts | 1 + core/core-frontend/src/locales/tw.ts | 1 + core/core-frontend/src/locales/zh-CN.ts | 1 + .../views/chart/components/editor/index.vue | 13 +- .../chart/components/editor/util/chart.ts | 7 + .../js/panel/charts/map/three-map.ts | 145 ++++++++++ .../src/views/chart/components/js/util.ts | 2 +- .../views/components/ChartComponentG2Plot.vue | 227 ++------------- .../views/chart/components/views/index.vue | 7 +- .../views/dashboard/DashboardPreviewShow.vue | 2 +- .../src/views/data-visualization/index.vue | 8 +- .../src/viewsnew/data-visualization/index.vue | 2 +- 18 files changed, 493 insertions(+), 233 deletions(-) create mode 100644 core/core-frontend/src/components/three-display/index.vue create mode 100644 core/core-frontend/src/views/chart/components/js/panel/charts/map/three-map.ts diff --git a/core/core-frontend/config/dev.ts b/core/core-frontend/config/dev.ts index 4fe7742..6bb8c2c 100644 --- a/core/core-frontend/config/dev.ts +++ b/core/core-frontend/config/dev.ts @@ -2,13 +2,13 @@ export default { server: { proxy: { '/api/f': { - target: 'http://192.168.1.58:8100', + target: 'http://192.168.1.20:8100', changeOrigin: true, rewrite: path => path.replace(/^\/api\/f/, 'de2api') }, // 使用 proxy 实例 '/api': { - target: 'http://192.168.1.58:8100', + target: 'http://192.168.1.20:8100', changeOrigin: true, rewrite: path => path.replace(/^\/api/, 'de2api') } diff --git a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue index 750bb22..26ade8f 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -386,7 +386,8 @@ const boardMoveActive = computed(() => { 'symbolic-map', 'heat-map', 't-heatmap', - 'circle-packing' + 'circle-packing', + 'three-map' ] return element.value.isPlugin || CHARTS.includes(element.value.innerType) }) diff --git a/core/core-frontend/src/components/three-display/index.vue b/core/core-frontend/src/components/three-display/index.vue new file mode 100644 index 0000000..8539e24 --- /dev/null +++ b/core/core-frontend/src/components/three-display/index.vue @@ -0,0 +1,273 @@ + + + + + \ No newline at end of file diff --git a/core/core-frontend/src/components/visualization/SettingMenu.vue b/core/core-frontend/src/components/visualization/SettingMenu.vue index 33c51bd..9138e07 100644 --- a/core/core-frontend/src/components/visualization/SettingMenu.vue +++ b/core/core-frontend/src/components/visualization/SettingMenu.vue @@ -176,7 +176,8 @@ const state = reactive({ 'word-cloud', 'flow-map', 'bidirectional-bar', - 'symbolic-map' + 'symbolic-map', + 'three-map' ], linkageExcludeViewType: [ 'richTextView', @@ -187,7 +188,8 @@ const state = reactive({ 'word-cloud', 'flow-map', 'bidirectional-bar', - 'symbolic-map' + 'symbolic-map', + 'three-map' ], copyData: null, hyperlinksSetVisible: false, diff --git a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue index 3a3ac3f..3020ec6 100644 --- a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue +++ b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue @@ -422,7 +422,7 @@ const openMessageLoading = cb => { }) } // 地图 -const mapChartTypes = ['bubble-map', 'flow-map', 'heat-map', 'map', 'symbolic-map'] +const mapChartTypes = ['bubble-map', 'flow-map', 'heat-map', 'map', 'symbolic-map','three-map'] const htmlToImage = () => { downLoading.value = mapChartTypes.includes(viewInfo.value.type) ? false : true useEmitt().emitter.emit('renderChart-' + viewInfo.value.id) diff --git a/core/core-frontend/src/components/visualization/ViewTrackBar.vue b/core/core-frontend/src/components/visualization/ViewTrackBar.vue index 3d1d5ce..1f4031c 100644 --- a/core/core-frontend/src/components/visualization/ViewTrackBar.vue +++ b/core/core-frontend/src/components/visualization/ViewTrackBar.vue @@ -1,26 +1,12 @@