调整加载代码

This commit is contained in:
zyy 2020-08-27 18:41:33 +08:00
parent a34d3eb9ef
commit ae9f9a962b
4 changed files with 7 additions and 16 deletions

View File

@ -341,7 +341,7 @@ const training = {
commit('resetScore');
// 设置其他属性状态
commit('setOffsetStationCode', null);
commit('changeMode', null);
// commit('changeMode', null);
},
/**

View File

@ -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)) {
//
//

View File

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

View File

@ -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 {