From 387a6a16e3a5b1a646e373e45cf11b767c1f830e Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 14 Sep 2023 10:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=8F=E9=94=80=E5=95=86?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue b/anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue index ea3f4c5aa3..06db34b177 100644 --- a/anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue +++ b/anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue @@ -268,6 +268,8 @@ export default { } }, mounted() { + // 在外部vue的window上添加postMessage的监听,而且绑定处理函数handleMessage + window.addEventListener('message', this.handleMessage) this.$refs['btnbar'].setButtonList(this.btnList) }, created() { @@ -283,7 +285,6 @@ export default { code = event.data.params.code } if (code === 1) { - this.init() this.centerDialogVisible = false } else if (code === 2) { this.dialogHeight = event.data.params.data @@ -304,7 +305,7 @@ export default { procInsId: row.procInstId, token: getStorage() } - this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params))) + this.url = 'http://localhost:9530/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params))) }, // 搜索条件效果 clicksearchShow() {