处理问题
This commit is contained in:
parent
3117256719
commit
4323983092
@ -44,7 +44,7 @@ public class ActivitiController extends DefaultBaseController {
|
||||
@PostMapping("create")
|
||||
@CheckRequestBodyAnnotation
|
||||
public SuccessResultData create(@RequestBody ActivitiVO activitiVO) throws UnsupportedEncodingException {
|
||||
if (RegexUtil.isLetterOrNumber(activitiVO.getModelKey())) {
|
||||
if (!RegexUtil.isLetterOrNumber(activitiVO.getModelKey())) {
|
||||
throw new ParamsException("模型Key只能是字符和数字");
|
||||
}
|
||||
return new SuccessResultData<>(activitiService.create(activitiVO));
|
||||
|
@ -66,7 +66,7 @@ KISBPM.TOOLBAR = {
|
||||
top.dialog.msg('流程的 流程名称 不能为空');
|
||||
return;
|
||||
}
|
||||
if(!json.properties.description) {
|
||||
if(!json.properties.documentation) {
|
||||
top.dialog.msg('流程的 流程描述 不能为空');
|
||||
return;
|
||||
}
|
||||
@ -78,12 +78,11 @@ KISBPM.TOOLBAR = {
|
||||
var modelMetaData = scope.editor.getModelMetaData();
|
||||
// 构建oaNodeManages管理列表
|
||||
var oaNodeManages = KISBPM.TOOLBAR.ACTIONS.listOaNodeManage(json);
|
||||
console.log(oaNodeManages)
|
||||
var params = {
|
||||
jsonXml: JSON.stringify(json),
|
||||
svgXml: svgDOM,
|
||||
name: modelMetaData.name,
|
||||
description: modelMetaData.description,
|
||||
name: json.properties.name,
|
||||
description: json.properties.documentation,
|
||||
isOa: oaNodeManages.length > 0 ? true : false,
|
||||
oaNodeManages: oaNodeManages
|
||||
}
|
||||
|
@ -35,9 +35,9 @@
|
||||
{
|
||||
"id": "name",
|
||||
"type": "String",
|
||||
"title": "元素名称",
|
||||
"title": "流程名称",
|
||||
"value": "",
|
||||
"description": "元素名称",
|
||||
"description": "流程名称",
|
||||
"popular": true,
|
||||
"refToView": "text_name"
|
||||
}
|
||||
@ -49,9 +49,9 @@
|
||||
{
|
||||
"id": "documentation",
|
||||
"type": "Text",
|
||||
"title": "描述",
|
||||
"title": "流程描述",
|
||||
"value": "",
|
||||
"description": "元素描述",
|
||||
"description": "流程描述",
|
||||
"popular": true
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user