实训双击问题调整
This commit is contained in:
parent
d5e2e69965
commit
a0eaa636f9
@ -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'), {
|
||||
|
Loading…
Reference in New Issue
Block a user