北交大客流 车站人数代码调整

地图绘图代码调整
This commit is contained in:
joylink_cuiweidong 2021-01-27 15:39:53 +08:00
parent ccaceffeca
commit 8f82b0fdd5
2 changed files with 9 additions and 7 deletions

View File

@ -206,10 +206,11 @@ export default {
'$store.state.socket.trainPfiBL':function(val) {
if (val) {
const trainNum = this.$store.state.socket.trainPfiBL;
const device = this.$store.getters['map/getDeviceByCode'](trainNum.code);
// const device = this.$store.getters['map/getDeviceByCode'](trainNum.code);
trainNum.deviceType = 'TRAIN';
// console.log(trainNum, device, device.num, trainNum.in, trainNum.out, 'changed');
trainNum.num = device.num + trainNum.in - trainNum.out;
trainNum.num = trainNum.remain;
// device.num + trainNum.in - trainNum.out;
// console.log(trainNum.num, 'changeder');
this.$store.dispatch('training/updateMapState', [trainNum]);
}

View File

@ -278,10 +278,11 @@ export default {
return this.editModel.type != 'StationTurnBack';
},
isDisabledStation() {
return this.editModel.type == 'AutoTurnBack' || this.editModel.type == 'AutomaticRoute';
// || this.editModel.type == 'AutomaticRoute'
return this.editModel.type == 'AutoTurnBack';
},
isHiddenStation() {
return this.editModel.type == 'AutoTurnBack' || this.editModel.type == 'GuideLock' || this.editModel.type == 'AxleReset' || this.editModel.type == 'StationTurnBack';
return this.editModel.type == 'AutoTurnBack' || this.editModel.type == 'GuideLock' || this.editModel.type == 'AxleReset' || this.editModel.type == 'StationTurnBack' || this.editModel.type == 'AutomaticRoute';
},
isHiddenCreateAutomaticRoute() {
@ -301,9 +302,9 @@ export default {
},
methods: {
setStation(data) {
if (data.automaticRouteCode) {
this.changeEditStation(data.automaticRouteCode);
}
// if (data.automaticRouteCode) {
// this.changeEditStation(data.automaticRouteCode);
// }
if (data.cycleCode) {
this.changeEditStation(data.cycleCode);
}