|
@@ -134,6 +134,8 @@ class WorkFlowService extends Service
|
|
|
return [false, '审批流配置缺少连线(edges)信息'];
|
|
return [false, '审批流配置缺少连线(edges)信息'];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ $data['content'] = $content;
|
|
|
|
|
+
|
|
|
// 4. 业务唯一性校验
|
|
// 4. 业务唯一性校验
|
|
|
$query = WorkFlowTemplates::where('code', $data['code'])
|
|
$query = WorkFlowTemplates::where('code', $data['code'])
|
|
|
->where('top_depart_id', $user['top_depart_id'])
|
|
->where('top_depart_id', $user['top_depart_id'])
|
|
@@ -191,7 +193,7 @@ class WorkFlowService extends Service
|
|
|
'upd_time' => time(),
|
|
'upd_time' => time(),
|
|
|
'top_depart_id' => $user['top_depart_id']
|
|
'top_depart_id' => $user['top_depart_id']
|
|
|
]);
|
|
]);
|
|
|
-
|
|
|
|
|
|
|
+dd($template->content);
|
|
|
// 获取前端原始 JSON 中的节点和连线 [cite: 1]
|
|
// 获取前端原始 JSON 中的节点和连线 [cite: 1]
|
|
|
$nodes = $template->content['nodes'];
|
|
$nodes = $template->content['nodes'];
|
|
|
$edges = $template->content['edges'];
|
|
$edges = $template->content['edges'];
|