|
@@ -115,16 +115,14 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<completion-view
|
|
<completion-view
|
|
- v-if="my_execute_info.is_finished === 'true'"
|
|
|
|
:task-id="id"
|
|
:task-id="id"
|
|
:cur-student-id="$store.state.user.user_code"
|
|
:cur-student-id="$store.state.user.user_code"
|
|
- :cur-courseware-id="coursewareId"
|
|
|
|
|
|
+ :cur-courseware-id="curCoursewareId"
|
|
:dialog-visible="dialogVisible_completion"
|
|
:dialog-visible="dialogVisible_completion"
|
|
@dialogClose="dialogClose_completion"
|
|
@dialogClose="dialogClose_completion"
|
|
/>
|
|
/>
|
|
|
|
|
|
<finish-courseware
|
|
<finish-courseware
|
|
- v-else
|
|
|
|
:id="id"
|
|
:id="id"
|
|
:courseware-id="coursewareId"
|
|
:courseware-id="coursewareId"
|
|
:dialog-visible="dialogVisible"
|
|
:dialog-visible="dialogVisible"
|
|
@@ -169,6 +167,7 @@ export default {
|
|
file_list: [],
|
|
file_list: [],
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
coursewareId: '',
|
|
coursewareId: '',
|
|
|
|
+ curCoursewareId: '',
|
|
dialogVisible_completion: false,
|
|
dialogVisible_completion: false,
|
|
my_execute_info: {},
|
|
my_execute_info: {},
|
|
student_remark: '',
|
|
student_remark: '',
|
|
@@ -298,11 +297,12 @@ export default {
|
|
if (this.my_execute_info.is_finished === 'true' && is_finished === 'false') {
|
|
if (this.my_execute_info.is_finished === 'true' && is_finished === 'false') {
|
|
return this.$message.warning('该课件没有被完成');
|
|
return this.$message.warning('该课件没有被完成');
|
|
}
|
|
}
|
|
- this.coursewareId = id;
|
|
|
|
- if (this.my_execute_info.is_finished === 'true') {
|
|
|
|
|
|
+ if (is_finished === 'true') {
|
|
this.dialogVisible_completion = true;
|
|
this.dialogVisible_completion = true;
|
|
|
|
+ this.curCoursewareId = id;
|
|
} else {
|
|
} else {
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
|
|
+ this.coursewareId = id;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -313,7 +313,7 @@ export default {
|
|
|
|
|
|
dialogClose_completion() {
|
|
dialogClose_completion() {
|
|
this.dialogVisible_completion = false;
|
|
this.dialogVisible_completion = false;
|
|
- this.coursewareId = '';
|
|
|
|
|
|
+ this.curCoursewareId = '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|