From 3151fb3f17d7c8148a985a45fed90da0158ec790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A6=8D?= <1455167345@qq.com> Date: Wed, 14 Aug 2024 15:01:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A9=B3=E5=9B=9E=E6=84=8F=E8=A7=81=E5=BF=85?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/workflow/task/process/audit.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/demo/workflow/task/process/audit.vue b/src/views/demo/workflow/task/process/audit.vue index 66982618..53428c4c 100644 --- a/src/views/demo/workflow/task/process/audit.vue +++ b/src/views/demo/workflow/task/process/audit.vue @@ -431,7 +431,6 @@ footerStyle.value.width = mapConfig.value?.isShowMap ? '100%' : '60%'; if (mapConfig.value?.isShowMap) { - } } else { currentNode = auditNode; @@ -677,6 +676,12 @@ // return; // } // 有表单先提交表单数据 + if (btn.code == 'disagree') { + if (!formData.value.des) { + createMessage.warning('请填写驳回意见'); + return false; + } + } if (formVisble.value) { var querys = { schemeId: designerData.formCurrentNode.formVerison, @@ -704,9 +709,9 @@ querys.data = JSON.stringify(res); const formValue = await functionsaveForm(querys); if (formValue) { - if(btn.code == 'zancun'){ + if (btn.code == 'zancun') { createMessage.success('暂存成功'); - return + return; } handleSubmit(btn); } @@ -978,10 +983,7 @@ getTaskInfo(); }); - - function onFormContainerMouseOver(event){ - - } + function onFormContainerMouseOver(event) {}