注释南京二列车操作

This commit is contained in:
fan 2021-01-22 19:52:08 +08:00
parent 67a061d9da
commit cf871345e3
2 changed files with 14 additions and 14 deletions

View File

@ -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() {

View File

@ -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) {