Browse Source

bug修改

zhangjie 4 năm trước cách đây
mục cha
commit
fe08d6b828

+ 1 - 1
src/modules/inspection/InspectionActionLogs.vue

@@ -192,7 +192,7 @@ export default {
       this.filter.workId = this.works[0].id;
       this.subjects = this.works[0].subjects;
       this.filter.subject = this.subjects[0].subject;
-      this.getList();
+      this.toSearch();
     },
     async getActionTypeList() {
       this.actionTypes = await logTypeList();

+ 5 - 1
src/modules/main/StudentScore.vue

@@ -211,6 +211,10 @@ export default {
         return;
       }
       const data = await studentScoreList(this.filter);
+      if (!data.length) {
+        this.$Message.error("无此考生");
+        return;
+      }
       data.map(student => {
         student.scores.map(score => {
           score.title = score.subjectName;
@@ -222,7 +226,7 @@ export default {
     },
     toPage(page) {
       this.current = page;
-      this.curStudent = this.students[page - 1];
+      this.curStudent = this.students[page - 1] || {};
     },
     workChange() {
       this.filter.subject = null;

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

@@ -1,6 +1,6 @@
 <template>
   <div class="work home">
-    <view-header class="home-header"></view-header>
+    <view-header class="home-header" :show-reset-pwd="false"></view-header>
 
     <div class="home-body">
       <div class="home-main">

+ 2 - 2
src/modules/mark/components/MarkAction.vue

@@ -382,8 +382,8 @@ export default {
     updateScoreList() {
       let scores = [];
       if (this.curLevel.levelType === "ADMITED") {
-        const { minScore, maxScore } = this.curLevel;
-        for (let i = minScore; i <= maxScore; i++) {
+        const { minScore, maxScore, intervalScore } = this.curLevel;
+        for (let i = minScore; i <= maxScore; i += intervalScore) {
           scores.push(i);
         }
       } else {