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],