From 52bd5557cb7a3eeb467f75a2b9101bf7f097754f Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期三, 03 十二月 2025 13:58:57 +0800
Subject: [PATCH] 修改新增

---
 src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/components/exportDoc.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/components/exportDoc.js b/src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/components/exportDoc.js
index b027f15..c3f78cd 100644
--- a/src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/components/exportDoc.js
+++ b/src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/components/exportDoc.js
@@ -287,13 +287,13 @@
         return parseImageDimensions(bytes);
     } catch (error) {
         console.warn('解析图片尺寸失败:', error);
-        return { width: 600, height: 400 };
+        return { width: 550, height: 400 };
     }
 }
 
 function parseImageDimensions(bytes) {
     if (bytes.length < 8) {
-        return { width: 600, height: 400 };
+        return { width: 550, height: 400 };
     }
 
     // 检查 PNG 格式 (89 50 4E 47 0D 0A 1A 0A)
@@ -307,7 +307,7 @@
         return parseJPEGDimensions(bytes);
     }
 
-    return { width: 600, height: 400 };
+    return { width: 550, height: 400 };
 }
 
 // 解析 PNG 尺寸
@@ -319,7 +319,7 @@
         const height = view.getUint32(20, false);
         return { width, height };
     }
-    return { width: 600, height: 400 };
+    return { width: 550, height: 400 };
 }
 
 // 解析 JPEG 尺寸
@@ -353,7 +353,7 @@
         }
     }
 
-    return { width: 600, height: 400 };
+    return { width: 550, height: 400 };
 }
 
 const imageOptions = {
@@ -363,10 +363,10 @@
     getSize(img, tagValue, tagName, context) {
         const dimensions = getDimensionsFromBase64Sync(tagValue);
         const { width, height } = dimensions;
-        const targetWidth = 600;
+        const targetWidth = 550;
         const scale = targetWidth / width;
         let targetHeight = height * scale;
-        targetHeight = Math.max(100, Math.min(700, targetHeight));
+        targetHeight = Math.max(100, Math.min(800, targetHeight));
         return [targetWidth, Math.round(targetHeight)];
     },
 };

--
Gitblit v1.9.2