feat(wms, crm): 新增导出模式选择并修复canvas图片缩放问题
1. 为Wms异常报表页面新增多行/单行导出切换功能 2. 拆分导出菜单为单行、多行两种导出选项 3. 修复ContractExportDialog中图片缩放比例的冗余限制
This commit is contained in:
@@ -489,7 +489,7 @@ export default {
|
||||
actx.fillStyle = '#ffffff';
|
||||
actx.fillRect(0, 0, canvasPageW, canvasTotalH);
|
||||
|
||||
const imgScale = Math.min(canvasPageW / img.width, canvasImageH / img.height, 1);
|
||||
const imgScale = Math.min(canvasPageW / img.width, canvasImageH / img.height);
|
||||
const imgDrawW = img.width * imgScale;
|
||||
const imgDrawH = img.height * imgScale;
|
||||
const imgX = (canvasPageW - imgDrawW) / 2;
|
||||
|
||||
Reference in New Issue
Block a user