zhangjie před 4 roky
rodič
revize
18fb75ceff

binární
public/templates/考生信息表-模板.xlsx


+ 2 - 2
src/constants/enumerate.js

@@ -106,8 +106,8 @@ export const PAPER_UPLOAD_TYPE = {
 
 
 // score-handle-type
 // score-handle-type
 export const SCORE_HANDLE_TYPE = {
 export const SCORE_HANDLE_TYPE = {
-  0: "四舍五入",
-  1: "非零进一"
+  0: "非零进一",
+  1: "四舍五入"
 };
 };
 
 
 // apply-change-level-status
 // apply-change-level-status

+ 4 - 3
src/modules/grading-set/GradingLevelSet.vue

@@ -203,7 +203,7 @@ export default {
       workId: this.$route.params.workId,
       workId: this.$route.params.workId,
       letterRelateNumber: {},
       letterRelateNumber: {},
       levels: [],
       levels: [],
-      worKDetail: {},
+      workDetail: {},
       isSubmit: false
       isSubmit: false
     };
     };
   },
   },
@@ -221,7 +221,7 @@ export default {
     },
     },
     async getData() {
     async getData() {
       const data = await workDetail(this.workId);
       const data = await workDetail(this.workId);
-      this.worKDetail = data;
+      this.workDetail = data;
       this.levels = data.levels.map(item => {
       this.levels = data.levels.map(item => {
         item.canEdit = false;
         item.canEdit = false;
         return item;
         return item;
@@ -402,7 +402,8 @@ export default {
 
 
       if (this.isSubmit) return;
       if (this.isSubmit) return;
       this.isSubmit = true;
       this.isSubmit = true;
-      const data = await updateWork(this.worKDetail).catch(() => {
+      this.workDetail.levels = this.levels;
+      const data = await updateWork(this.workDetail).catch(() => {
         this.isSubmit = false;
         this.isSubmit = false;
       });
       });
 
 

+ 18 - 1
src/modules/grading/GradingDetail.vue

@@ -173,7 +173,8 @@ import {
   levelStatData,
   levelStatData,
   areaList,
   areaList,
   workLevelList,
   workLevelList,
-  taskSnSearch
+  taskSnSearch,
+  subjectDetail
 } from "@/api";
 } from "@/api";
 import ImagePreview from "@/components/common/ImagePreview";
 import ImagePreview from "@/components/common/ImagePreview";
 import GradeStep from "./components/GradeStep";
 import GradeStep from "./components/GradeStep";
@@ -224,6 +225,7 @@ export default {
       workId: this.$route.params.workId,
       workId: this.$route.params.workId,
       subjectId: this.$route.params.subjectId,
       subjectId: this.$route.params.subjectId,
       subject: "",
       subject: "",
+      curSubject: {},
       curUserRoleType: "MARKER",
       curUserRoleType: "MARKER",
       current: 1,
       current: 1,
       size: 6,
       size: 6,
@@ -267,6 +269,9 @@ export default {
     IS_MARK_LEADER() {
     IS_MARK_LEADER() {
       return this.curUserRoleType === "MARK_LEADER";
       return this.curUserRoleType === "MARK_LEADER";
     },
     },
+    IS_TEST() {
+      return this.curSubject.test === 2;
+    },
     imagePreviewClasses() {
     imagePreviewClasses() {
       return this.IS_ADMIN
       return this.IS_ADMIN
         ? "grading-detail-image-preview"
         ? "grading-detail-image-preview"
@@ -280,6 +285,7 @@ export default {
   },
   },
   methods: {
   methods: {
     async initData() {
     async initData() {
+      await this.getSubjectDetail();
       // 获取档位列表
       // 获取档位列表
       this.getWorkLevels();
       this.getWorkLevels();
       // 获取考区列表,一个考区对应一个questionId
       // 获取考区列表,一个考区对应一个questionId
@@ -309,6 +315,9 @@ export default {
       this.current = page;
       this.current = page;
       this.getList();
       this.getList();
     },
     },
+    async getSubjectDetail() {
+      this.curSubject = await subjectDetail(this.subjectId);
+    },
     async getStepLevels() {
     async getStepLevels() {
       const data = await levelStatData(this.subjectId, this.filter.questionId);
       const data = await levelStatData(this.subjectId, this.filter.questionId);
       const undoIndex = data.findIndex(item => item.id === null);
       const undoIndex = data.findIndex(item => item.id === null);
@@ -317,6 +326,14 @@ export default {
         const undo = { ...data[undoIndex] };
         const undo = { ...data[undoIndex] };
         data.splice(undoIndex, 1);
         data.splice(undoIndex, 1);
 
 
+        if (this.IS_MARK_LEADER && this.IS_TEST) {
+          otherStep.push({
+            name: "待评",
+            count: undo.count,
+            type: "undo"
+          });
+        }
+
         otherStep.push({
         otherStep.push({
           name: "打回",
           name: "打回",
           count: undo.rejected,
           count: undo.rejected,

+ 1 - 0
src/modules/grading/components/GradeAction.vue

@@ -200,6 +200,7 @@ export default {
           arbitrate: ["search", "gradeHis"]
           arbitrate: ["search", "gradeHis"]
         },
         },
         MARK_LEADER: {
         MARK_LEADER: {
+          undo: ["search", "gradeList", "gradeInfo"],
           done: ["search", "gradeList", "gradeHis", "gradeInfo"],
           done: ["search", "gradeList", "gradeHis", "gradeInfo"],
           reject: ["search", "gradeList", "gradeInfo", "gradeHis"],
           reject: ["search", "gradeList", "gradeInfo", "gradeHis"],
           arbitrate: ["search", "gradeList", "gradeHis"]
           arbitrate: ["search", "gradeList", "gradeHis"]

+ 4 - 4
src/modules/login/LoginHome.vue

@@ -135,11 +135,11 @@ export default {
         const stage = curSubject.stage;
         const stage = curSubject.stage;
         routerType = `${role}_${stage}`;
         routerType = `${role}_${stage}`;
 
 
+        if (stage === "INIT") {
+          this.$Message.error("当前工作未开启分档!");
+          return;
+        }
         if (role === "MARKER") {
         if (role === "MARKER") {
-          if (stage === "INIT") {
-            this.$Message.error("当前工作未开启分档!");
-            return;
-          }
           if (
           if (
             (stage === "LEVEL" && markRight === "ALLOW_SCORING") ||
             (stage === "LEVEL" && markRight === "ALLOW_SCORING") ||
             (stage === "SCORE" && markRight === "ALLOW_LEVELING")
             (stage === "SCORE" && markRight === "ALLOW_LEVELING")

+ 6 - 1
src/modules/main/StudentManage.vue

@@ -20,7 +20,7 @@
           type="success"
           type="success"
           icon="recode-white icon"
           icon="recode-white icon"
           shape="circle"
           shape="circle"
-          @click="toEdit({})"
+          @click="toAdd"
           >添加考生</Button
           >添加考生</Button
         >
         >
       </div>
       </div>
@@ -332,6 +332,7 @@ export default {
           const [subject, hasScan] = status.split(":");
           const [subject, hasScan] = status.split(":");
           student[subject] = hasScan;
           student[subject] = hasScan;
         });
         });
+        student.workId = this.filter.workId;
         return student;
         return student;
       });
       });
       this.total = data.totalCount;
       this.total = data.totalCount;
@@ -375,6 +376,10 @@ export default {
       this.rooms = curSchool ? curSchool.rooms : [];
       this.rooms = curSchool ? curSchool.rooms : [];
       this.filter.examRoom = null;
       this.filter.examRoom = null;
     },
     },
+    toAdd() {
+      this.curStudent = { workId: this.filter.workId };
+      this.$refs.ModifyStudent.open();
+    },
     toEdit(row) {
     toEdit(row) {
       this.curStudent = row;
       this.curStudent = row;
       this.$refs.ModifyStudent.open();
       this.$refs.ModifyStudent.open();

+ 1 - 1
src/modules/main/WorkOverview.vue

@@ -12,7 +12,7 @@
         <li>
         <li>
           <span><i class="icon ivu-icon-area"></i></span>
           <span><i class="icon ivu-icon-area"></i></span>
           <span>考区数:</span>
           <span>考区数:</span>
-          <span>{{ overviewInfo.stuAbsentCount }}</span>
+          <span>{{ overviewInfo.questionCount }}</span>
         </li>
         </li>
       </ul>
       </ul>
       <div class="overview-actions">
       <div class="overview-actions">

+ 4 - 3
src/modules/main/components/ModifyStudent.vue

@@ -92,7 +92,9 @@ import { updateStudent } from "@/api";
 const initModalForm = {
 const initModalForm = {
   id: null,
   id: null,
   name: "",
   name: "",
+  workId: null,
   examNumber: "",
   examNumber: "",
+  areaName: "",
   areaCode: "",
   areaCode: "",
   school: "",
   school: "",
   examRoom: ""
   examRoom: ""
@@ -171,11 +173,9 @@ export default {
   methods: {
   methods: {
     initData(val) {
     initData(val) {
       this.$refs.modalFormComp.resetFields();
       this.$refs.modalFormComp.resetFields();
+      this.modalForm = this.$objAssign(initModalForm, val);
       if (val.id) {
       if (val.id) {
-        this.modalForm = this.$objAssign(initModalForm, val);
         this.reviewInfo();
         this.reviewInfo();
-      } else {
-        this.modalForm = { ...initModalForm };
       }
       }
     },
     },
     visibleChange(visible) {
     visibleChange(visible) {
@@ -198,6 +198,7 @@ export default {
         item => item.areaCode === this.modalForm.areaCode
         item => item.areaCode === this.modalForm.areaCode
       );
       );
       this.schools = curArea.schools;
       this.schools = curArea.schools;
+      this.modalForm.areaName = curArea.areaName;
       this.rooms = [];
       this.rooms = [];
       this.modalForm.examRoom = null;
       this.modalForm.examRoom = null;
       if (curArea.schools.length === 1) {
       if (curArea.schools.length === 1) {