Browse Source

Merge remote-tracking branch 'origin/master'

WANG 6 years ago
parent
commit
7756f9bdc1

+ 3 - 0
src/modules/marking/views/MarkPaperCheck.vue

@@ -249,6 +249,7 @@ export default {
         courseCode: "",
         userId: "",
         workId: "",
+        examType: "",
         markRemark: ""
       },
       orgList: [],
@@ -312,6 +313,7 @@ export default {
         tag: "",
         courseCode: "",
         userId: "",
+        examType: "",
         markRemark: ""
       });
     },
@@ -409,6 +411,7 @@ export default {
         (this.currentPage - 1) +
         "/" +
         this.pageSize;
+      this.formSearch.examType = this.examType;
       this.$http.get(url, { params: this.formSearch }).then(response => {
         console.log("查询的列表集合", response);
         this.tableData = response.data.list;

+ 0 - 1
src/modules/marking/views/MarkSettingMain.vue

@@ -22,7 +22,6 @@
                 v-model="formSearch.courseCode"
                 placeholder="请选择"
               >
-                <el-option value>请选择</el-option>
                 <el-option
                   v-for="item in courseAllListSelect"
                   :label="item.courseInfo"

+ 0 - 2
src/modules/marking/views/MarkWorkOverview.vue

@@ -22,7 +22,6 @@
                       @change="searchMarkWork"
                       @clear="cleanMarkWork"
                     >
-                      <el-option value>请选择</el-option>
                       <el-option
                         v-for="item in markWorkSelect"
                         :label="item.markName"
@@ -56,7 +55,6 @@
                     v-model="formSearch.courseCode"
                     placeholder="请选择"
                   >
-                    <el-option value>请选择</el-option>
                     <el-option
                       v-for="item in courseAllListSelect"
                       :label="item.courseInfo"

+ 0 - 1
src/modules/marking/views/Marker.vue

@@ -18,7 +18,6 @@
                 placeholder="请选择"
                 @clear="clearData"
               >
-                <el-option value>请选择</el-option>
                 <el-option
                   v-for="item in markWorkSelect"
                   :label="item.markName"

+ 31 - 37
src/modules/marking/views/TpScoreBoard.vue

@@ -543,7 +543,7 @@ export default {
       if (!this.markedResult.id) {
         //正常提交情况
         console.log("提交resultItems", this.resultItems);
-        this.$http
+        this.$httpWithMsg
           .post(
             MARKING_API +
               "/markResults?studentPaperId=" +
@@ -623,10 +623,10 @@ export default {
                     }
                   );
                 } else {
-                  this.$notify({
-                    message: error.response.data.desc,
-                    type: "error"
-                  });
+                  if (error.response.data.code == 403) {
+                    this.$loading().close();
+                    return;
+                  }
                   this.$emit("submitMark");
                   this.loading = false;
                   this.markTypeView = false;
@@ -650,41 +650,35 @@ export default {
         console.log("markedResult", this.markedResult);
         this.markedResult.resultItems = this.resultItems;
         this.markedResult.remark = remarkValue;
-        this.$http.put(MARKING_API + "/markResults", this.markedResult).then(
-          response => {
-            this.saveMarkSign();
-            console.log(response);
-            this.$notify({
-              message: "提交成功",
-              type: "success"
-            });
-            this.$emit("submitMark");
-            this.loading = false;
-            this.markTypeView = false;
-            this.problemView = false;
-            this.unusualType = "";
-          },
-          error => {
-            // 响应错误回调
-            console.log(error.response);
-            if (error.response.data.desc) {
-              this.$notify({
-                message: error.response.data.desc,
-                type: "error"
-              });
-            } else {
+        this.$httpWithMsg
+          .put(MARKING_API + "/markResults", this.markedResult)
+          .then(
+            response => {
+              this.saveMarkSign();
+              console.log(response);
               this.$notify({
-                message: "提交失败",
-                type: "error"
+                message: "提交成功",
+                type: "success"
               });
+              this.$emit("submitMark");
+              this.loading = false;
+              this.markTypeView = false;
+              this.problemView = false;
+              this.unusualType = "";
+            },
+            error => {
+              // 响应错误回调
+              if (error.response.data.code == 403) {
+                this.$loading().close();
+                return;
+              }
+              this.$emit("submitMark");
+              this.loading = false;
+              this.markTypeView = false;
+              this.problemView = false;
+              this.unusualType = "";
             }
-            this.$emit("submitMark");
-            this.loading = false;
-            this.markTypeView = false;
-            this.problemView = false;
-            this.unusualType = "";
-          }
-        );
+          );
       }
     },
     initKeyBoardMode() {