desc: 修改代码

This commit is contained in:
zyy 2019-11-14 18:53:52 +08:00
parent d782d7e151
commit cb7d7de930

View File

@ -262,6 +262,7 @@ export default {
}
if (item.name == 'trainLabel') {
item.data = [];
op.series.splice(index, 1);
}
});
this.myChart.setOption(op);
@ -276,7 +277,7 @@ export default {
const data = [];
tripNumber = row.tripNumber;
const op = this.myChart.getOption();
op.series.forEach(item => {
op.series.forEach((item, index) => {
if (item.name == serviceNumber) {
item.data.forEach(nor => {
if (nor[3] == tripNumber) {
@ -286,6 +287,7 @@ export default {
}
if (item.name == 'trainLabel') {
item.data = [];
op.series.splice(index, 1);
}
});
op.series.push({
@ -339,7 +341,6 @@ export default {
}
height = height - top;
debugger;
this.$store.dispatch('runPlan/resize', { width, height });
if (this.top != top) {