Explorar el Código

练习题名称

dusenyao hace 1 año
padre
commit
56abfac176
Se han modificado 2 ficheros con 9 adiciones y 4 borrados
  1. 2 0
      src/api/course.js
  2. 7 4
      src/views/task_details/teacher/index.vue

+ 2 - 0
src/api/course.js

@@ -749,6 +749,8 @@ export function SubmitTask_MessageReply_TeacherReplyStudent(data) {
 /**
  * 重发学员练习任务
  * @param {object} data
+ * @param {string} data.task_id 任务ID
+ * @param {string} data.student_id 学员ID
  */
 export function ResendStudentExerciseTask(data) {
   return request({

+ 7 - 4
src/views/task_details/teacher/index.vue

@@ -94,7 +94,7 @@
               <el-tag color="#fff">
                 <div class="courseware">
                   <svg-icon icon-class="courseware" />
-                  <span class="courseware_name nowrap-ellipsis">{{ exercise_info.answer_record?.exercise_name }}</span>
+                  <span class="courseware_name nowrap-ellipsis">{{ exercise_info.exercise_name }}</span>
                 </div>
               </el-tag>
               <span class="not-submitted">未提交</span>
@@ -357,6 +357,7 @@ function getTaskStudentExecuteInfo(student_id) {
   );
 }
 
+// 重发学员练习任务
 function resendStudentExerciseTask() {
   ResendStudentExerciseTask({ task_id: id, student_id: curStudentId.value }).then(() => {
     Message.success('重发成功');
@@ -586,12 +587,14 @@ $bor-color: #d9d9d9;
           column-gap: 16px;
           align-items: center;
 
-          :deep .el-tag {
+          .el-tag {
             .courseware {
+              display: flex;
+              column-gap: 12px;
+              align-items: center;
+
               .svg-icon {
-                margin-right: 12px;
                 font-size: 18px;
-                vertical-align: super;
               }
 
               &_name {