11wqe1 1 год назад
Родитель
Сommit
d5ed30466d

+ 11 - 10
src/components/pages/components/studentWorksDetail.vue

@@ -128,31 +128,32 @@
           :row-class-name="tableRowClassName"
           stripe
         >
-          <el-table-column
+          <!-- <el-table-column
             prop="sName"
             label="姓名"
             min-width="15"
             align="center"
-          ></el-table-column>
+          ></el-table-column> -->
           <el-table-column
-            prop="class"
-            label="班级"
+            prop="course"
+            label="课程"
             min-width="20"
             align="center"
             show-overflow-tooltip
           >
-            <template slot-scope="scope">
-              <div>{{ scope.row.class ? scope.row.class : "暂无班级" }}</div>
-            </template>
           </el-table-column>
           <el-table-column
-            prop="course"
-            label="课程"
+            prop="class"
+            label="班级"
             min-width="20"
             align="center"
             show-overflow-tooltip
           >
+            <template slot-scope="scope">
+              <div>{{ scope.row.class ? scope.row.class : "暂无班级" }}</div>
+            </template>
           </el-table-column>
+         
 
           <el-table-column
             prop="time"
@@ -160,7 +161,7 @@
             min-width="15"
             align="center"
           ></el-table-column>
-          <el-table-column label="操作" width="300px">
+          <el-table-column label="操作" align="center" width="300px">
             <template slot-scope="scope">
               <el-button
                 type="primary"

+ 8 - 7
src/components/pages/components/worksDetail2.vue

@@ -107,14 +107,13 @@
                 :key="index+'a'"
                 :label="item.name"
                 :value="item.id"
-
               ></el-option>
             </el-select>
 
             
             <div class="typeCheck">
               <el-switch v-model="typeCheck"></el-switch
-              ><span>查看所有学生</span>
+              ><span style="font-size: 14px;">查看所有学生</span>
             </div>
           </div>
         </div>
@@ -233,7 +232,7 @@
                 type="primary"
                 size="small"
                 @click="
-                  lookWork2(scope.row.id, scope.row.userid, scope.row.courseid)
+                  lookWork2(scope.row.id, scope.row.userid, scope.row.courseid, dyList[scope.row.stage].name,dyList[scope.row.stage].taskList[scope.row.task].name)
                 "
                 >导出作业集</el-button
               >
@@ -3340,7 +3339,7 @@ export default {
     },
     onPlayerPlay() {},
     // this.$store.commit("update", ["userInfo", userInfo]);
-    lookWork2(id, uid, cid) {
+    lookWork2(id, uid, cid,stage,task) {
       // this.scopeId = id;
       let params = {
         uid: uid,
@@ -3931,7 +3930,7 @@ export default {
             _bg +
             _cocopi +
             _word;
-          this.generate(_html);
+          this.generate(_html,stage,task);
         })
         .catch((err) => {
           console.error(err);
@@ -3962,7 +3961,7 @@ export default {
         this.navId = a;
       }
     },
-    async generate(a) {
+    async generate(a,stage,task) {
       // 将html文件中需要用到的数据挂载到store上
       this.$store.commit("update", ["report", a]);
       const content = `<!DOCTYPE html>
@@ -3980,7 +3979,7 @@ export default {
       // debugger
       // 生成报告
       const link = document.createElement("a");
-      let dname = this.sInfo.course + "-" + this.sInfo.sName + ".html";
+      let dname = this.sInfo.course + "-"+stage+"-" + task + this.sInfo.sName + ".html";
       // link.download = "报告.html"; // 文件名
       link.download = dname; // 文件名
       link.style.display = "none";
@@ -5773,12 +5772,14 @@ ol {
   margin-right: 15px;
   padding: 5px 0;
   cursor: pointer;
+  font-size: 14px;
 }
 .cutTab > .ctrlBtn2 {
   cursor: pointer;
   margin-right: 15px;
   border-bottom: 3px #409EFF solid;
   font-weight: 600;
+  font-size: 14px;
   padding: 5px 0;
   color: #409EFF;
 }

+ 2 - 1
src/components/pages/works.vue

@@ -256,7 +256,8 @@
                 }}
               </template>
             </el-table-column>
-            <el-table-column label="操作" min-width="30">
+             
+            <el-table-column label="操作"  align="center" min-width="30">
               <template slot-scope="scope">
                 <el-button
                   type="primary"