修改状态按钮为开关形式。

This commit is contained in:
小松树 committed 2019-10-17 16:52:53 +08:00
1 parent 063a16d77d
commit bdee319d30
5 files changed
+59 -29

No files matched your search

+2 -2
View File
@@ -716,7 +716,7 @@ class Index extends Base
->only([
'page'=>'1',
'limit'=>'10',
'field'=>'banji',
'field'=>'subject_id',
'type'=>'desc',
'kaohao'=>''
],'POST');
@@ -726,7 +726,7 @@ class Index extends Base
$data = $chengji
->where('kaohao_id',$src['kaohao'])
->field('id,kaohao_id,subject_id,user_id,defen,update_time')
->order('subject_id')
->order([$src['field']=>$src['type']])
->with([
'subjectName'=>function($query){
$query->field('id,title');