|
|
|
@ -83,7 +83,22 @@ class MemberController extends ThinkController
|
|
|
|
|
$is_repeat = true;
|
|
|
|
|
}
|
|
|
|
|
$isMarketAdmin = isMarketAdmin();
|
|
|
|
|
$map = withMarketAdminCondition($map, I('market_admin_id', 0));
|
|
|
|
|
|
|
|
|
|
$marketAdminIds = 0;
|
|
|
|
|
if(!empty($_REQUEST['market_admin_id'])){
|
|
|
|
|
$marketAdminIds = $_REQUEST['market_admin_id'];
|
|
|
|
|
}
|
|
|
|
|
if(!empty($_REQUEST['department_id'])){
|
|
|
|
|
$departmentUser = A("Market",'Event')->getDepartmentUserId($_REQUEST['department_id']);
|
|
|
|
|
if($marketAdminIds){
|
|
|
|
|
if(!in_array($marketAdminIds,$departmentUser)){
|
|
|
|
|
$marketAdminIds = -1;
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
$marketAdminIds = $departmentUser;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$map = withMarketAdminCondition($map, $marketAdminIds);
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['status'])) {
|
|
|
|
|
$map['lock_status'] = $_REQUEST['status'];
|
|
|
|
@ -318,6 +333,7 @@ class MemberController extends ThinkController
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
}
|
|
|
|
|
$this->assign('list_data', $data);
|
|
|
|
|
$this->assign('departments', A("Market",'Event')->getDepartments());
|
|
|
|
|
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
|
|
|
|
|
$this->assign('show_data_power', $show_data_power);
|
|
|
|
|
$this->display();
|
|
|
|
|