From 4855fdd6d57d3a29266e2c0e72cb920c8b09c8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Thu, 31 Jan 2019 14:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=99=E5=B8=88=E8=8D=A3?= =?UTF-8?q?=E8=AA=89=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/rongyu/controller/JsRongyuInfo.php | 1 + application/rongyu/model/JsRongyu.php | 2 +- application/rongyu/view/js_rongyu_info/index.html | 10 ++++++++++ database/seeds/Rule.php | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/application/rongyu/controller/JsRongyuInfo.php b/application/rongyu/controller/JsRongyuInfo.php index 39e5634f..e6f8cee0 100644 --- a/application/rongyu/controller/JsRongyuInfo.php +++ b/application/rongyu/controller/JsRongyuInfo.php @@ -54,6 +54,7 @@ class JsRongyuInfo extends Base //得到搜索的关键词 $search = [ + 'hjschool'=>$getdt['hjschool'], 'fzschool'=>$getdt['fzschool'], 'category'=>$getdt['category'], 'search'=>$getdt['search']['value'], diff --git a/application/rongyu/model/JsRongyu.php b/application/rongyu/model/JsRongyu.php index ab3e710f..6c6133eb 100644 --- a/application/rongyu/model/JsRongyu.php +++ b/application/rongyu/model/JsRongyu.php @@ -10,7 +10,7 @@ class JsRongyu extends Base //搜索单位获奖荣誉 public function search($search) { - // 获取参数 + // 获取参数 $fzschool = $search['fzschool']; $category = $search['category']; $order_field = $search['order_field']; diff --git a/application/rongyu/view/js_rongyu_info/index.html b/application/rongyu/view/js_rongyu_info/index.html index 8d9e5db2..05ef4c6b 100644 --- a/application/rongyu/view/js_rongyu_info/index.html +++ b/application/rongyu/view/js_rongyu_info/index.html @@ -112,6 +112,16 @@ url: "{:url('ajaxdata')}", type: "post", data: { + hjschool:function(){ + var chk = []; + $('input[name="hjschool"]:checked').each(function(){ + if(typeof($(this).val()) != "undefined") + { + chk.push($(this).val()); + } + }); + return chk; + }, fzschool:function(){ var chk = []; $('input[name="fzschool"]:checked').each(function(){ diff --git a/database/seeds/Rule.php b/database/seeds/Rule.php index 1b4c9843..464f3928 100644 --- a/database/seeds/Rule.php +++ b/database/seeds/Rule.php @@ -60,7 +60,7 @@ class Rule extends Seeder ['id'=>801,'title'=>'单位荣誉','name'=>'rongyu/DwRongyu/index','paixu'=>1,'ismenu' =>true,'pid' =>8,'url'=>'/dwry',], ['id'=>802,'title'=>'教师荣誉册','name'=>'rongyu/JsRongyu/index','paixu'=>2,'ismenu' =>true,'pid' =>8,'url'=>'/jsry',], ['id'=>803,'title'=>'教师荣誉信息','name'=>'rongyu/JsRongyuInfo/index','paixu'=>3,'ismenu' =>true,'pid' =>8,'url'=>'/jsryinfo',], - ['id'=>804,'title'=>'学生荣誉','name'=>'rongyu/StuRongyu/index','paixu'=>7,'ismenu' =>true,'pid' =>8,'url'=>'/xsry',], + ['id'=>804,'title'=>'学生荣誉','name'=>'rongyu/StuRongyu/index','paixu'=>7,'ismenu' =>true,'pid' =>8,'url'=>'/xsry','status'=>false],