|
|
|
@ -281,18 +281,18 @@ export default {
@@ -281,18 +281,18 @@ export default {
|
|
|
|
|
switch (bpmnType) { |
|
|
|
|
case 'bpmn:StartEvent': |
|
|
|
|
if (validateNull(formKey) && bpmnElementParent.$type !== 'bpmn:SubProcess') { |
|
|
|
|
options.validateErrorData.push(`节点【${bpmnElement.name || bpmnElement.id}】没有配置表单。\n`) |
|
|
|
|
options.validateErrorData.push(`节点【${bpmnElement.name || bpmnElement.id}】没有配置表单。`) |
|
|
|
|
} |
|
|
|
|
break |
|
|
|
|
case 'bpmn:UserTask': |
|
|
|
|
if (!assignee.length) { |
|
|
|
|
options.validateErrorData.push(`节点【${bpmnElement.name || bpmnElement.id}】没有指定办理人。\n`) |
|
|
|
|
options.validateErrorData.push(`节点【${bpmnElement.name || bpmnElement.id}】没有指定办理人。`) |
|
|
|
|
} |
|
|
|
|
if (!button.length) { |
|
|
|
|
options.validateErrorData.push(`节点【${bpmnElement.name || bpmnElement.id}】没有配置按钮。\n`) |
|
|
|
|
options.validateErrorData.push(`节点【${bpmnElement.name || bpmnElement.id}】没有配置按钮。`) |
|
|
|
|
} |
|
|
|
|
if (validateNull(formKey)) { |
|
|
|
|
options.validateErrorData.push(`节点【${bpmnElement.name || bpmnElement.id}】没有配置表单。\n`) |
|
|
|
|
options.validateErrorData.push(`节点【${bpmnElement.name || bpmnElement.id}】没有配置表单。`) |
|
|
|
|
} |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
@ -424,7 +424,7 @@ export default {
@@ -424,7 +424,7 @@ export default {
|
|
|
|
|
}) |
|
|
|
|
if (tempValidateErrorData.length > 0) { |
|
|
|
|
validateErrorData = validateErrorData.concat( |
|
|
|
|
[`池子【${participant.name || participant.id}】:\n`], tempValidateErrorData) |
|
|
|
|
[`池子【${participant.name || participant.id}】:`], tempValidateErrorData) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 处理正常单流程 |
|
|
|
@ -441,7 +441,7 @@ export default {
@@ -441,7 +441,7 @@ export default {
|
|
|
|
|
}) |
|
|
|
|
if (tempValidateErrorData.length > 0) { |
|
|
|
|
validateErrorData = validateErrorData.concat( |
|
|
|
|
[`流程【${process.name || process.id}】:\n`], tempValidateErrorData) |
|
|
|
|
[`流程【${process.name || process.id}】:`], tempValidateErrorData) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
chain.push(validateErrorData) |
|
|
|
@ -455,7 +455,8 @@ export default {
@@ -455,7 +455,8 @@ export default {
|
|
|
|
|
}).then(results => { |
|
|
|
|
results[0].length && this.notification['warning']({ |
|
|
|
|
message: '提示', |
|
|
|
|
description: results[0].join('') |
|
|
|
|
description: results[0].join('\n'), |
|
|
|
|
style: { 'white-space': 'pre-line' } |
|
|
|
|
}) |
|
|
|
|
this.createMessage.success(results[1].data || '保存流程模型成功!') |
|
|
|
|
this.$emit('refresh') |
|
|
|
|