forked from github/dataease
Merge pull request #10191 from dataease/pr@dev-v2@refactor_export-auth
refactor(仪表板): 导出权限中增加预览图表导出的控制 #9836
This commit is contained in:
commit
432561aa62
@ -131,7 +131,7 @@
|
|||||||
<el-dropdown
|
<el-dropdown
|
||||||
trigger="click"
|
trigger="click"
|
||||||
placement="right-start"
|
placement="right-start"
|
||||||
v-if="element.innerType !== 'rich-text' && barShowCheck('previewDownload')"
|
v-if="element.innerType !== 'rich-text' && barShowCheck('previewDownload') && authShow"
|
||||||
>
|
>
|
||||||
<el-icon @click="downloadClick" class="bar-base-icon">
|
<el-icon @click="downloadClick" class="bar-base-icon">
|
||||||
<el-tooltip :content="t('chart.export')" effect="dark" placement="bottom">
|
<el-tooltip :content="t('chart.export')" effect="dark" placement="bottom">
|
||||||
@ -174,6 +174,7 @@ const dvMainStore = dvMainStoreWithOut()
|
|||||||
const snapshotStore = snapshotStoreWithOut()
|
const snapshotStore = snapshotStoreWithOut()
|
||||||
const copyStore = copyStoreWithOut()
|
const copyStore = copyStoreWithOut()
|
||||||
const customTabsSortRef = ref(null)
|
const customTabsSortRef = ref(null)
|
||||||
|
const authShow = computed(() => dvInfo.value.weight > 3)
|
||||||
const emits = defineEmits([
|
const emits = defineEmits([
|
||||||
'userViewEnlargeOpen',
|
'userViewEnlargeOpen',
|
||||||
'closePreview',
|
'closePreview',
|
||||||
@ -264,8 +265,15 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const { element, index, showPosition, canvasId } = toRefs(props)
|
const { element, index, showPosition, canvasId } = toRefs(props)
|
||||||
const { batchOptStatus, pcMatrixCount, curComponent, componentData, canvasViewInfo, mobileInPc } =
|
const {
|
||||||
storeToRefs(dvMainStore)
|
batchOptStatus,
|
||||||
|
pcMatrixCount,
|
||||||
|
curComponent,
|
||||||
|
componentData,
|
||||||
|
canvasViewInfo,
|
||||||
|
mobileInPc,
|
||||||
|
dvInfo
|
||||||
|
} = storeToRefs(dvMainStore)
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
systemOS: 'Mac',
|
systemOS: 'Mac',
|
||||||
|
Loading…
Reference in New Issue
Block a user