实训调整
This commit is contained in:
parent
edc15a02ba
commit
5ad7c1f8a1
@ -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() {
|
||||
},
|
||||
|
@ -178,6 +178,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