...
|
...
|
@@ -29,7 +29,6 @@ class InformationController extends RestBaseController |
|
|
* @method GET
|
|
|
*
|
|
|
* @header name:token require:1 default: desc:header
|
|
|
* @param name:company_id type:inter require:0 default: other desc:公司id(如果是总领导有此字段)
|
|
|
*
|
|
|
* @return project_a:字母排序['b','c']
|
|
|
* @return project_n:项目名称@
|
...
|
...
|
@@ -38,20 +37,22 @@ class InformationController extends RestBaseController |
|
|
*/
|
|
|
public function getProjectGroup(){
|
|
|
if($this->request->isGet()){
|
|
|
$company_id = $this->request->get('company_id');
|
|
|
|
|
|
$common = new CommonController();
|
|
|
$user = $common->getUserIdentity();
|
|
|
|
|
|
//根据企业id查询项目组名称
|
|
|
$res = [];
|
|
|
if($user['identity'] == config('site.a_leader')){
|
|
|
//项目组
|
|
|
//甲方领导
|
|
|
$res = $common->getProjectGroup($user['company_id']);
|
|
|
|
|
|
}else if($user['identity'] == config('site.a_leaders')){
|
|
|
$res = $common->getProjectGroup($company_id);
|
|
|
//甲方总领导
|
|
|
$res = $common->getAsProjectGroup();
|
|
|
|
|
|
}else if($user['identity'] == config('site.b_leader')){
|
|
|
//乙方领导
|
|
|
$res = $common->getProjectGroup($user['company_id'],1);
|
|
|
}
|
|
|
|
...
|
...
|
|