From 332255518e61001007fd24b967c84bb5e8e9275a Mon Sep 17 00:00:00 2001 From: cxx Date: Tue, 7 May 2024 15:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E7=94=B3=E8=AF=B7=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=97=B6=E8=8A=82=E7=82=B9=E6=98=AF=E5=90=A6=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/component/createTaskDrawer.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/view/component/createTaskDrawer.html b/app/view/component/createTaskDrawer.html index c367b0d..b77f1eb 100644 --- a/app/view/component/createTaskDrawer.html +++ b/app/view/component/createTaskDrawer.html @@ -200,9 +200,9 @@ Vue.component("create-task-drawer", { case 'createTask': await this.prepareCreateValidate(); await this.confirmCreateWorkDialog(); - await this.prepareDoWorkItem(); - await this.doCreateWork(); - await this.doUiAction('close') + // await this.prepareDoWorkItem(); + // await this.doCreateWork(); + // await this.doUiAction('close') break; default: console.error("[doUiAction] uiActionId not find", {uiActionId}); @@ -534,6 +534,13 @@ Vue.component("create-task-drawer", { }, async prepareCreateValidate() { + this.curWorkflow.forEach(n => { + if(!n.properties.userIdList.length){ + window.vtoast.fail("存在节点没有设置人员!") + throw new Error("存在节点没有设置人员!") + } + + }) this.taskData.workflowForm.forEach(f => { if(f.type == 'time' && !this.isValidDateTime(f.answer)){ window.vtoast.fail("时间日期格式不正确!") @@ -546,7 +553,7 @@ Vue.component("create-task-drawer", { throw new Error("请完善表单信息") } } - }) + }) }, async confirmCreateWorkDialog() {