正在显示
3 个修改的文件
包含
7 行增加
和
4 行删除
| @@ -28,7 +28,7 @@ class ProjectUserController extends BaseController | @@ -28,7 +28,7 @@ class ProjectUserController extends BaseController | ||
| 28 | public function lists(){ | 28 | public function lists(){ |
| 29 | $userModel = new UserModel(); | 29 | $userModel = new UserModel(); |
| 30 | $lists = $userModel->lists($this->map,$this->page,$this->row,$this->order, | 30 | $lists = $userModel->lists($this->map,$this->page,$this->row,$this->order, |
| 31 | - ['id','mobile','name','created_at','updated_at','image','operator_id']); | 31 | + ['id','mobile','name','project_id','created_at','updated_at','image','operator_id']); |
| 32 | $this->response('列表',Code::SUCCESS,$lists); | 32 | $this->response('列表',Code::SUCCESS,$lists); |
| 33 | } | 33 | } |
| 34 | 34 |
| @@ -21,7 +21,8 @@ class DeptLogic extends BaseLogic | @@ -21,7 +21,8 @@ class DeptLogic extends BaseLogic | ||
| 21 | * @method :post | 21 | * @method :post |
| 22 | * @time :2023/6/21 14:56 | 22 | * @time :2023/6/21 14:56 |
| 23 | */ | 23 | */ |
| 24 | - public function DeptLists($map,$page,$row,$order = 'created_at',$filed = ['id','pid','title','sort','created_at','remark']){ | 24 | + public function DeptLists($map,$page,$row,$order = 'created_at'){ |
| 25 | + $filed = ['id','pid','title','sort','created_at','remark']; | ||
| 25 | $lists = $this->model->lists($map,$page,$row,$order,$filed); | 26 | $lists = $this->model->lists($map,$page,$row,$order,$filed); |
| 26 | return $this->success($lists); | 27 | return $this->success($lists); |
| 27 | } | 28 | } |
| @@ -34,7 +35,8 @@ class DeptLogic extends BaseLogic | @@ -34,7 +35,8 @@ class DeptLogic extends BaseLogic | ||
| 34 | * @time :2023/6/21 15:01 | 35 | * @time :2023/6/21 15:01 |
| 35 | */ | 36 | */ |
| 36 | public function DeptRead(){ | 37 | public function DeptRead(){ |
| 37 | - $info = $this->model->read($this->param,['id','pid','title','created_at','remark']); | 38 | + $filed = ['id','pid','title','sort','created_at','remark']; |
| 39 | + $info = $this->model->read($this->param,$filed); | ||
| 38 | if($info === false){ | 40 | if($info === false){ |
| 39 | $this->fail('当前数据不存在,或者被删除'); | 41 | $this->fail('当前数据不存在,或者被删除'); |
| 40 | } | 42 | } |
| @@ -92,7 +92,8 @@ class ProjectMenuLogic extends BaseLogic | @@ -92,7 +92,8 @@ class ProjectMenuLogic extends BaseLogic | ||
| 92 | * @time :2023/6/21 17:26 | 92 | * @time :2023/6/21 17:26 |
| 93 | */ | 93 | */ |
| 94 | public function MenuList(){ | 94 | public function MenuList(){ |
| 95 | - $lists = $this->model->list(['status'=>$this->model::ZERO,'is_role'=>$this->model::ZERO,'pid'=>$this->model::ZERO]); | 95 | + $filed = ['id','pid','name','created_at','status','rules','is_role','icon','action','updated_at']; |
| 96 | + $lists = $this->model->list(['status'=>$this->model::ZERO,'is_role'=>$this->model::ZERO,'pid'=>$this->model::ZERO],'created_at',$filed); | ||
| 96 | return $this->success($lists); | 97 | return $this->success($lists); |
| 97 | } | 98 | } |
| 98 | } | 99 | } |
-
请 注册 或 登录 后发表评论