Browse Source

增加身份证试卷id查询和列

xiatian 5 years ago
parent
commit
fceb94e295
1 changed files with 33 additions and 9 deletions
  1. 33 9
      src/modules/marking/views/MarkPaperCheck.vue

+ 33 - 9
src/modules/marking/views/MarkPaperCheck.vue

@@ -121,6 +121,20 @@
                 style="width:150px;"
                 style="width:150px;"
               ></el-input>
               ></el-input>
             </el-form-item>
             </el-form-item>
+            <el-form-item label="试卷ID" prop="studentPaperId">
+              <el-input
+                placeholder="请输入试卷ID"
+                v-model="formSearch.studentPaperId"
+                style="width:150px;"
+              ></el-input>
+            </el-form-item>
+            <el-form-item label="身份证号" prop="identityNumber">
+              <el-input
+                placeholder="请输入身份证号"
+                v-model="formSearch.identityNumber"
+                style="width:150px;"
+              ></el-input>
+            </el-form-item>
             <div></div>
             <div></div>
             <el-form-item>
             <el-form-item>
               <el-button
               <el-button
@@ -149,6 +163,12 @@
             border
             border
             style="width: 100%"
             style="width: 100%"
           >
           >
+            <el-table-column label="试卷ID" width="150" prop="studentPaperId" />
+            <el-table-column
+              label="身份证号"
+              width="150"
+              prop="identityNumber"
+            />
             <el-table-column label="学习中心" width="150" prop="orgName" />
             <el-table-column label="学习中心" width="150" prop="orgName" />
             <el-table-column
             <el-table-column
               label="学号"
               label="学号"
@@ -250,7 +270,9 @@ export default {
         userId: "",
         userId: "",
         workId: "",
         workId: "",
         examType: "",
         examType: "",
-        markRemark: ""
+        markRemark: "",
+        studentPaperId: "",
+        identityNumber: ""
       },
       },
       orgList: [],
       orgList: [],
       courseList: [],
       courseList: [],
@@ -314,7 +336,9 @@ export default {
         courseCode: "",
         courseCode: "",
         userId: "",
         userId: "",
         examType: "",
         examType: "",
-        markRemark: ""
+        markRemark: "",
+        studentPaperId: "",
+        identityNumber: ""
       });
       });
     },
     },
     getMarkWorks() {
     getMarkWorks() {
@@ -371,7 +395,6 @@ export default {
     //查询标记卷
     //查询标记卷
     getTags() {
     getTags() {
       this.$http.get(MARKING_API + "/markResults/tag").then(response => {
       this.$http.get(MARKING_API + "/markResults/tag").then(response => {
-        console.log("取到的标记卷:", response);
         this.tags = response.data;
         this.tags = response.data;
         //移除科目错误
         //移除科目错误
         for (let i = 0; i < this.tags.length; i++) {
         for (let i = 0; i < this.tags.length; i++) {
@@ -413,7 +436,6 @@ export default {
         this.pageSize;
         this.pageSize;
       this.formSearch.examType = this.examType;
       this.formSearch.examType = this.examType;
       this.$http.get(url, { params: this.formSearch }).then(response => {
       this.$http.get(url, { params: this.formSearch }).then(response => {
-        console.log("查询的列表集合", response);
         this.tableData = response.data.list;
         this.tableData = response.data.list;
         this.total = response.data.total;
         this.total = response.data.total;
         this.loading = false;
         this.loading = false;
@@ -431,7 +453,9 @@ export default {
             examId: this.examId,
             examId: this.examId,
             examType: this.examType,
             examType: this.examType,
             currentPage: this.currentPage,
             currentPage: this.currentPage,
-            pageSize: this.pageSize
+            pageSize: this.pageSize,
+            studentPaperId: this.formSearch.studentPaperId,
+            identityNumber: this.formSearch.identityNumber
           }
           }
         });
         });
         this.$nextTick(function() {
         this.$nextTick(function() {
@@ -448,7 +472,9 @@ export default {
         courseCode: "",
         courseCode: "",
         userId: "",
         userId: "",
         workId: "",
         workId: "",
-        markRemark: ""
+        markRemark: "",
+        studentPaperId: "",
+        identityNumber: ""
       });
       });
       this.tableData = [];
       this.tableData = [];
       this.total = 0;
       this.total = 0;
@@ -467,7 +493,6 @@ export default {
     viewPaper(row) {
     viewPaper(row) {
       if (this.examType != "OFFLINE") {
       if (this.examType != "OFFLINE") {
         var studentPaperId = row.studentPaper.id;
         var studentPaperId = row.studentPaper.id;
-        console.log("studentPaperId:", studentPaperId);
         var urls =
         var urls =
           "/marking/view_paper/" +
           "/marking/view_paper/" +
           this.formSearch.workId +
           this.formSearch.workId +
@@ -490,8 +515,7 @@ export default {
       var userId = this.user.userId;
       var userId = this.user.userId;
       var url =
       var url =
         MARKING_API + "/markResults/" + row.id + "/reject?creatorId=" + userId;
         MARKING_API + "/markResults/" + row.id + "/reject?creatorId=" + userId;
-      this.$http.post(url).then(response => {
-        console.log(response);
+      this.$http.post(url).then(() => {
         this.searchMarkPaperCheck();
         this.searchMarkPaperCheck();
       });
       });
     },
     },