From b97126d03e5628511ca85fe55ac9fa1a2b06bdbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A9=BA?= Date: Fri, 15 Sep 2023 14:12:28 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=BA=94?= =?UTF-8?q?=E7=94=A8open=E9=A2=84=E8=A7=88=E5=9C=B0=E5=9D=80=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E5=8F=91=E7=8E=B0window.opener?= =?UTF-8?q?=E5=B9=B6=E4=B8=8D=E6=98=AF=E4=B8=80=E4=B8=AAwindow=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E4=BC=9A=E6=8A=A5addEventListener=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E3=80=82=20=E7=AC=AC=E4=B8=89=E6=96=B9=E5=BA=94?= =?UTF-8?q?=E7=94=A8open=E9=A2=84=E8=A7=88=E5=9C=B0=E5=9D=80=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E5=8F=91=E7=8E=B0window.opener?= =?UTF-8?q?=E5=B9=B6=E4=B8=8D=E6=98=AF=E4=B8=80=E4=B8=AAwindow=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E4=BC=9A=E6=8A=A5addEventListener=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 空 --- src/views/preview/wrapper.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/preview/wrapper.vue b/src/views/preview/wrapper.vue index c119a661..6a9b9a72 100644 --- a/src/views/preview/wrapper.vue +++ b/src/views/preview/wrapper.vue @@ -16,6 +16,7 @@ let key = ref(Date.now()) // 数据变更 -> 组件销毁重建 ;[SavePageEnum.JSON, SavePageEnum.CHART_TO_PREVIEW].forEach((saveEvent: string) => { if (!window.opener) return + if(!(window.opener === window)) return window.opener.addEventListener(saveEvent, async (e: any) => { const localStorageInfo: ChartEditStorageType = await getSessionStorageInfo() as unknown as ChartEditStorageType setSessionStorage(StorageEnum.GO_CHART_STORAGE_LIST, [{ ...e.detail, id: localStorageInfo.id }]) From 2b067ce818eaada1b9c6fcba3c941210b75188af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Sat, 16 Sep 2023 16:52:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=8A=BD=E5=8F=96PR=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E4=B8=8B=E9=92=BB=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Charts/Maps/MapBase/config.ts | 31 +- .../components/Charts/Maps/MapBase/config.vue | 67 ++- .../components/Charts/Maps/MapBase/data.json | 26 ++ .../components/Charts/Maps/MapBase/index.vue | 412 +++++++++++------- 4 files changed, 369 insertions(+), 167 deletions(-) diff --git a/src/packages/components/Charts/Maps/MapBase/config.ts b/src/packages/components/Charts/Maps/MapBase/config.ts index dd020e50..d9844001 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.ts +++ b/src/packages/components/Charts/Maps/MapBase/config.ts @@ -11,7 +11,10 @@ export const option = { dataset: dataJson, mapRegion: { adcode: 'china', - showHainanIsLands: true + showHainanIsLands: true, + enter: false, + backSize: 20, + backColor: '#ffffff' }, tooltip: { show: true, @@ -103,19 +106,19 @@ export const option = { borderColor: 'rgba(147, 235, 248, 0.8)', textStyle: { color: '#FFFFFF', - fontSize: 12, + fontSize: 12 } }, label: { show: false, color: '#FFFFFF', - fontSize: 12, + fontSize: 12 }, emphasis: { disabled: false, label: { color: '#FFFFFF', - fontSize: 12, + fontSize: 12 }, itemStyle: { areaColor: '#389BB7', @@ -148,6 +151,26 @@ export const option = { shadowOffsetY: 2, shadowBlur: 10 } + }, + { + type: 'lines', + zlevel: 2, + effect: { + show: true, + period: 4, //箭头指向速度,值越小速度越快 + trailLength: 0.4, //特效尾迹长度[0,1]值越大,尾迹越长重 + symbol: 'arrow', //箭头图标 + symbolSize: 7 //图标大小 + }, + lineStyle: { + normal: { + color: '#4fb6d2', + width: 1, //线条宽度 + opacity: 0.1, //尾迹线条透明度 + curveness: 0.3 //尾迹线条曲直度 + } + }, + data: [] } ] } diff --git a/src/packages/components/Charts/Maps/MapBase/config.vue b/src/packages/components/Charts/Maps/MapBase/config.vue index b3ef4961..e0363d8f 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.vue +++ b/src/packages/components/Charts/Maps/MapBase/config.vue @@ -69,11 +69,7 @@ - + - + @@ -180,6 +176,22 @@ 显示南海群岛 + + 点击进入下级 + + + + + + + + + @@ -191,7 +203,7 @@ - + @@ -223,6 +235,47 @@ + + + + + + + 值越小速度越快 + + + + + + 特效尾迹长度[0,1]值越大,尾迹越长重 + + + + + + + + + + + + + + + + + + + +