From feff4c955caea06e4940a8c0a665e5252e7ae1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 29 Apr 2024 17:14:31 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/page1/saicComponents/Init.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/page1/saicComponents/Init.vue b/src/pages/page1/saicComponents/Init.vue index dc6aaec..01c1c0c 100644 --- a/src/pages/page1/saicComponents/Init.vue +++ b/src/pages/page1/saicComponents/Init.vue @@ -222,7 +222,7 @@ export default { Asc.scope.issueDate = this.form.issueTime || 'xxxx-xx-xx' Asc.scope.impDate = this.form.putTime || 'xxxx-xx-xx' Asc.scope.standardNumberPrefix = this.form.standardNumberPrefix || 'X/XX' - window.Asc.plugin.callCommand(() => { + this.ctx.callCommand(() => { try { console.log('创建封面,start') const oDocument = Api.GetDocument() @@ -1156,6 +1156,7 @@ export default { }, 1600) }, replaceData () { + console.log('更新数据外层') Asc.scope.standCode = this.form.standCode || 'X/XX xxxx-xxxx' Asc.scope.replaceStandCode = this.form.dtqbbhbuss || 'X/XX xxxx-xxxx' Asc.scope.standCNName = this.form.standName || 'xx' @@ -1163,7 +1164,7 @@ export default { Asc.scope.issueDate = this.form.issueTime || 'xxxx-xx-xx' Asc.scope.impDate = this.form.putTime || 'xxxx-xx-xx' Asc.scope.standardNumberPrefix = this.form.standardNumberPrefix || 'X/XX' - window.Asc.plugin.callCommand(() => { + this.ctx.callCommand(() => { try { console.log('更新数据', Asc.scope.issueDate, Asc.scope.impDate) const oDocument = Api.GetDocument()