diff --git a/app/chengji/model/Tongji.php b/app/chengji/model/Tongji.php index 86e61e87..f6114c85 100644 --- a/app/chengji/model/Tongji.php +++ b/app/chengji/model/Tongji.php @@ -118,6 +118,7 @@ class Tongji extends Base // 循环统计各学科成绩 foreach ($ksinfo->ksSubject as $key => $value) { $cjcol = array_column($cj,$value->lieming); + $stucnt = count($cjcol); $cjcol = array_filter($cjcol,function($item){ return $item !== null; }); @@ -159,6 +160,7 @@ class Tongji extends Base $cjcol = array_filter($cjcol,function($item){ return $item !== null; }); + $data['stucnt'] = count($cj); $data['bmcnt'] = count($cjcol); # 报名人数 $data['sum'] = array_sum($cjcol); if($data['bmcnt']>0) diff --git a/app/chengji/view/tongji/yilu_cnt.html b/app/chengji/view/tongji/yilu_cnt.html index ed3eafc2..565a82aa 100644 --- a/app/chengji/view/tongji/yilu_cnt.html +++ b/app/chengji/view/tongji/yilu_cnt.html @@ -88,7 +88,7 @@ var str=''; if(d.chengji) { - str = d.chengji.bmcnt + str = d.chengji.stucnt } return str; }},