fix:修改导出pdf的文件名
This commit is contained in:
@@ -123,7 +123,8 @@ export default {
|
|||||||
alias += chartInfo.elements[expressionIndex].expression
|
alias += chartInfo.elements[expressionIndex].expression
|
||||||
}
|
}
|
||||||
// proj_status_
|
// proj_status_
|
||||||
const name = alias + '-' + dataIndex
|
const legendIndex = expressionIndex + 'and' + dataIndex
|
||||||
|
const name = alias + '-' + legendIndex
|
||||||
|
|
||||||
// 若需要统计,处理统计数据
|
// 若需要统计,处理统计数据
|
||||||
const statisticsTypes = chartInfo.param.legend ? chartInfo.param.legend.values : ''
|
const statisticsTypes = chartInfo.param.legend ? chartInfo.param.legend.values : ''
|
||||||
|
|||||||
@@ -180,6 +180,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
fromRoute,
|
fromRoute,
|
||||||
pdfId: 'pdfDom',
|
pdfId: 'pdfDom',
|
||||||
|
htmlTitle: 'panel',
|
||||||
panelTabLoading: false,
|
panelTabLoading: false,
|
||||||
showTopBtn: false, // top按钮
|
showTopBtn: false, // top按钮
|
||||||
visible: false,
|
visible: false,
|
||||||
|
|||||||
@@ -819,7 +819,7 @@ export default {
|
|||||||
let dom = document.getElementsByClassName(this.pdfId)[0]
|
let dom = document.getElementsByClassName(this.pdfId)[0]
|
||||||
if (dom) {
|
if (dom) {
|
||||||
// dom = dom.getElementsByClassName('vue-grid-layout')[0]
|
// dom = dom.getElementsByClassName('vue-grid-layout')[0]
|
||||||
this.htmlTitle = this.panel.name
|
this.htmlTitle = this.showPanel.name
|
||||||
this.scrollbarWrap.scrollTop = this.scrollbarWrap.scrollHeight
|
this.scrollbarWrap.scrollTop = this.scrollbarWrap.scrollHeight
|
||||||
this.$refs.chartList.onScroll(this.scrollbarWrap.scrollTop)
|
this.$refs.chartList.onScroll(this.scrollbarWrap.scrollTop)
|
||||||
console.log(dom.children)
|
console.log(dom.children)
|
||||||
|
|||||||
Reference in New Issue
Block a user