|
|
@@ -122,8 +122,8 @@
|
|
|
created() {
|
|
|
// 获取公用章列表
|
|
|
getSealPage({
|
|
|
- page: 999,
|
|
|
- limit: 1,
|
|
|
+ size: 999,
|
|
|
+ pageNum: 1,
|
|
|
status: 1,
|
|
|
approvalStatus: 2,
|
|
|
sealHolderId: this.$store.state.user.info.userId
|
|
|
@@ -779,7 +779,9 @@
|
|
|
}
|
|
|
// 移除指示器
|
|
|
if (this._currentMoveImageId) {
|
|
|
- const indicator = document.getElementById(`move_indicator_${this._currentMoveImageId}`);
|
|
|
+ const indicator = document.getElementById(
|
|
|
+ `move_indicator_${this._currentMoveImageId}`
|
|
|
+ );
|
|
|
if (indicator && indicator.parentNode) {
|
|
|
indicator.remove();
|
|
|
}
|
|
|
@@ -881,8 +883,10 @@
|
|
|
try {
|
|
|
const imgData = outputCanvas.toDataURL('image/png');
|
|
|
// 使用 Canvas 的 CSS 尺寸(显示尺寸),而不是内部像素尺寸
|
|
|
- const canvasWidth = parseFloat(outputCanvas.style.width) || outputCanvas.width;
|
|
|
- const canvasHeight = parseFloat(outputCanvas.style.height) || outputCanvas.height;
|
|
|
+ const canvasWidth =
|
|
|
+ parseFloat(outputCanvas.style.width) || outputCanvas.width;
|
|
|
+ const canvasHeight =
|
|
|
+ parseFloat(outputCanvas.style.height) || outputCanvas.height;
|
|
|
|
|
|
// 创建 PDF 实例,横向或纵向根据 Canvas 尺寸决定
|
|
|
const orientation = canvasWidth > canvasHeight ? 'l' : 'p';
|