|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="teacher-task-detail">
|
|
|
+ <div v-loading="loading" class="teacher-task-detail">
|
|
|
<task-top :item-info="itemInfo" />
|
|
|
|
|
|
<div class="teacher-task-detail-main">
|
|
@@ -65,6 +65,14 @@
|
|
|
</div>
|
|
|
<div class="title">学生留言</div>
|
|
|
<div>{{ curFinishDetail.student_message }}</div>
|
|
|
+ <template v-if="teaching_type === 10">
|
|
|
+ <div class="title">学员课后评价</div>
|
|
|
+ <div>{{ student_remark }}</div>
|
|
|
+ <div class="title">
|
|
|
+ <span>学员课后评分</span>
|
|
|
+ <el-rate v-model="student_score" disabled />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<div class="title">
|
|
|
<span>教师点评</span>
|
|
|
<el-rate v-model="teacher_score"></el-rate>
|
|
@@ -133,46 +141,54 @@ export default {
|
|
|
},
|
|
|
teacher_remark: '',
|
|
|
teacher_score: 0,
|
|
|
+ student_remark: '',
|
|
|
+ student_score: 0,
|
|
|
dialogVisible: false,
|
|
|
- curCoursewareId: ''
|
|
|
+ curCoursewareId: '',
|
|
|
+ loading: false
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.loading = true;
|
|
|
GetTaskInfo({
|
|
|
id: this.id,
|
|
|
is_contain_cs_item_learning_material: true,
|
|
|
is_contain_student: true
|
|
|
- }).then(
|
|
|
- ({
|
|
|
- name,
|
|
|
- teaching_type,
|
|
|
- time_type,
|
|
|
- course_name,
|
|
|
- courseware_list,
|
|
|
- cs_item_name,
|
|
|
- accessory_list,
|
|
|
- cs_item_learning_material_list,
|
|
|
- task_mode,
|
|
|
- time_space_view_txt,
|
|
|
- student_list
|
|
|
- }) => {
|
|
|
- this.itemInfo = {
|
|
|
- time_space_view_txt,
|
|
|
+ })
|
|
|
+ .then(
|
|
|
+ ({
|
|
|
+ name,
|
|
|
+ teaching_type,
|
|
|
+ time_type,
|
|
|
course_name,
|
|
|
+ courseware_list,
|
|
|
cs_item_name,
|
|
|
- cs_item_learning_material_list
|
|
|
- };
|
|
|
- this.name = name;
|
|
|
- this.teaching_type = teaching_type;
|
|
|
- this.time_type = time_type;
|
|
|
- this.courseware_list = courseware_list;
|
|
|
- this.accessory_list = accessory_list;
|
|
|
- this.task_mode = task_mode;
|
|
|
- this.time_space_view_txt = time_space_view_txt;
|
|
|
- this.student_list = student_list;
|
|
|
- if (student_list.length > 0) this.getTaskStudentExecuteInfo(student_list[0].student_id);
|
|
|
- }
|
|
|
- );
|
|
|
+ accessory_list,
|
|
|
+ cs_item_learning_material_list,
|
|
|
+ task_mode,
|
|
|
+ time_space_view_txt,
|
|
|
+ student_list
|
|
|
+ }) => {
|
|
|
+ this.itemInfo = {
|
|
|
+ time_space_view_txt,
|
|
|
+ course_name,
|
|
|
+ cs_item_name,
|
|
|
+ cs_item_learning_material_list
|
|
|
+ };
|
|
|
+ this.name = name;
|
|
|
+ this.teaching_type = teaching_type;
|
|
|
+ this.time_type = time_type;
|
|
|
+ this.courseware_list = courseware_list;
|
|
|
+ this.accessory_list = accessory_list;
|
|
|
+ this.task_mode = task_mode;
|
|
|
+ this.time_space_view_txt = time_space_view_txt;
|
|
|
+ this.student_list = student_list;
|
|
|
+ if (student_list.length > 0) this.getTaskStudentExecuteInfo(student_list[0].student_id);
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .finally(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
getTaskStudentExecuteInfo(student_id) {
|
|
@@ -188,11 +204,15 @@ export default {
|
|
|
student_image_url,
|
|
|
finish_time_view_txt,
|
|
|
teacher_remark,
|
|
|
- teacher_score
|
|
|
+ teacher_score,
|
|
|
+ student_remark,
|
|
|
+ student_score
|
|
|
}) => {
|
|
|
this.curStudentId = student_id;
|
|
|
this.teacher_remark = teacher_remark;
|
|
|
this.teacher_score = teacher_score;
|
|
|
+ this.student_remark = student_remark;
|
|
|
+ this.student_score = student_score;
|
|
|
this.curFinishDetail = {
|
|
|
courseware_list,
|
|
|
homework_list,
|