|
|
@@ -19,7 +19,7 @@ class Res extends Backend
|
|
|
* @var \app\admin\model\Res
|
|
|
*/
|
|
|
protected $model = null;
|
|
|
- protected $searchFields = 'entrust_no,name,bach,standard_name';
|
|
|
+ protected $searchFields = 'entrust_no,name,bach,standard_name,sample_info,send_sample';
|
|
|
public function _initialize()
|
|
|
{
|
|
|
parent::_initialize();
|
|
|
@@ -55,7 +55,7 @@ class Res extends Backend
|
|
|
[$where, $sort, $order, $offset, $limit] = $this->buildparams();
|
|
|
$user_id = Session::get('admin')['id'];
|
|
|
if ($user_id == 1){//超级管理员
|
|
|
- $list = $this->model
|
|
|
+ $list = $this->model->alias('a')
|
|
|
->where($where)
|
|
|
->order($sort, $order)
|
|
|
->paginate($limit);
|