zhangjie 2 years ago
parent
commit
ce144cd3e8
2 changed files with 6 additions and 1 deletions
  1. 5 1
      src/modules/client/views/GroupScan.vue
  2. 1 0
      src/plugins/imageOcr.js

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

@@ -333,7 +333,10 @@ export default {
               isClient: false,
               isCurrent: false,
               isManual: false,
-              collectConfig: null
+              collectConfig:
+                item.examNumber === examNumber
+                  ? this.getCurCollectConfig()
+                  : null
             };
           });
         } else {
@@ -501,6 +504,7 @@ export default {
       this.$refs.ScanAreaDialog.open();
     },
     studentConfigChange(setting) {
+      // console.log(setting);
       this.curStudent.collectConfig = setting;
       this.startDecodeTask(setting.codeArea);
     },

+ 1 - 0
src/plugins/imageOcr.js

@@ -77,6 +77,7 @@ function decodeImageCode(imgPath, codeArea) {
  * @param {Object} collectConfig 裁剪区域
  */
 async function saveOutputImage(imgPath, paperInfo, collectConfig) {
+  // console.log(collectConfig);
   const outputOriginPath = saveOriginImage(imgPath, paperInfo);
   const outputFormalPath = await saveFormalImage(
     imgPath,