fix:修改预览时报错的问题

This commit is contained in:
zhangyu
2020-12-16 15:01:18 +08:00
parent 41cf9226db
commit fc45c8a0c2

View File

@@ -551,7 +551,7 @@
this.noData=false; this.noData=false;
} }
let _chartItem = JSON.parse(JSON.stringify(chartItem)); let _chartItem = JSON.parse(JSON.stringify(chartItem));
if (chartItem.from == $CONSTANTS.fromRoute.endpoint) { if (chartItem.from == this.$CONSTANTS.fromRoute.endpoint) {
_chartItem.type = "line"; _chartItem.type = "line";
} }
this.setData(_chartItem, series, legend); this.setData(_chartItem, series, legend);
@@ -1105,7 +1105,7 @@
this.getChartData(); this.getChartData();
} else if (chartType === 'line' || chartType === 'bar' || chartType === 'stackArea' || chartType === 4 || this.chart.from == 'endpoint') { } else if (chartType === 'line' || chartType === 'bar' || chartType === 'stackArea' || chartType === 4 || this.chart.from == 'endpoint') {
this.echartModalStore.clear(); this.echartModalStore.clear();
if (this.chart.from != $CONSTANTS.fromRoute.endpoint) { if (this.chart.from != this.$CONSTANTS.fromRoute.endpoint) {
this.showLegend = false; this.showLegend = false;
} }
this.$refs.loadingPreview.startLoading(); this.$refs.loadingPreview.startLoading();