wugg 9 months ago
parent
commit
060d6b5956
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/bug/controller/Work.php

+ 1 - 2
app/bug/controller/Work.php

@@ -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);
 	}