实训双击问题调整

This commit is contained in:
fan 2022-06-06 16:43:11 +08:00
parent 215dab7074
commit 0929b54f9d

View File

@ -9,6 +9,7 @@
<div>
<el-tree
ref="tree"
v-loading="loading"
:data="courseModel.treeList"
node-key="id"
:props="defaultProps"
@ -62,6 +63,7 @@ export default {
return {
num: 5,
disabled: false,
loading: false,
WhetherTypeList: [],
EffectiveTypeList: [],
courseModel: {
@ -146,6 +148,7 @@ export default {
if (obj && obj.type === 'Training') {
if (obj.valid) {
this.disabled = true;
this.loading = true;
trainingNotifyNew({ trainingId: obj.id }).then(resp => {
const query = {
group: resp.data, trainingId: obj.id, lessonId: this.$route.query.lessonId, mapId: this.courseModel.mapId, lineCode: this.lineCode, noPreLogout: this.$route.query.noPreLogout
@ -162,6 +165,7 @@ export default {
}).catch(error => {
this.$messageBox(`${this.$t('tip.createSimulationFaild')} : ${error.message}`);
this.disabled = false;
this.loading = false;
});
} else {
this.$confirm(this.$t('tip.accessCourseNo'), this.$t('tip.hint'), {