实训调整

This commit is contained in:
fan 2022-08-30 16:09:17 +08:00
parent edc15a02ba
commit 5ad7c1f8a1
4 changed files with 4 additions and 3 deletions

View File

@ -467,6 +467,7 @@ const training = {
rtn && rtn.valid && commit('next');
}
}
store.dispatch('trainingNew/setTrainingOperate');
resolve(rtn);
}
}).catch(error => {

View File

@ -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('结束实训失败!');
});

View File

@ -70,7 +70,7 @@ export default {
},
async beforeDestroy() {
this.$store.dispatch('socket/clearTrainingOverCount');
this.$store.dispatch('training/clearStepOverCount');
this.$store.dispatch('trainingNew/clearStepOverCount');
},
mounted() {
},

View File

@ -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});