From e82ce116018b69beba587738c3fa22f9c2c4fe0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E8=BF=9E=E5=B7=B4=E6=8E=8C?= Date: Wed, 3 Jul 2019 19:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=89=E7=8E=87=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/chengji/model/Tongji.php | 2 +- application/chengji/view/tongji/tj_banji.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/chengji/model/Tongji.php b/application/chengji/model/Tongji.php index 5f554c8c..99b8cce3 100644 --- a/application/chengji/model/Tongji.php +++ b/application/chengji/model/Tongji.php @@ -137,7 +137,7 @@ class Tongji extends Model { return round($cnt/count($cj)*100,2); }else{ - return ''; + return '0'; } } diff --git a/application/chengji/view/tongji/tj_banji.html b/application/chengji/view/tongji/tj_banji.html index 64726f59..7defff51 100644 --- a/application/chengji/view/tongji/tj_banji.html +++ b/application/chengji/view/tongji/tj_banji.html @@ -92,7 +92,7 @@ // 获取学科 var xk = ''; xk = eval(decodeURIComponent(xk)); - var xiangmu = {cnt:'人数',avg:'平均分',youxiu:'优秀率%',jige:'及格率%'}; // 要显示哪些统计结果 + var xiangmu = {cnt:'人数',avg:'平均分',jige:'及格率%',youxiu:'优秀率%'}; // 要显示哪些统计结果 $.each(xk,function(index,value){ options.cols[0].push({title: xk[index].subject_name.title,colspan:4,align:'center'});