diff --git a/core/core-frontend/src/components/visualization/ComponentEditBar.vue b/core/core-frontend/src/components/visualization/ComponentEditBar.vue index 7a204e9091..3e4d986f08 100644 --- a/core/core-frontend/src/components/visualization/ComponentEditBar.vue +++ b/core/core-frontend/src/components/visualization/ComponentEditBar.vue @@ -118,7 +118,7 @@ > @@ -161,7 +161,12 @@ @@ -583,6 +588,8 @@ const initCurFields = () => { } } } + +const showDownload = computed(() => canvasViewInfo.value[element.value.id]?.dataFrom !== 'template') // 富文本-End const datasetParamsSetShow = computed(() => { diff --git a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue index cde976af18..64cebc6cfe 100644 --- a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue +++ b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue @@ -41,7 +41,9 @@ icon="Download" size="middle" :loading="exportLoading" - :disabled="requestStore.loadingMap[permissionStore.currentPath] > 0" + :disabled=" + requestStore.loadingMap[permissionStore.currentPath] > 0 || state.dataFrom === 'template' + " @click="downloadViewDetails('view')" > 导出Excel @@ -54,7 +56,9 @@ size="middle" :loading="exportLoading" @click="downloadViewDetails('dataset')" - :disabled="requestStore.loadingMap[permissionStore.currentPath] > 0" + :disabled=" + requestStore.loadingMap[permissionStore.currentPath] > 0 || state.dataFrom === 'template' + " > 导出原始明细 @@ -196,7 +200,8 @@ const DETAIL_CHART_ATTR: DeepPartial = { const state = reactive({ scale: 0.5, - componentSourceType: null + componentSourceType: null, + dataFrom: null }) const DETAIL_TABLE_ATTR: DeepPartial = { senior: { @@ -269,6 +274,7 @@ const dialogInit = (canvasStyle, view, item, opt, params = { scale: 0.5 }) => { optType.value = opt dialogShow.value = true state.componentSourceType = view.type + state.dataFrom = view.dataFrom viewInfo.value = deepCopy(view) as DeepPartial viewInfo.value.customStyle.text.show = false config.value = deepCopy(item)