|
@@ -86,10 +86,10 @@ class Work extends Base{
|
|
|
'apply_name'=>$this->uname,
|
|
|
]);
|
|
|
}else{
|
|
|
- $work->workTemplate->action=$param['action'];
|
|
|
- $work->workTemplate->apply_id=$this->uid;
|
|
|
- $work->workTemplate->apply_name=$this->uname;
|
|
|
- $up=$work->workTemplate->save();
|
|
|
+ $info->workTemplate->action=$param['action'];
|
|
|
+ $info->workTemplate->apply_id=$this->uid;
|
|
|
+ $info->workTemplate->apply_name=$this->uname;
|
|
|
+ $up=$info->workTemplate->save();
|
|
|
}
|
|
|
if($up==false) throw new Exception('岗位编辑失败');
|
|
|
$this->model->commit();
|
|
@@ -263,7 +263,7 @@ class Work extends Base{
|
|
|
public function WorkTemplateInfo(){
|
|
|
$work_id=$this->request->post('work_id/d');
|
|
|
$info= WorkTemplate::where(['work_id'=>$work_id])->findOrEmpty();
|
|
|
- if($info->isEmpty()) error('未找到数据');
|
|
|
+ if($info->isEmpty()) return error('未找到数据');
|
|
|
$info->actionInfo= (new WorkAction())->GetTreeActionByIdArr($info->action,$info->workInfo->belong);
|
|
|
return success('获取成功',$info);
|
|
|
}
|