update
This commit is contained in:
parent
8e188776c6
commit
5a4c2ce0e8
@ -218,9 +218,9 @@ class ManageProjectLogic extends BaseLogic
|
||||
$data['contract_name'] = $data->contract_name_text;
|
||||
$data['project_manager_name'] = $data->project_manager_name_text;
|
||||
$data['project_leader_name'] = $data->project_leader_name_text;
|
||||
$data['project_department'] = (Int)$data->project_department;
|
||||
$data['supervision_department'] = (Int)$data->supervision_department;
|
||||
$data['implementation_department'] = (Int)$data->implementation_department;
|
||||
$data['project_department'] = $data->project_department_name_text;
|
||||
$data['supervision_department'] = $data->supervision_department_name_text;
|
||||
$data['implementation_department'] = $data->implementation_department_name_text;
|
||||
return $data->toArray();
|
||||
}
|
||||
|
||||
|
@ -90,12 +90,7 @@ class ManageProject extends BaseModel
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
public function getImplementationDepartNameTextAttr($value,$data){
|
||||
if($data['implementation_department']>0){
|
||||
return Dept::where('id',$data['implementation_department'])->value('name');
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function getImplementationDepartmentNameTextAttr($value,$data){
|
||||
if($data['implementation_department']>0){
|
||||
return Dept::where('id',$data['implementation_department'])->value('name');
|
||||
|
Loading…
x
Reference in New Issue
Block a user