|
|
@@ -50,12 +50,15 @@ class LabelsLists extends BaseAdminDataLists implements ListsSearchInterface
|
|
|
*/
|
|
|
public function queryDataWhere(){
|
|
|
$where = [];
|
|
|
- $data_rules = $this->adminInfo['data_rules'];
|
|
|
- if (isset($data_rules['province']) && !empty($data_rules['province'])) {
|
|
|
- $where[] = ['province','in' ,$data_rules['province']];
|
|
|
- }
|
|
|
- if (isset($data_rules['city']) && !empty($data_rules['city'])) {
|
|
|
- $where[] = ['city','in' ,$data_rules['city']];
|
|
|
+ // 工程师标签 - 省市权限判断
|
|
|
+ if(isset($this->params['label_type']) && $this->params['label_type'] == 2){
|
|
|
+ $data_rules = $this->adminInfo['data_rules'];
|
|
|
+ if (isset($data_rules['province']) && !empty($data_rules['province'])) {
|
|
|
+ $where[] = ['province','in' ,$data_rules['province']];
|
|
|
+ }
|
|
|
+ if (isset($data_rules['city']) && !empty($data_rules['city'])) {
|
|
|
+ $where[] = ['city','in' ,$data_rules['city']];
|
|
|
+ }
|
|
|
}
|
|
|
return $where;
|
|
|
}
|