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() {