成都一号线右键菜单调整

This commit is contained in:
fan 2020-01-09 09:28:20 +08:00
parent 09b27a8d62
commit 6e90989ece

View File

@ -210,12 +210,12 @@ export default {
Switch_Code: this.selected.code Switch_Code: this.selected.code
} }
}; };
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) { // if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.switchControl.doShow(operate, this.selected); // this.$refs.switchControl.doShow(operate, this.selected);
} // }
}); // });
}, },
// //
unlock() { unlock() {
@ -226,12 +226,12 @@ export default {
Switch_Code: this.selected.code Switch_Code: this.selected.code
} }
}; };
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) { // if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.switchControl.doShow(operate, this.selected); // this.$refs.switchControl.doShow(operate, this.selected);
} // }
}); // });
}, },
// //
block() { block() {
@ -306,12 +306,12 @@ export default {
Switch_Code: this.selected.code Switch_Code: this.selected.code
} }
}; };
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) { // if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.switchControl.doShow(operate, this.selected); // this.$refs.switchControl.doShow(operate, this.selected);
} // }
}); // });
}, },
// //
reverse() { reverse() {
@ -322,12 +322,12 @@ export default {
Switch_Code: this.selected.code Switch_Code: this.selected.code
} }
}; };
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { // this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) { // if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.switchControl.doShow(operate, this.selected); // this.$refs.switchControl.doShow(operate, this.selected);
} // }
}); // });
}, },
undeveloped() { undeveloped() {
this.doClose(); this.doClose();