From d6ed62e6a65b33541cde53cf4d6f089ba3f909f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Fri, 22 Sep 2023 10:56:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=A1=B5=E7=A0=81=E4=BB=8E=E6=AD=A3?= =?UTF-8?q?=E6=96=87=E5=BC=80=E5=A7=8B=E4=BB=8E1=E8=AE=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/page1/saicComponents/Init.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/pages/page1/saicComponents/Init.vue b/src/pages/page1/saicComponents/Init.vue index 40493c2..334c371 100644 --- a/src/pages/page1/saicComponents/Init.vue +++ b/src/pages/page1/saicComponents/Init.vue @@ -509,9 +509,10 @@ export default { let oFooter1 = oNextSection.GetFooter('default', true) const oParagraph20Footer = oFooter1.GetElement(0) // oParagraph20Footer.AddText(Asc.scope.standCode); + oParagraph20Footer.AddPageNumber() oParagraph20Footer.SetPosition(3) oParagraph20Footer.SetJc('right') - oParagraph20Footer.AddPageNumber() + // oParagraph20Footer.AddPageNumber() // Api.asc_SetSectionStartPage(1) const oParagraphTwo = Api.CreateParagraph() @@ -1286,11 +1287,22 @@ export default { } }) setTimeout(() => { + this.reorderSort() this.equationOne() this.replaceData() }, 500) }, - + reorderSort(){ + this.ctx.callCommand(() => { + try { + Api.GoToFooter(1) + Api.asc_SetSectionStartPage(1) + Api.GoToFooter(4) + Api.asc_SetSectionStartPage(1) + Api.ExitHeader_Footer(4) + } catch (e) {} + }) + }, replaceData () { Asc.scope.standCode = this.form.standCode Asc.scope.replaceStandCode = this.form.dtqbbhbuss