Your Name hace 1 año
padre
commit
2f310215fd
Se han modificado 1 ficheros con 14 adiciones y 3 borrados
  1. 14 3
      src/views/tasks/Index.vue

+ 14 - 3
src/views/tasks/Index.vue

@@ -122,9 +122,10 @@
                 <span style="font-size:12px;">{{scope.row.ctime}}</span>
               </template>
             </el-table-column>
-            <el-table-column align="center" prop="date" label="操作" fixed="right" width="100px">
+            <el-table-column align="center" prop="date" label="操作" fixed="right" width="120px">
               <template slot-scope="scope">
                 <el-button @click="showCurRecImg(scope.row)" size="mini" type="text">查看</el-button>
+                <el-button @click="showCurRecKhImg(scope.row)" size="mini" type="text">考号</el-button>
                 <el-button @click="delStudents(scope.row.id,scope.$index)" size="mini" type="text">删除</el-button>
               </template>
             </el-table-column>
@@ -134,7 +135,7 @@
           <div style="height:70vh;overflow-y:scroll;position: relative;">
               <el-upload
                 class="upload-demo"
-                action="http://118.190.145.217/api/admin/papers/uploadpaper"
+                action="http://test.scxjc.club/api/admin/papers/uploadpaper"
                 :on-success="handleUploadSuccess"
                 :file-list="fileList"
                 list-type="picture"
@@ -292,7 +293,7 @@
           that.$api.getMarkTaskStudents({task_id:id}).then(res=>{
             that.studentsList = res.data.data.list;
           })
-        },1000)
+        },4000)
       },
       closeUploadDialog(){
         this.uploadDialogVisible=false;
@@ -326,6 +327,16 @@
         this.curStudentRecImg = row.ans_imgs.replace(".png","_draw_ans.png");
         this.showAnsVisible = true;
       },
+      showCurRecKhImg(row){
+        let ext = row.ans_imgs.split("/").pop()
+        if(ext){
+          ext = "."+ext.split(".")[1]
+        }
+        console.log(row.ans_imgs,4444444444444444)
+        this.curStudentRecImg = row.ans_imgs.replace("_ans"+ext,"_sno"+ext);
+        console.log(this.curStudentRecImg,4333333333333333333)
+        this.showAnsVisible = true;
+      },
       handleTabClick(){
 
       },