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