修改荣誉统计和课题统计列表
This commit is contained in:
1 parent
bfd2a4dfa9
commit
17394a475f
7 files changed
+31
-27
No files matched your search
@@ -17,7 +17,7 @@
|
||||
</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" id="searchval" name="searchval"
|
||||
autocomplete="off" class="layui-input">
|
||||
autocomplete="off" class="layui-input" placeholder="姓名、考号">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
@@ -97,7 +97,7 @@
|
||||
options.cols[0].push({field: 'avg', title: '平均分',sort: true});
|
||||
options.cols[0].push({field: 'cnt', title: '总分',sort: true});
|
||||
options.cols[0].push({field: 'cnt', title: '总分',sort: true});
|
||||
|
||||
options.cols[0].push({field: 'id', title: '操作',toolbar: '#barDemo',minWidth:125});
|
||||
|
||||
|
||||
// 提交搜索条件后重载表格
|
||||
|
||||
@@ -89,8 +89,11 @@ class Kaohao extends Base
|
||||
$query->where('nianji','in',$nianji);
|
||||
})
|
||||
->when(strlen($seachval)>0,function($query) use($seachval){
|
||||
$query->where('id','in',function($q)use($seachval){
|
||||
$q->name('student')->where('xingming','like','%'.$seachval.'%')->field('id');
|
||||
$query->where(function($w) use ($seachval){
|
||||
$w->whereOr('id',$seachval)
|
||||
->whereOr('student','in',function($q)use($seachval){
|
||||
$q->name('student')->where('xingming',$seachval)->field('id');
|
||||
});
|
||||
});
|
||||
})
|
||||
->with([
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="layui-input-block" onclick ="clickSearchButton('#search','mytable')">
|
||||
{php} $category = getCategory(112);{/php}
|
||||
{volist name="category" id="vo"}
|
||||
<input type="checkbox" name="category" title="{$vo.title}" value="{$vo.id}" lay-skin="primary">
|
||||
<input type="checkbox" name="category[]" title="{$vo.title}" value="{$vo.id}" lay-skin="primary">
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,7 +33,7 @@
|
||||
<div class="layui-input-block" onclick ="clickSearchButton('#search','mytable')">
|
||||
{php} $school = schlist('区级','其它级'); {/php}
|
||||
{volist name="school" id="vo"}
|
||||
<input type="checkbox" name="lxdanweiid" title="{$vo.jiancheng}" value="{$vo.id}" lay-skin="primary">
|
||||
<input type="checkbox" name="lxdanweiid[]" title="{$vo.jiancheng}" value="{$vo.id}" lay-skin="primary">
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user