From cf871345e3f9853bfb74098b0750da7f97699730 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 22 Jan 2021 19:52:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=8D=97=E4=BA=AC=E4=BA=8C?= =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nanjing_02/menus/dialog/trainControl.vue | 12 ++++++------ .../theme/nanjing_02/menus/menuButton.vue | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/jmapNew/theme/nanjing_02/menus/dialog/trainControl.vue b/src/jmapNew/theme/nanjing_02/menus/dialog/trainControl.vue index 11ee4744d..78b4ed949 100644 --- a/src/jmapNew/theme/nanjing_02/menus/dialog/trainControl.vue +++ b/src/jmapNew/theme/nanjing_02/menus/dialog/trainControl.vue @@ -154,12 +154,12 @@ export default { watch:{ '$store.state.menuOperation.selectedCount':function(em) { const device = this.$store.state.menuOperation.selected; - if (device && device.code && device.deviceType === 'TRAIN') { - this.tempTableData = [device]; - this.sectionCode = device.sectionModel.name; - this.tripNum = device.destinationCode + device.serviceNumber + (device.tripNumber.substring(1)); - this.groupNum = device.groupNumber; - } + // if (device && device.code && device.deviceType === 'TRAIN') { + // this.tempTableData = [device]; + // this.sectionCode = device.sectionModel.name; + // this.tripNum = device.destinationCode + device.serviceNumber + (device.tripNumber.substring(1)); + // this.groupNum = device.groupNumber; + // } } }, mounted() { diff --git a/src/jmapNew/theme/nanjing_02/menus/menuButton.vue b/src/jmapNew/theme/nanjing_02/menus/menuButton.vue index 9e76cdd04..f3eaea535 100644 --- a/src/jmapNew/theme/nanjing_02/menus/menuButton.vue +++ b/src/jmapNew/theme/nanjing_02/menus/menuButton.vue @@ -847,14 +847,14 @@ export default { handleTrainParam() { if (this.selectedObj.type === '01') { this.formModelSectionName = this.selectedObj.name; - this.$store.state.map.activeTrainList.forEach(trainCode => { - const trainModel = this.$store.getters['map/getDeviceByCode'](trainCode); - if (trainModel && trainModel.physicalCode === this.selectedObj.code) { - this.formModelTripNum = trainModel.serviceNumber + trainModel.destinationCode + (trainModel.tripNumber.substring(1)); - this.trainModel = trainModel; - this.formModelNewTrip = ''; - } - }); + // this.$store.state.map.activeTrainList.forEach(trainCode => { + // const trainModel = this.$store.getters['map/getDeviceByCode'](trainCode); + // if (trainModel && trainModel.physicalCode === this.selectedObj.code) { + // this.formModelTripNum = trainModel.serviceNumber + trainModel.destinationCode + (trainModel.tripNumber.substring(1)); + // this.trainModel = trainModel; + // this.formModelNewTrip = ''; + // } + // }); } }, pushTempData(list) {