fix(仪表板): 数据导出中心弹出两次

This commit is contained in:
dataeaseShu 2024-09-20 17:51:39 +08:00
parent 098f99d46d
commit 1b19d1f699

View File

@ -4,7 +4,6 @@ import { nextTick, onMounted, reactive, ref } from 'vue'
import DePreview from '@/components/data-visualization/canvas/DePreview.vue'
import router from '@/router'
import { useEmitt } from '@/hooks/web/useEmitt'
import ExportExcel from '@/views/visualized/data/dataset/ExportExcel.vue'
import { initCanvasData } from '@/utils/canvasUtils'
import { queryTargetVisualizationJumpInfo } from '@/api/visualization/linkJump'
import { Base64 } from 'js-base64'
@ -148,12 +147,6 @@ const downloadH2 = type => {
let p = null
const XpackLoaded = () => p(true)
onMounted(async () => {
useEmitt({
name: 'data-export-center',
callback: function (params) {
ExportExcelRef.value.init(params)
}
})
useEmitt({
name: 'canvasDownload',
callback: function () {
@ -173,7 +166,6 @@ onMounted(async () => {
dvMainStore.setEmbeddedCallBack(callBackFlag || 'no')
dvMainStore.setPublicLinkStatus(props.publicLinkStatus)
})
const ExportExcelRef = ref()
defineExpose({
loadCanvasDataAsync
@ -199,7 +191,6 @@ defineExpose({
@loaded="XpackLoaded"
@load-fail="XpackLoaded"
/>
<ExportExcel ref="ExportExcelRef"></ExportExcel>
</template>
<style lang="less">