From 5f9826b9daf0217eeb05e40b1f507e382120bb3a Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 27 Sep 2022 09:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruzhangguanli/ruzhangEdit.vue | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue index 63b1b0a15a..6fbfc1bda2 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue @@ -840,13 +840,14 @@ export default { type: 'success', message: '提交成功' }) - this.handleReturn('true') - } else { - this.$message({ - showClose: true, - type: 'error', - message: '提交失败' - }) + // 子页面向父级页面传递值(关闭弹框) + window.parent.postMessage({ + cmd: 'returnHeight', + params: { + // 操作成功,告诉父级页面关闭弹框 + code: 1 + } + }, '*') } }) }).catch(() => { @@ -860,13 +861,14 @@ export default { type: 'success', message: '提交成功' }) - this.handleReturn('true') - } else { - this.$message({ - showClose: true, - type: 'error', - message: '提交失败' - }) + // 子页面向父级页面传递值(关闭弹框) + window.parent.postMessage({ + cmd: 'returnHeight', + params: { + // 操作成功,告诉父级页面关闭弹框 + code: 1 + } + }, '*') } }) }