调整加载代码
This commit is contained in:
parent
a34d3eb9ef
commit
ae9f9a962b
@ -341,7 +341,7 @@ const training = {
|
||||
commit('resetScore');
|
||||
// 设置其他属性状态
|
||||
commit('setOffsetStationCode', null);
|
||||
commit('changeMode', null);
|
||||
// commit('changeMode', null);
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -200,7 +200,7 @@ export default {
|
||||
end() {
|
||||
// 如果是测试模式需要获取最终的得分
|
||||
if (this.trainingObj && this.trainingObj.id) {
|
||||
if (this.started) {
|
||||
if (this.started) {
|
||||
this.isDisable = false;
|
||||
this.$store.dispatch('training/isStepOver').then((rnt) => {
|
||||
if (rnt) {
|
||||
@ -256,7 +256,7 @@ export default {
|
||||
},
|
||||
// 课程和考试系统
|
||||
async initData() {
|
||||
this.$store.dispatch('training/end', null);
|
||||
// this.$store.dispatch('training/end', null);
|
||||
if (parseInt(this.$route.query.trainingId)) {
|
||||
// 设置地图数据
|
||||
// 设置实训数据
|
||||
|
@ -696,8 +696,10 @@ export default {
|
||||
}
|
||||
selected.relevanceSectionList.forEach(dataCode => { // 关联道岔区段 父元素清空
|
||||
const sectionModel = this.getSectionByCode(dataCode);
|
||||
sectionModel.parentCode = '';
|
||||
models.push(sectionModel);
|
||||
if (sectionModel) {
|
||||
sectionModel.parentCode = '';
|
||||
models.push(sectionModel);
|
||||
}
|
||||
});
|
||||
return models;
|
||||
},
|
||||
|
@ -275,17 +275,6 @@ export default {
|
||||
}
|
||||
});
|
||||
}
|
||||
// if (sectiona1.points[sectiona1.points.length - 1].x == sectiona.points[0].x && sectiona1.points[sectiona1.points.length - 1].y == sectiona.points[0].y) {
|
||||
// elem['relevanceSectionList'] = [elem.sectionACode, elem.sectionBCode, elem.sectionCCode, ele.sectionACode, ele.sectionBCode, ele.sectionCCode];
|
||||
// sectiona1.parentCode = uid;
|
||||
// sectionb1.parentCode = uid;
|
||||
// sectionc1.parentCode = uid;
|
||||
// sectionList.forEach((item, index) => {
|
||||
// if (item.code == elem.code) {
|
||||
// sectionList.splice(index, 1);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user