From cb6d891d2b0637413eb299084da8212b7076b4bb Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 31 Jul 2020 16:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/displayNew/demon/runPlanView.vue | 1 - src/views/planSchedule/schedule.vue | 13 ++++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/newMap/displayNew/demon/runPlanView.vue b/src/views/newMap/displayNew/demon/runPlanView.vue index b38cd7268..e542585f9 100644 --- a/src/views/newMap/displayNew/demon/runPlanView.vue +++ b/src/views/newMap/displayNew/demon/runPlanView.vue @@ -254,7 +254,6 @@ export default { }); }, beforeDestroy() { - debugger; this.destroy(); }, methods: { diff --git a/src/views/planSchedule/schedule.vue b/src/views/planSchedule/schedule.vue index 343c885d1..5632d8175 100644 --- a/src/views/planSchedule/schedule.vue +++ b/src/views/planSchedule/schedule.vue @@ -235,7 +235,7 @@ export default { serviceNumberChange(row) { if (row) { this.$store.dispatch('runPlan/setSelected', { serviceNumber: row.serviceNumber, tripNumber: null }); - this.renderTripNumber({ serviceNumber: row.serviceNumber, tripNumber: null }); + // this.renderTripNumber({ serviceNumber: row.serviceNumber, tripNumber: null }); const serviceObj = this.$store.state.runPlan.editData[row.serviceNumber]; if (serviceObj) { this.analyticalTripNumber(serviceObj.trainMap); @@ -245,7 +245,7 @@ export default { tripNumberChange(row) { if (row) { this.$store.dispatch('runPlan/setSelected', { serviceNumber: this.$store.state.runPlan.selected.serviceNumber, tripNumber: row.tripNumber }); - this.renderTripNumber({ serviceNumber: this.$store.state.runPlan.selected.serviceNumber, tripNumber: row.tripNumber }); + // this.renderTripNumber({ serviceNumber: this.$store.state.runPlan.selected.serviceNumber, tripNumber: row.tripNumber }); } }, async analyticalServiceNumber(data) { @@ -417,14 +417,12 @@ export default { ].join(''); }, renderTripNumber(params) { - const tripNumber = params.tripNumber; // 车次号 - const serviceNumber = params.serviceNumber; // 服务号 let data, markPoint; const op = this.myChart.getOption(); op.series.forEach((item, index) => { - if (item.name == serviceNumber && item.data) { - if (tripNumber) { - const temp = item.data.filter(elem => elem[3] == tripNumber); + if (item.name == params.serviceNumber && item.data) { + if (params.tripNumber) { + const temp = item.data.filter(elem => elem[3] == params.tripNumber); if (temp.length) { data = temp; item.markPoint.data.forEach(each=>{ @@ -465,6 +463,7 @@ export default { this.myChart && this.myChart.setOption(op, true); }, 50); }, + mouseClick(params) { const model = { serviceNumber: params.seriesName