From 4b7c60c552693301e59dc7cdcc64767e396bbe5b Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 8 Mar 2024 09:39:03 +0800 Subject: [PATCH 01/12] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=B8=83=E5=B1=80=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E5=B7=B2=E6=B7=BB=E5=8A=A0=E8=87=B3=E5=B8=83=E5=B1=80=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E8=A1=A8=E4=BC=9A=E7=9B=B4=E6=8E=A5=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E5=B7=A6=E4=BE=A7=E6=97=A0=E9=9C=80=E5=86=8D=E5=B8=83?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/store/modules/data-visualization/copy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/core-frontend/src/store/modules/data-visualization/copy.ts b/core/core-frontend/src/store/modules/data-visualization/copy.ts index d3da8c80fe..8eefad469e 100644 --- a/core/core-frontend/src/store/modules/data-visualization/copy.ts +++ b/core/core-frontend/src/store/modules/data-visualization/copy.ts @@ -178,6 +178,7 @@ function deepCopyHelper(data, idMap) { const newComponentId = generateID() idMap[data.id] = newComponentId result.id = newComponentId + result.inMobile = false if (result.component === 'Group') { result.propValue.forEach((component, i) => { result.propValue[i] = deepCopyHelper(component, idMap) From a0110835cfd60385e2d9a5d11e8f5b05a14f5e29 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 8 Mar 2024 10:05:05 +0800 Subject: [PATCH 02/12] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=86=85=E9=80=9A=E8=BF=87=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E7=BB=84=E4=BB=B6=E5=90=91=E7=94=BB=E5=B8=83=E5=86=85?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B0=E7=BB=84=E4=BB=B6=EF=BC=8C=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=80=89=E4=B8=AD=E6=96=B0=E6=B7=BB=E5=8A=A0=E7=9A=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/copy.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/store/modules/data-visualization/copy.ts b/core/core-frontend/src/store/modules/data-visualization/copy.ts index 8eefad469e..0609115f42 100644 --- a/core/core-frontend/src/store/modules/data-visualization/copy.ts +++ b/core/core-frontend/src/store/modules/data-visualization/copy.ts @@ -118,7 +118,12 @@ export const copyStore = defineStore('copy', { } eventBus.emit('addDashboardItem-' + newComponent.canvasId, newComponent) } - + if (i === dataArray.length - 1) { + dvMainStore.setCurComponent({ + component: newComponent, + index: componentData.value.length - 1 + }) + } i++ } }, moveTime) From 18b5ac9e14e6e7ebff91ca86170ac0cf02541adf Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 8 Mar 2024 10:23:23 +0800 Subject: [PATCH 03/12] =?UTF-8?q?feat(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E9=93=BE=E6=8E=A5=E6=89=93=E5=BC=80=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=B5=8F=E8=A7=88=E5=99=A8=E7=BD=91=E9=A1=B5=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=8F=90=E7=A4=BA=E4=B8=BA=E4=BB=AA=E8=A1=A8=E6=9D=BF?= =?UTF-8?q?=E5=92=8C=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E7=9A=84=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/data-visualization/PreviewCanvas.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue b/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue index bce39d6e76..2853fc978a 100644 --- a/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue +++ b/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue @@ -63,6 +63,10 @@ const loadCanvasDataAsync = async (dvId, dvType) => { if (jumpParam) { dvMainStore.addViewTrackFilter(jumpParam) } + if (props.publicLinkStatus) { + // 设置浏览器title为当前仪表板名称 + document.title = dvInfo.name + } } ) } From 4696666ceee261a63ddc7f8c1b8af7afba185385 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 8 Mar 2024 10:56:05 +0800 Subject: [PATCH 04/12] =?UTF-8?q?refactor(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20?= =?UTF-8?q?=E5=BD=93=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86=E6=96=B0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=86=E7=B1=BB=E6=88=90=E5=8A=9F=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=88=97=E8=A1=A8=E4=B8=AD=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E6=96=B0=E6=B7=BB=E5=8A=A0=E7=9A=84=E5=88=86?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/template/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/template/index.vue b/core/core-frontend/src/views/template/index.vue index 8b0cf1a500..d2643c48ab 100644 --- a/core/core-frontend/src/views/template/index.vue +++ b/core/core-frontend/src/views/template/index.vue @@ -479,12 +479,12 @@ const saveTemplateEdit = templateEditForm => { templateEditFormRef.value.validate(valid => { if (valid) { save({ ...templateEditForm }).then(response => { - state.currentTemplateLabel = templateEditForm.name ElMessage({ message: '添加成功', type: 'success', showClose: true }) + state.currentTemplateId = null getTree() close() }) From bf2f541f07366f21f2d0dad5e59748532f75d4d9 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 8 Mar 2024 11:35:34 +0800 Subject: [PATCH 05/12] =?UTF-8?q?style(X-Pack):=20=E5=A4=96=E8=A7=82?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE-=E5=8D=A1=E7=89=87=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E5=BA=95=E9=83=A8=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- de-xpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/de-xpack b/de-xpack index b5ec1c2a30..62920fd79c 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit b5ec1c2a30ee6bc452627420232d539cd72f3a42 +Subproject commit 62920fd79c962635398ee96c60f26bd7e902423f From 9502b993e938fc1990e0d212a63699757f9648b9 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 8 Mar 2024 13:25:15 +0800 Subject: [PATCH 06/12] =?UTF-8?q?style:=20=E4=BE=A7=E8=BE=B9=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=82=AC=E6=B5=AE=E4=BB=A5=E5=8F=8A=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/Menu.vue | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/core/core-frontend/src/layout/components/Menu.vue b/core/core-frontend/src/layout/components/Menu.vue index c3875e0f82..31f9faa6e0 100644 --- a/core/core-frontend/src/layout/components/Menu.vue +++ b/core/core-frontend/src/layout/components/Menu.vue @@ -4,6 +4,14 @@ import { ElMenu } from 'element-plus-secondary' import { useRoute, useRouter } from 'vue-router' import { isExternal } from '@/utils/validate' import MenuItem from './MenuItem.vue' +import { useAppearanceStoreWithOut } from '@/store/modules/appearance' +const appearanceStore = useAppearanceStoreWithOut() +const tempColor = computed(() => { + return { + '--temp-color': + (appearanceStore.themeColor === 'custom' ? appearanceStore.customColor : '#3370FF') + '1A' + } +}) const isCollapse = ref(false) const route = useRoute() const { push } = useRouter() @@ -26,6 +34,7 @@ const menuSelect = (index: string, indexPath: string[]) => {