NEZ-1679 fix:打开图表内的过去时间按钮后再次点击按钮关闭图表显示内容出错
This commit is contained in:
@@ -88,7 +88,10 @@ export default {
|
|||||||
this.filter.value = this.searchTime[2]
|
this.filter.value = this.searchTime[2]
|
||||||
this.filter.id = this.$refs.pickTime.$refs.timePicker.showTime.id
|
this.filter.id = this.$refs.pickTime.$refs.timePicker.showTime.id
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const multipleTime = this.$refs.pickTime.$refs.multipleTime ? this.$refs.pickTime.$refs.multipleTime.searchTime : ''
|
let multipleTime = this.$refs.pickTime.$refs.multipleTime ? this.$refs.pickTime.$refs.multipleTime.searchTime : ''
|
||||||
|
if (this.$refs.pickTime.$refs.multipleTime && !this.$refs.pickTime.$refs.multipleTime.showDropdown) {
|
||||||
|
multipleTime = ''
|
||||||
|
}
|
||||||
this.$emit('dateChange', this.filter, multipleTime)
|
this.$emit('dateChange', this.filter, multipleTime)
|
||||||
}, 100)
|
}, 100)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export default {
|
|||||||
/* 使用setTimeout延迟渲染图表,避免样式错乱 */
|
/* 使用setTimeout延迟渲染图表,避免样式错乱 */
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const myChart = this.isInit ? echarts.init(document.getElementById(`chart-canvas-${this.chartId}`)) : getChart(this.chartId)
|
const myChart = this.isInit ? echarts.init(document.getElementById(`chart-canvas-${this.chartId}`)) : getChart(this.chartId)
|
||||||
|
myChart.clear()
|
||||||
if (!myChart) {
|
if (!myChart) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user