mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 03:22:56 +08:00
refactor: 弹窗跳转内禁用下载 (#14775)
This commit is contained in:
parent
c843333fed
commit
f8ba2fb4d9
@ -344,7 +344,8 @@ const {
|
||||
componentData,
|
||||
canvasViewInfo,
|
||||
mobileInPc,
|
||||
dvInfo
|
||||
dvInfo,
|
||||
isIframe
|
||||
} = storeToRefs(dvMainStore)
|
||||
|
||||
const state = reactive({
|
||||
@ -598,7 +599,9 @@ const initCurFields = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const showDownload = computed(() => canvasViewInfo.value[element.value.id]?.dataFrom !== 'template')
|
||||
const showDownload = computed(
|
||||
() => canvasViewInfo.value[element.value.id]?.dataFrom !== 'template' && !isIframe.value
|
||||
)
|
||||
// 富文本-End
|
||||
|
||||
const datasetParamsSetShow = computed(() => {
|
||||
|
@ -8,7 +8,7 @@
|
||||
trigger="click"
|
||||
class="userViewEnlarge-class"
|
||||
>
|
||||
<template #header>
|
||||
<template #header v-if="!isIframe">
|
||||
<div class="header-title">
|
||||
<div>{{ viewInfo?.title }}</div>
|
||||
<div class="export-button">
|
||||
@ -27,7 +27,6 @@
|
||||
/>
|
||||
</el-option-group>
|
||||
</el-select>
|
||||
|
||||
<el-button
|
||||
class="m-button"
|
||||
v-if="optType === 'enlarge' && exportPermissions[0]"
|
||||
@ -178,7 +177,7 @@ const { t } = useI18n()
|
||||
const optType = ref(null)
|
||||
const chartComponentDetails = ref(null)
|
||||
const chartComponentDetails2 = ref(null)
|
||||
const { dvInfo, editMode } = storeToRefs(dvMainStore)
|
||||
const { dvInfo, editMode, isIframe } = storeToRefs(dvMainStore)
|
||||
const exportLoading = ref(false)
|
||||
const sourceViewType = ref()
|
||||
const activeName = ref('left')
|
||||
|
@ -192,10 +192,14 @@ export const dvMainStore = defineStore('dataVisualization', {
|
||||
baseCellInfo: {},
|
||||
dataPrepareState: false, //数据准备状态
|
||||
multiplexingStyleAdapt: true, //复用样式跟随主题
|
||||
mainScrollTop: 0 //主画布运动量
|
||||
mainScrollTop: 0, //主画布运动量
|
||||
isIframe: false // 当前是否在iframe中
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
setIframeFlag(value) {
|
||||
this.isIframe = value
|
||||
},
|
||||
setCanvasAttachInfo(value) {
|
||||
this.canvasAttachInfo = value
|
||||
},
|
||||
|
@ -30,7 +30,8 @@ const state = reactive({
|
||||
canvasViewInfoPreview: null,
|
||||
dvInfo: null,
|
||||
curPreviewGap: 0,
|
||||
initState: true
|
||||
initState: true,
|
||||
showPosition: null
|
||||
})
|
||||
|
||||
const props = defineProps({
|
||||
@ -176,6 +177,8 @@ onMounted(async () => {
|
||||
const dvId = embeddedStore.dvId || router.currentRoute.value.query.dvId
|
||||
// 检查外部参数
|
||||
const ignoreParams = router.currentRoute.value.query.ignoreParams === 'true'
|
||||
const isFrameFlag = window.self !== window.top
|
||||
dvMainStore.setIframeFlag(isFrameFlag)
|
||||
const { dvType, callBackFlag, taskId, showWatermark } = router.currentRoute.value.query
|
||||
if (!!taskId) {
|
||||
dvMainStore.setCanvasAttachInfo({ taskId, showWatermark })
|
||||
|
Loading…
Reference in New Issue
Block a user