From 17394a475f06c1dde70e2c376d3553cfe1b70143 Mon Sep 17 00:00:00 2001 From: cxdbz Date: Wed, 8 May 2019 21:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8D=A3=E8=AA=89=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=92=8C=E8=AF=BE=E9=A2=98=E7=BB=9F=E8=AE=A1=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/chengji/view/index/index.html | 4 ++-- application/kaoshi/model/Kaohao.php | 7 +++++-- application/keti/view/index/index.html | 4 ++-- application/keti/view/keti_info/index.html | 19 ++++++++++--------- .../keti/view/keti_info/keti_list.html | 12 ++++++------ application/rongyu/view/dw_rongyu/index.html | 6 +++--- .../rongyu/view/js_rongyu_info/index.html | 6 +++--- 7 files changed, 31 insertions(+), 27 deletions(-) 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 @@