1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- namespace app\admin\controller\project;
- use app\admin\BaseController;
- use app\admin\controller\field\Field;
- use app\admin\model\CostProject as CostProjectModel;
- use app\admin\model\Department as DepartmentModel;
- use think\App;
- use think\facade\Db;
- class people extends BaseController
- {
- /**
- * 构造函数
- */
- public function __construct(App $app)
- {
- parent::__construct($app);
- $this->Field = new Field($this->app);
- $this->department = new DepartmentModel();
- $this->model = new CostProjectModel();
- $this->uid = get_login_admin('id');
- }
- public function cdatalist(){
- // if (request()->isAjax()) {
- $param = get_params();
- $inarr=array();
- $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
- $order = empty($param['order']) ? 'id desc' : $param['order'];
- $list = $this->model->where("id",$param["project_id"])->field('review_head,operate_head,operate_team')->select()->toArray();
- $a = $list[0];
- $ids = $a["review_head"].','.$a["operate_head"].','.$a["operate_team"];
- $ids = explode(",",$ids);
- // Db::name("admin")->whereIn("id",$ids)->join()
- halt($ids);
- // }else{
- //
- // }
- }
- public function gdatalist(){
- if (request()->isAjax()) {
- $param = get_params();
- $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
- $order = empty($param['order']) ? 'id desc' : $param['order'];
- $list = $this->model->where("id",$param["project_id"])->field('')->select()->toArray();
- }else{
- }
- }
- }
|