zhangjie 8 달 전
부모
커밋
4eb2381ab4
3개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/render/utils/recog/recog.ts
  2. 1 0
      src/render/views/DataCheck/ScanImage/FillAreaSetDialog.vue
  3. 9 0
      src/render/views/DataCheck/ScanImage/index.vue

+ 1 - 2
src/render/utils/recog/recog.ts

@@ -116,8 +116,7 @@ export function parseDetailSize(
 
   if (!data) return result;
 
-  const fillResultList =
-    fillResult && fillResult.length ? fillResult : data.fill_option;
+  const fillResultList = fillResult && fillResult.length ? fillResult : [];
 
   result.fillSize = {
     w: data.fill_size[0],

+ 1 - 0
src/render/views/DataCheck/ScanImage/FillAreaSetDialog.vue

@@ -163,6 +163,7 @@ function modalOpenHandle() {
   border-radius: 6px;
   margin-right: 8px;
   cursor: pointer;
+  border: 1px solid #b0b0b0;
 
   &:hover {
     opacity: 0.8;

+ 9 - 0
src/render/views/DataCheck/ScanImage/index.vue

@@ -388,6 +388,15 @@ watch(
   (val) => {
     if (!val) return;
     updateRecogList();
+
+    if (!curRecogBlock.value) return;
+
+    const curBlock = curRecogBlock.value;
+    const block = recogBlocks.value.find(
+      (item) => item.type === curBlock.type && curBlock.index
+    );
+    if (!block) return;
+    curRecogBlock.value = block;
   },
   {
     deep: true,