|
@@ -85,11 +85,15 @@ class Company extends Base_Controller {
|
|
|
// 公司下拉
|
|
|
public function nav(){
|
|
|
$where = array();
|
|
|
+ $company = $this->get_user_info('company');
|
|
|
+ $role = $this->get_user_info('role');
|
|
|
|
|
|
$type = intval($this->input->post('type',true));
|
|
|
|
|
|
if (!empty($type)) $where['type'] = $type;
|
|
|
|
|
|
+ if ($type == $role) $where['id'] = $company;
|
|
|
+
|
|
|
$list = $this->Company_model->get_list($where, 'id,name',null, null, 'name asc,id desc', NUll);
|
|
|
|
|
|
exit(json_result('0000',$this->response['0000'],array('list'=>$list)));
|