From 618e1c2545f75010f206081c442a5c9f659d9a39 Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 27 Feb 2026 17:54:20 +0800 Subject: [PATCH] =?UTF-8?q?1.0.73=20=E6=89=93=E5=8D=B0=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E9=A1=B5=E8=BE=B9=E8=B7=9D=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/oa/base/printTemplate/template.vue | 2 +- src/views/oa/erp/contractInfo/contract.vue | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/views/oa/base/printTemplate/template.vue b/src/views/oa/base/printTemplate/template.vue index 27092aa..b055318 100644 --- a/src/views/oa/base/printTemplate/template.vue +++ b/src/views/oa/base/printTemplate/template.vue @@ -105,7 +105,7 @@ const options = ref({ }, page: { showBreakMarks: false, - defaultMargin: { left: 3.18, right: 3.18, top: 2.54, bottom: 2.54 } + defaultMargin: { left: 2.1, right: 2.1, top: 2.2, bottom: 2.2 } }, onSave: async (e) => { template.value.templateData = JSON.stringify(e.json); diff --git a/src/views/oa/erp/contractInfo/contract.vue b/src/views/oa/erp/contractInfo/contract.vue index d9beaca..0ba8cf0 100644 --- a/src/views/oa/erp/contractInfo/contract.vue +++ b/src/views/oa/erp/contractInfo/contract.vue @@ -210,12 +210,7 @@ onMounted(async () => { getPrintTemplate(route.query.templateId).then((e) => { template.value = e.data; const editor = editorRef.value; - let margin = JSON.parse(e.data.pageConfig || '{}').pageMargin || { - left: 3.18, - right: 3.18, - top: 2.54, - bottom: 2.54 - }; + let margin = JSON.parse(e.data.pageConfig || '{}').pageMargin || { left: 2.1, right: 2.1, top: 2.2, bottom: 2.2 }; delete margin.layout; options.value.page.defaultMargin =margin const docData = JSON.parse(e.data.templateData || '{}');