From ef2d3e4f3cc53c0bdd95cef8aec353f08bf550d3 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Mon, 8 Jul 2024 15:51:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E5=B5=8C=E5=85=A5=E5=BC=8F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AF=BC=E5=87=BA=EF=BC=8C=E7=9B=B4=E6=8E=A5=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E8=87=B3=E6=9C=AC=E5=9C=B0=EF=BC=8C=E4=B8=8D=E8=B5=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=87=BA=E4=B8=AD=E5=BF=83=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/chart/components/js/util.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/util.ts b/core/core-frontend/src/views/chart/components/js/util.ts index 281397d5ac..222d2eba12 100644 --- a/core/core-frontend/src/views/chart/components/js/util.ts +++ b/core/core-frontend/src/views/chart/components/js/util.ts @@ -4,7 +4,7 @@ import { equalsAny, includesAny } from '../editor/util/StringUtils' import { FeatureCollection } from '@antv/l7plot/dist/esm/plots/choropleth/types' import { useMapStoreWithOut } from '@/store/modules/map' import { getGeoJson } from '@/api/map' -import { toRaw } from 'vue' +import { computed, toRaw } from 'vue' import { Options } from '@antv/g2plot/esm' import { PickOptions } from '@antv/g2plot/esm/core/plot' import { innerExportDetails } from '@/api/chart' @@ -12,6 +12,8 @@ import { ElMessage } from 'element-plus-secondary' import { useI18n } from '@/hooks/web/useI18n' import { useLinkStoreWithOut } from '@/store/modules/link' +const isDataEaseBi = computed(() => appStore.getIsDataEaseBi) + const { t } = useI18n() // 同时支持将hex和rgb,转换成rgba export function hexColorToRGBA(hex, alpha) { @@ -511,7 +513,7 @@ export const exportExcelDownload = (chart, callBack?) => { innerExportDetails(request) .then(res => { - if (linkStore.getLinkToken) { + if (linkStore.getLinkToken || isDataEaseBi.value) { const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) const link = document.createElement('a') link.style.display = 'none'