forked from github/dataease
fix(仪表板): 图表-导出-点击「数据导出中心」-无响应,右侧未弹出「数据导出中心」
This commit is contained in:
parent
3193c78a2c
commit
6227f1b565
@ -17,7 +17,6 @@ import { XpackComponent } from '@/components/plugin'
|
||||
import { useAppearanceStoreWithOut } from '@/store/modules/appearance'
|
||||
import AiComponent from '@/layout/components/AiComponent.vue'
|
||||
import { findBaseParams } from '@/api/aiComponent'
|
||||
import ExportExcel from '@/views/visualized/data/dataset/ExportExcel.vue'
|
||||
import AiTips from '@/layout/components/AiTips.vue'
|
||||
import Copilot from '@/layout/components/Copilot.vue'
|
||||
|
||||
@ -49,9 +48,8 @@ const activeIndex = computed(() => {
|
||||
})
|
||||
|
||||
const permissionStore = usePermissionStore()
|
||||
const ExportExcelRef = ref()
|
||||
const downloadClick = params => {
|
||||
ExportExcelRef.value.init(params)
|
||||
useEmitt().emitter.emit('data-export-center', params)
|
||||
}
|
||||
const routers: any[] = formatRoute(permissionStore.getRoutersNotHidden as AppCustomRouteRecordRaw[])
|
||||
const showSystem = ref(false)
|
||||
@ -116,12 +114,6 @@ onMounted(() => {
|
||||
initShowToolbox()
|
||||
initAiBase()
|
||||
initCopilotBase()
|
||||
useEmitt({
|
||||
name: 'data-export-center',
|
||||
callback: function (params) {
|
||||
ExportExcelRef.value.init(params)
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
@ -192,7 +184,6 @@ onMounted(() => {
|
||||
<div v-if="showOverlayCopilot && appearanceStore.getShowCopilot" class="overlay"></div>
|
||||
</div>
|
||||
</el-header>
|
||||
<ExportExcel ref="ExportExcelRef"></ExportExcel>
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
@ -1,10 +1,22 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||
import configGlobal from '@/components/config-global/src/ConfigGlobal.vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import ExportExcel from '@/views/visualized/data/dataset/ExportExcel.vue'
|
||||
const route = useRoute()
|
||||
const exportExcelRef = ref()
|
||||
const exportExcelCenter = params => {
|
||||
exportExcelRef.value.init(params)
|
||||
}
|
||||
useEmitt({
|
||||
name: 'data-export-center',
|
||||
callback: exportExcelCenter
|
||||
})
|
||||
</script>
|
||||
<template>
|
||||
<config-global>
|
||||
<router-view :key="route.path" />
|
||||
<ExportExcel ref="exportExcelRef"></ExportExcel>
|
||||
</config-global>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user