zhangjie 8 meses atrás
pai
commit
4eb2381ab4

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

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

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

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

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

@@ -388,6 +388,15 @@ watch(
   (val) => {
   (val) => {
     if (!val) return;
     if (!val) return;
     updateRecogList();
     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,
     deep: true,