diff --git a/app/chengji/controller/Bjtongji.php b/app/chengji/controller/Bjtongji.php index 6d235309..439fec59 100755 --- a/app/chengji/controller/Bjtongji.php +++ b/app/chengji/controller/Bjtongji.php @@ -85,12 +85,15 @@ class Bjtongji extends AdminBase ->find(); // 获取参与学校 $cy = new \app\kaohao\model\SearchCanYu; - $src['kaoshi_id'] = $kaoshi_id; + $src = [ + 'kaoshi_id'=>$kaoshi_id + ]; $list['school_id'] = $cy->school($src); + // 获取年级与学科 $ksset = new \app\kaoshi\model\KaoshiSet; - $list['nianji'] = $ksset->srcGrade($kaoshi_id); + $list['nianji'] = $ksset->srcGrade($src); $list['subject_id'] = $ksset->srcSubject($src); // 设置要给模板赋值的信息 $list['webtitle'] = '各年级的班级成绩列表'; diff --git a/app/kaohao/controller/Index.php b/app/kaohao/controller/Index.php index 495a1be9..439a0ff4 100755 --- a/app/kaohao/controller/Index.php +++ b/app/kaohao/controller/Index.php @@ -51,7 +51,7 @@ class Index extends AdminBase ,'banji_id' ], 'POST'); - event('kslu', $list['kaoshi_id']); + // event('kslu', $list['kaoshi_id']); // 验证表单数据 $validate = new \app\kaohao\validate\Kaohao; $result = $validate->scene('createAll')->check($list); @@ -66,6 +66,7 @@ class Index extends AdminBase 'banji_id' => $list['banji_id'] ,'kaoshi' => 1 ,'status' => 1 + ,'all' => true ]; $src['auth'] = event('mybanji', array()); diff --git a/view/create.html b/view/create.html index 55ff3182..930f2c87 100755 --- a/view/create.html +++ b/view/create.html @@ -33,8 +33,8 @@