zhangjie %!s(int64=2) %!d(string=hai) anos
pai
achega
162b65e56e
Modificáronse 1 ficheiros con 5 adicións e 7 borrados
  1. 5 7
      src/modules/client/views/GroupScan.vue

+ 5 - 7
src/modules/client/views/GroupScan.vue

@@ -333,10 +333,7 @@ export default {
               isClient: false,
               isCurrent: false,
               isManual: false,
-              collectConfig:
-                item.examNumber === examNumber
-                  ? this.getCurCollectConfig()
-                  : null
+              collectConfig: null
             };
           });
         } else {
@@ -383,6 +380,7 @@ export default {
       });
 
       if (result) {
+        this.curCollectConfig = {};
         logger.info(
           `04保存试卷成功:${this.curStudent.examNumber} - ${this.curStudent.name}`
         );
@@ -463,8 +461,8 @@ export default {
       });
     },
     getCurCollectConfig() {
-      return this.curStudent && this.curStudent.collectConfig
-        ? this.curStudent.collectConfig
+      return this.curCollectConfig.codeArea
+        ? this.curCollectConfig
         : this.curSubject.collectConfig;
     },
     scrollTaskList() {
@@ -505,7 +503,7 @@ export default {
     },
     studentConfigChange(setting) {
       // console.log(setting);
-      this.curStudent.collectConfig = setting;
+      this.curCollectConfig = setting;
       this.startDecodeTask(setting.codeArea);
     },
     // toreset