北京一号线 信号机操作代码调整

This commit is contained in:
joylink_cuiweidong 2020-02-25 15:08:48 +08:00
parent b221e8e6b9
commit 2978438390
3 changed files with 4 additions and 2 deletions

View File

@ -217,6 +217,8 @@ export default {
if (!item.disabled) { if (!item.disabled) {
this.changeList.push(true); this.changeList.push(true);
this.selection.push(item.code); this.selection.push(item.code);
} else {
this.changeList.push(null);
} }
}); });
this.allSelect = true; this.allSelect = true;
@ -290,7 +292,6 @@ export default {
routeCodeList:this.selection routeCodeList:this.selection
} }
}; };
this.loading = true; this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false; this.loading = false;

View File

@ -385,7 +385,7 @@ export default {
this.routeList.forEach(elem => { this.routeList.forEach(elem => {
if (elem.startSignalCode === this.selected.code) { if (elem.startSignalCode === this.selected.code) {
routes.push(elem); routes.push(elem);
} }
}); });
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.routeHandControl.doShow(operate, this.selected, routes); this.$refs.routeHandControl.doShow(operate, this.selected, routes);

View File

@ -22,6 +22,7 @@ export function creatSubscribe(topic, header) {
function callback(Response) { function callback(Response) {
if (store) { if (store) {
var data = JSON.parse(Response.body); var data = JSON.parse(Response.body);
console.log(data);
store.dispatch('socket/setStomp', data); store.dispatch('socket/setStomp', data);
} else { } else {
callback(Response); callback(Response);