实训双击问题调整

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