修改年级列表

This commit is contained in:
巴掌 committed 2018-12-12 09:55:07 +08:00
1 parent a8ef8ad403
commit 3112ede827
23 files changed
+83 -152

No files matched your search

+16 -7
View File
@@ -119,21 +119,22 @@ class Tongji extends Base
public function ajaxSchool()
{
// 获取年级和班级列表名
$njnames = nianjiList();
// $njnames = nianjiList();
// 获取表单参数
$getParam = request()->param();
$school = $getParam['school'];
$nianji = $getParam['nianji'];
// 实例化成绩数据模型
$cj = new \app\chengji\model\Chengji;
$cj = new \app\system\model\Chengji;
// 根据考试号和年级获取考试成绩
$cjlist = $cj->searchNianji($getParam['kaoshiid'],$school,$getParam['ruxuenian']);
$cjlist = $cj->searchNianji($kaoshi=$getParam['kaoshiid'],$nianji=$getParam['ruxuenian']);
// 根据年级获取一个有多少个班级
$bj = new \app\teach\model\Banji;
$bjids = $bj->where('ruxuenian',$getParam['ruxuenian'])
// 获取学校列表
$sch = new \app\teach\model\School;
$schids = $sch->where('ruxuenian',$getParam['ruxuenian'])
->when(!empty($school),function($query) use($school){
$query->where('school','in',$school);
})
@@ -174,4 +175,12 @@ class Tongji extends Base
return json($data);
}
public function test()
{
$aa = schlist('区级','区级');
dump($aa);
}
}
+4
View File
@@ -138,6 +138,8 @@ class Chengji extends Base
// 根据考试ID查询所有考试成绩
public function searchAll($kaoshiid)
{
@@ -162,6 +164,8 @@ class Chengji extends Base
}
// 考试项目查询范围
public function scopeKaoshi($query,$kaoshiid)
{
@@ -35,8 +35,7 @@
<div class="panel-body" style="min-height: 100px">
<div>
{php}
$school = new app\system\model\School;
$school = $school->searchMany('校级','校级');
$school = schlist('校级','校级');
{/php}<label class="f-l">学校:</label>
<dt>
<dd class=" mt-10">
Loaded 3 of 23 files, more files were not shown because too many files have changed in this diff. Show more