NEZ-2078 fix:新建System修改不同的Display点击预览,偶尔会出现图表超出预览框现象
This commit is contained in:
@@ -497,17 +497,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
preview (show) {
|
preview (show) {
|
||||||
|
this.previewShow = show
|
||||||
if (show) {
|
if (show) {
|
||||||
const start = new Date().setHours(new Date().getHours() - 1)
|
this.$nextTick(() => {
|
||||||
const end = new Date()
|
const start = new Date().setHours(new Date().getHours() - 1)
|
||||||
this.timeRange = [bus.computeTimezoneTime(start), bus.computeTimezoneTime(end)]
|
const end = new Date()
|
||||||
this.prevChart = lodash.cloneDeep(this.editChart)
|
this.timeRange = [bus.computeTimezoneTime(start), bus.computeTimezoneTime(end)]
|
||||||
this.prevChart.loaded = true
|
setTimeout(() => {
|
||||||
this.prevChart.param.showHeader = true
|
this.prevChart = lodash.cloneDeep(this.editChart)
|
||||||
|
this.prevChart.loaded = true
|
||||||
|
this.prevChart.param.showHeader = true
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
|
||||||
this.previewShow = show
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
|||||||
Reference in New Issue
Block a user