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 || '{}');