一键生成实训代码调整
This commit is contained in:
parent
78995be06f
commit
bcca3c5858
@ -47,6 +47,7 @@ export default {
|
|||||||
ControlConvertMenu: [],
|
ControlConvertMenu: [],
|
||||||
TrainWindow: []
|
TrainWindow: []
|
||||||
},
|
},
|
||||||
|
isLeaving:false,
|
||||||
trainingTypeMap: {},
|
trainingTypeMap: {},
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
pageSize: 'pageSize',
|
pageSize: 'pageSize',
|
||||||
@ -173,6 +174,9 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.interCheckGenerateStatus();
|
this.interCheckGenerateStatus();
|
||||||
},
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
this.isLeaving = true;
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async loadInitData(queryData) {
|
async loadInitData(queryData) {
|
||||||
this.mapIdList = [];
|
this.mapIdList = [];
|
||||||
@ -223,11 +227,15 @@ export default {
|
|||||||
this.queryList.actions.push({ text: this.$t('lesson.generateTraining'), btnCode: 'employee_auto', handler: this.autoMaticTrainging, disabled:false });
|
this.queryList.actions.push({ text: this.$t('lesson.generateTraining'), btnCode: 'employee_auto', handler: this.autoMaticTrainging, disabled:false });
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if (!this.isLeaving) {
|
||||||
this.interCheckGenerateStatus(this.$route.query.mapId, false);
|
this.interCheckGenerateStatus(this.$route.query.mapId, false);
|
||||||
|
}
|
||||||
}, 30000);
|
}, 30000);
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if (!this.isLeaving) {
|
||||||
this.interCheckGenerateStatus(this.$route.query.mapId, false);
|
this.interCheckGenerateStatus(this.$route.query.mapId, false);
|
||||||
|
}
|
||||||
}, 30000);
|
}, 30000);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user