dusenyao 3 anos atrás
pai
commit
a8bd6f24b9

+ 1 - 1
src/components/live/CurMaterial.vue

@@ -178,7 +178,7 @@ export default {
     },
 
     finishMyMaterial() {
-      if (this.exam_answer.length === 0) {
+      if (this.materialType === 'COURSEWARE' && this.exam_answer.length === 0) {
         this.$message.warning('请完成课件');
         return;
       }

+ 2 - 2
src/components/live/SelectMaterial.vue

@@ -4,7 +4,7 @@
       class="select-material"
       :visible="dialogVisible"
       width="900px"
-      title="课件推送"
+      title="学习资料推送"
       @close="dialogClose"
     >
       <div v-for="item in material_list" :key="item.material_id" class="material">
@@ -59,7 +59,7 @@ export default {
     },
     sendMaterial(material_id, material_type) {
       SendMaterial({ task_id: this.taskId, material_id, material_type }).then(() => {
-        this.$message.success('课件推送成功');
+        this.$message.success('学习资料推送成功');
         this.$emit('dialogPush');
       });
     },

+ 3 - 9
src/views/live/teacher/CompleteList.vue

@@ -8,14 +8,15 @@
     @close="dialogCompleteClose"
   >
     <div slot="title" class="dialog-header">
-      <span class="dialog-header-title">答题统计</span>
+      <span class="dialog-header-title">
+        学习资料 - {{ material_type === 'COURSEWARE' ? '课件' : '文档' }} - {{ material_name }}
+      </span>
       <span @click="isAlignCenter = !isAlignCenter">
         <svg-icon :icon-class="isAlignCenter ? 'align-left' : 'align-center'" />
       </span>
     </div>
 
     <div class="complete-list-top">
-      <div class="material-name">{{ material_name }}</div>
       <div class="student-list">
         <i class="el-icon-arrow-left" @click="listMove('left')" />
         <div ref="avatar" class="avatar-list">
@@ -316,13 +317,6 @@ export default {
   }
 
   &-top {
-    .material-name {
-      font-size: 16px;
-      font-weight: 700;
-      color: #000;
-      margin-bottom: 16px;
-    }
-
     .student-list {
       display: flex;
       justify-content: space-between;