修改ajaxdata未验证错误和班级成绩表
This commit is contained in:
1 parent
00a1cc376a
commit
90ea00e87d
4 files changed
+19
-9
No files matched your search
@@ -102,8 +102,13 @@ class Tongji extends Model
|
||||
$cnt++;
|
||||
}
|
||||
}
|
||||
if(count($cj)>0)
|
||||
{
|
||||
return round($cnt/count($cj)*100);
|
||||
}else{
|
||||
return '';
|
||||
}
|
||||
|
||||
return round($cnt/count($cj)*100);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,18 +120,23 @@ class Tongji extends Model
|
||||
$tempcj = 0;
|
||||
foreach ($sbj as $k => $val) {
|
||||
$tempsbj = 0;
|
||||
// if(isset($value[$val->lieming]))
|
||||
// {
|
||||
if(isset($value[$val->lieming]))
|
||||
{
|
||||
if($value[$val->lieming]>$val->jige)
|
||||
{
|
||||
$tempsbj++;
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
$tempcj == $tempsbj ? $jige++ : $jige ;
|
||||
}
|
||||
|
||||
return round($jige/count($cj)*100);
|
||||
if(count($cj)>0)
|
||||
{
|
||||
return round($jige/count($cj)*100);
|
||||
}else{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
options.cols[1].push(colinfo);
|
||||
});
|
||||
});
|
||||
options.cols[0].push({title: '全科及格率',minWidth:100,rowspan:2,templet:function(d){
|
||||
options.cols[0].push({title: '全科及格率%',minWidth:100,rowspan:2,templet:function(d){
|
||||
var str = d.chengji.rate;
|
||||
return str;
|
||||
}});
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
// 设置列
|
||||
options.cols=[[ //表头
|
||||
{type:'numbers',title:'序号',rowspan:2},
|
||||
{field: 'school', title: '学校',sort: true,minWidth:80,rowspan:2},
|
||||
{field: 'school', title: '学校',minWidth:80,rowspan:2},
|
||||
]
|
||||
,[]
|
||||
];
|
||||
@@ -75,7 +75,7 @@
|
||||
options.cols[1].push(colinfo);
|
||||
});
|
||||
});
|
||||
options.cols[0].push({title: '全科及格率',minWidth:100,rowspan:2,templet:function(d){
|
||||
options.cols[0].push({title: '全科及格率%',minWidth:120,rowspan:2,templet:function(d){
|
||||
var str = d.chengji.rate;
|
||||
return str;
|
||||
}});
|
||||
|
||||
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user