作者 景琛

后台快速检索

@@ -32,7 +32,7 @@ class Study extends Backend @@ -32,7 +32,7 @@ class Study extends Backend
32 /** 32 /**
33 * 快速搜索时执行查找的字段 33 * 快速搜索时执行查找的字段
34 */ 34 */
35 - protected $searchFields = '*'; 35 + protected $searchFields = 'id,name,team,school,ronda,unique';
36 36
37 37
38 public function _initialize() 38 public function _initialize()
@@ -19,7 +19,7 @@ class User extends Backend @@ -19,7 +19,7 @@ class User extends Backend
19 { 19 {
20 20
21 protected $relationSearch = true; 21 protected $relationSearch = true;
22 - protected $searchFields = 'id,username,nickname'; 22 + protected $searchFields = 'id,nickname,mobile,teach_phone';
23 protected $modelValidate = true; //开启validate,验证默认是fasle 23 protected $modelValidate = true; //开启validate,验证默认是fasle
24 24
25 /** 25 /**