diff --git a/application/chengji/view/index/index.html b/application/chengji/view/index/index.html index 8b0cc7b9..2681bbdb 100644 --- a/application/chengji/view/index/index.html +++ b/application/chengji/view/index/index.html @@ -17,7 +17,7 @@
+ autocomplete="off" class="layui-input" placeholder="姓名、考号">
@@ -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}); // 提交搜索条件后重载表格 diff --git a/application/kaoshi/model/Kaohao.php b/application/kaoshi/model/Kaohao.php index ca38f8a6..bb8a52e4 100644 --- a/application/kaoshi/model/Kaohao.php +++ b/application/kaoshi/model/Kaohao.php @@ -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([ diff --git a/application/keti/view/index/index.html b/application/keti/view/index/index.html index 3f29bad5..dc90f83d 100644 --- a/application/keti/view/index/index.html +++ b/application/keti/view/index/index.html @@ -24,7 +24,7 @@
{php} $category = getCategory(112);{/php} {volist name="category" id="vo"} - + {/volist}
@@ -33,7 +33,7 @@
{php} $school = schlist('区级','其它级'); {/php} {volist name="school" id="vo"} - + {/volist}
diff --git a/application/keti/view/keti_info/index.html b/application/keti/view/keti_info/index.html index f921a298..ce172a69 100644 --- a/application/keti/view/keti_info/index.html +++ b/application/keti/view/keti_info/index.html @@ -25,7 +25,7 @@
{php} $school = schlist('校级','区级'); {/php} {volist name="school" id="vo"} - + {/volist}
@@ -34,7 +34,7 @@
{php} $category = getCategory(115);{/php} {volist name="category" id="vo"} - + {/volist}
@@ -43,7 +43,7 @@
{php} $school = schlist('校级','区级'); {/php} {volist name="school" id="vo"} - + {/volist}
@@ -52,7 +52,7 @@
{php} $category = getCategory(116);{/php} {volist name="category" id="vo"} - + {/volist}
@@ -61,17 +61,17 @@
{php} $category = getCategory(117);{/php} {volist name="category" id="vo"} - + {/volist}
- - - - + + + +
{/block} @@ -156,6 +156,7 @@ break; }; }); + }); {/block} \ No newline at end of file diff --git a/application/keti/view/keti_info/keti_list.html b/application/keti/view/keti_info/keti_list.html index 87f975fe..a8cba543 100644 --- a/application/keti/view/keti_info/keti_list.html +++ b/application/keti/view/keti_info/keti_list.html @@ -61,17 +61,17 @@
{php} $category = getCategory(117);{/php} {volist name="category" id="vo"} - + {/volist}
- - - - + + + +
{/block} @@ -100,7 +100,7 @@