|
@@ -217,8 +217,7 @@ class Work extends Base{
|
|
|
$work_id=$this->request->post('work_id/d');
|
|
|
$info= WorkTemplate::where(['work_id'=>$work_id])->findOrEmpty();
|
|
|
if($info->isEmpty()) error('未找到数据');
|
|
|
- $action = WorkAction::where("id",$info->action)->field("action_name,menu_id,belong_action,belong_process")
|
|
|
- ->select();
|
|
|
+ $info->actionInfo= (new WorkAction())->GetTreeActionByIdArr($info->action,$info->workInfo->belong);
|
|
|
|
|
|
return success('获取成功',$info);
|
|
|
}
|