|
|
|
@ -128,13 +128,14 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|
|
|
|
id: processForm.id,
|
|
|
|
|
flowName: processForm.flowName,
|
|
|
|
|
remark: processForm.remark,
|
|
|
|
|
flowType: "1",
|
|
|
|
|
flowType: processForm.flowType,
|
|
|
|
|
baseIdList: processForm.baseIdList,
|
|
|
|
|
nodeInfoList: processForm.link.map(item => {
|
|
|
|
|
return {
|
|
|
|
|
id: "",
|
|
|
|
|
userIdList: item.userIdList,
|
|
|
|
|
order: "",
|
|
|
|
|
roleId: item.roleId,
|
|
|
|
|
nodeName: item.nodeName
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
@ -142,7 +143,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|
|
|
|
// console.log(createForm);
|
|
|
|
|
updateProcess(createForm).then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
message("新建成功", { type: "success" });
|
|
|
|
|
message("修改成功", { type: "success" });
|
|
|
|
|
props.closeDrawer();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|