forked from github/dataease
Merge pull request #2169 from dataease/pr@dev@fix_view-image-export-botton
fix: 表格明细无需显示导出图片按钮
This commit is contained in:
commit
ae38dc2715
@ -38,7 +38,7 @@
|
||||
</el-button>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item @click.native="exportExcel"><svg-icon icon-class="ds-excel" class="ds-icon-excel" />Excle</el-dropdown-item>
|
||||
<el-dropdown-item icon="el-icon-picture-outline" @click.native="exportViewImg">{{ $t('chart.image') }}</el-dropdown-item>
|
||||
<el-dropdown-item v-if="showExportImgButton" icon="el-icon-picture-outline" @click.native="exportViewImg">{{ $t('chart.image') }}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</span>
|
||||
@ -137,6 +137,9 @@ export default {
|
||||
created() {
|
||||
},
|
||||
computed: {
|
||||
showExportImgButton() {
|
||||
return this.showChartInfo.type && !this.showChartInfo.type.includes('table')
|
||||
},
|
||||
canvasInfoMainStyle() {
|
||||
if (this.backScreenShot) {
|
||||
return {
|
||||
|
@ -160,7 +160,7 @@
|
||||
</el-button>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item @click.native="exportExcel"><svg-icon icon-class="ds-excel" class="ds-icon-excel" />Excle</el-dropdown-item>
|
||||
<el-dropdown-item icon="el-icon-picture-outline" @click.native="exportViewImg">{{ $t('chart.image') }}</el-dropdown-item>
|
||||
<el-dropdown-item v-if="showExportImgButton" icon="el-icon-picture-outline" @click.native="exportViewImg">{{ $t('chart.image') }}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</span>
|
||||
@ -952,6 +952,10 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
showExportImgButton() {
|
||||
// if the chart type belong to table,'export image' button should be hidden
|
||||
return this.showChartInfo.type && !this.showChartInfo.type.includes('table')
|
||||
},
|
||||
showGrid() {
|
||||
if (this.canvasStyleData && this.canvasStyleData.aidedDesign) {
|
||||
return this.canvasStyleData.aidedDesign.showGrid
|
||||
|
Loading…
Reference in New Issue
Block a user