作者 lyh

gx

... ... @@ -28,7 +28,7 @@ class ProjectUserController extends BaseController
public function lists(){
$userModel = new UserModel();
$lists = $userModel->lists($this->map,$this->page,$this->row,$this->order,
['id','mobile','name','created_at','updated_at','image','operator_id']);
['id','mobile','name','project_id','created_at','updated_at','image','operator_id']);
$this->response('列表',Code::SUCCESS,$lists);
}
... ...
... ... @@ -21,7 +21,8 @@ class DeptLogic extends BaseLogic
* @method :post
* @time :2023/6/21 14:56
*/
public function DeptLists($map,$page,$row,$order = 'created_at',$filed = ['id','pid','title','sort','created_at','remark']){
public function DeptLists($map,$page,$row,$order = 'created_at'){
$filed = ['id','pid','title','sort','created_at','remark'];
$lists = $this->model->lists($map,$page,$row,$order,$filed);
return $this->success($lists);
}
... ... @@ -34,7 +35,8 @@ class DeptLogic extends BaseLogic
* @time :2023/6/21 15:01
*/
public function DeptRead(){
$info = $this->model->read($this->param,['id','pid','title','created_at','remark']);
$filed = ['id','pid','title','sort','created_at','remark'];
$info = $this->model->read($this->param,$filed);
if($info === false){
$this->fail('当前数据不存在,或者被删除');
}
... ...
... ... @@ -92,7 +92,8 @@ class ProjectMenuLogic extends BaseLogic
* @time :2023/6/21 17:26
*/
public function MenuList(){
$lists = $this->model->list(['status'=>$this->model::ZERO,'is_role'=>$this->model::ZERO,'pid'=>$this->model::ZERO]);
$filed = ['id','pid','name','created_at','status','rules','is_role','icon','action','updated_at'];
$lists = $this->model->list(['status'=>$this->model::ZERO,'is_role'=>$this->model::ZERO,'pid'=>$this->model::ZERO],'created_at',$filed);
return $this->success($lists);
}
}
... ...