From 94274fc3dc7232701cd1eb53a39b29dd8df2c804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Wed, 22 Dec 2021 11:48:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chengji/controller/Bjtongji.php | 7 +++++-- app/kaohao/controller/Index.php | 3 ++- view/create.html | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) 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 @@
- {block name="form"}{/block} -
+ {block name="form"}{/block} +