Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
f38c129319
@ -266,8 +266,8 @@ export default {
|
||||
commit() {
|
||||
if (this.route) {
|
||||
this.loading = true;
|
||||
const type = this.route.lock ? menuOperate.Signal.cancelTrainRoute : menuOperate.Signal.arrangementRoute;
|
||||
const param = this.route.lock ? { signalCode: this.route.startSignalCode } : { routeCode:this.route.code };
|
||||
const type = this.route.lock ? menuOperate.Signal.cancelTrainRoute : menuOperate.CTC.setRoute;
|
||||
const param = this.route.lock ? { signalCode: this.route.startSignalCode } : { routeCode:this.route.code, tripNumber: this.selected.tripNumber, force: false, duration: null };
|
||||
commitOperate(type, param, 3).then(({valid, operate})=>{
|
||||
this.loading = false;
|
||||
if (valid) {
|
||||
|
@ -467,6 +467,7 @@ const training = {
|
||||
rtn && rtn.valid && commit('next');
|
||||
}
|
||||
}
|
||||
store.dispatch('trainingNew/setTrainingOperate');
|
||||
resolve(rtn);
|
||||
}
|
||||
}).catch(error => {
|
||||
|
@ -59,7 +59,7 @@ export default {
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.$store.dispatch('socket/clearTrainingOverCount');
|
||||
this.$store.dispatch('training/clearStepOverCount');
|
||||
this.$store.dispatch('trainingNew/clearStepOverCount');
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
@ -91,7 +91,6 @@ export default {
|
||||
this.$store.dispatch('socket/clearTrainingStepTip');
|
||||
this.$store.dispatch('trainingNew/clearStepOrder');
|
||||
this.$store.dispatch('trainingNew/changeTeachMode', '');
|
||||
this.$store.dispatch('trainingNew/setTrainingDetail', null);
|
||||
}).catch(() => {
|
||||
this.$message.error('结束实训失败!');
|
||||
});
|
||||
|
@ -70,7 +70,7 @@ export default {
|
||||
},
|
||||
async beforeDestroy() {
|
||||
this.$store.dispatch('socket/clearTrainingOverCount');
|
||||
this.$store.dispatch('training/clearStepOverCount');
|
||||
this.$store.dispatch('trainingNew/clearStepOverCount');
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
|
@ -184,6 +184,7 @@ export default {
|
||||
drawUp(index, row) {
|
||||
console.log('编辑', index, row);
|
||||
getTrainingAll(row.id).then(resp => {
|
||||
this.$store.dispatch('trainingNew/setTrainingDetail', null);
|
||||
if (resp.data && resp.data.mapLocationJson) {
|
||||
const mapLocation = JSON.parse(resp.data.mapLocationJson);
|
||||
this.$jlmap.updateTransform(mapLocation.scale, {x:mapLocation.x, y:mapLocation.y});
|
||||
|
Loading…
Reference in New Issue
Block a user