荣誉册修改
This commit is contained in:
1 parent
1c4b600dcd
commit
24013a5ea5
32 files changed
+970
-2931
No files matched your search
@@ -34,7 +34,7 @@ class Index extends Base
|
||||
'page'=>'1'
|
||||
,'limit'=>'10'
|
||||
,'field'=>'id'
|
||||
,'order'=>'asc'
|
||||
,'order'=>'desc'
|
||||
,'searchval'=>''
|
||||
],'POST');
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ class Admin extends Base
|
||||
// 查询数据
|
||||
$data = $this
|
||||
->order([$src['field'] =>$src['order']])
|
||||
->where('id','>',2)
|
||||
->when(strlen($searchval)>0,function($query) use($searchval){
|
||||
$query->where('xingming|username','like','%'.$searchval.'%');
|
||||
})
|
||||
|
||||
@@ -160,6 +160,7 @@ function schlist($low='班级',$high='其它级')
|
||||
|
||||
// 查询学校
|
||||
$schlist = $sch->where('jibie','between',[$catlist[$low],$catlist[$high]])
|
||||
->where('status',1)
|
||||
// ->cache('schoollist',180)
|
||||
->order(['paixu'])
|
||||
->column('id,title,jiancheng');
|
||||
|
||||
Loaded 3 of 32 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user