fix: 一系列bug修复

This commit is contained in:
陈劲松
2020-12-16 11:26:51 +08:00
committed by chenjinsong
parent 6966e3a01d
commit dc54e26193
14 changed files with 47 additions and 27 deletions

View File

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