From bab046f10c60ed2f87be7603fee5656ca4a29220 Mon Sep 17 00:00:00 2001 From: "yunlong.li" Date: Thu, 18 Nov 2021 18:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0BPMN=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/bpmn/panel/dialog/EventListenerDialog.vue | 6 +++++- .../bpmn/panel/dialog/GlobalEventListenerDialog.vue | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/yudao-admin-ui/src/components/bpmn/panel/dialog/EventListenerDialog.vue b/yudao-admin-ui/src/components/bpmn/panel/dialog/EventListenerDialog.vue index 770d4174c..88fcdb672 100644 --- a/yudao-admin-ui/src/components/bpmn/panel/dialog/EventListenerDialog.vue +++ b/yudao-admin-ui/src/components/bpmn/panel/dialog/EventListenerDialog.vue @@ -77,6 +77,10 @@ export default { }, methods: { commitForm(){ + if (!this.form.class || this.form.class === "" ) { + this.msgError("class不能为空"); + return; + } const from = this.form const filterArr = this.listenerTable.filter( (item) => (item.event === from.event && from.type === item.type && from.class === item.class) @@ -114,4 +118,4 @@ export default { /deep/.el-dialog > .el-dialog__header{ padding: 24px 20px } - \ No newline at end of file + diff --git a/yudao-admin-ui/src/components/bpmn/panel/dialog/GlobalEventListenerDialog.vue b/yudao-admin-ui/src/components/bpmn/panel/dialog/GlobalEventListenerDialog.vue index e73d805af..52e2f1fac 100644 --- a/yudao-admin-ui/src/components/bpmn/panel/dialog/GlobalEventListenerDialog.vue +++ b/yudao-admin-ui/src/components/bpmn/panel/dialog/GlobalEventListenerDialog.vue @@ -69,6 +69,10 @@ export default { }, methods: { commitForm(){ + if (!this.formData.class || this.formData.class === "" ) { + this.msgError("class不能为空"); + return; + } const from = this.formData; // 获取原数组中是否存在这个class了 如果存在就退出不操作 const filterArr = this.globalFormTable.filter( @@ -110,4 +114,4 @@ export default { /deep/.el-dialog > .el-dialog__header{ padding: 24px 20px } - \ No newline at end of file +