fix:修改导出pdf的文件名

This commit is contained in:
zhangyu
2022-04-15 16:29:23 +08:00
parent 88562848d3
commit 9c5df8a354
3 changed files with 5 additions and 3 deletions

View File

@@ -123,7 +123,8 @@ export default {
alias += chartInfo.elements[expressionIndex].expression
}
// proj_status_
const name = alias + '-' + dataIndex
const legendIndex = expressionIndex + 'and' + dataIndex
const name = alias + '-' + legendIndex
// 若需要统计,处理统计数据
const statisticsTypes = chartInfo.param.legend ? chartInfo.param.legend.values : ''
@@ -292,7 +293,7 @@ export default {
}
},
mounted () {
this.chartId = `${this.chartInfo.id}${this.isFullscreen ? '-fullscreen' : ''}`
},
beforeDestroy () {

View File

@@ -180,6 +180,7 @@ export default {
return {
fromRoute,
pdfId: 'pdfDom',
htmlTitle: 'panel',
panelTabLoading: false,
showTopBtn: false, // top按钮
visible: false,

View File

@@ -819,7 +819,7 @@ export default {
let dom = document.getElementsByClassName(this.pdfId)[0]
if (dom) {
// dom = dom.getElementsByClassName('vue-grid-layout')[0]
this.htmlTitle = this.panel.name
this.htmlTitle = this.showPanel.name
this.scrollbarWrap.scrollTop = this.scrollbarWrap.scrollHeight
this.$refs.chartList.onScroll(this.scrollbarWrap.scrollTop)
console.log(dom.children)