考试增加列,修改班级获取和班级计算
This commit is contained in:
1 parent
18f8cda025
commit
93d2aae4c2
10 files changed
+41
-16
No files matched your search
@@ -147,8 +147,8 @@ class Tongji extends Base
|
||||
$temp['avg'] = round($temp['avg'],2);
|
||||
$temp['youxiu'] = $this->rate($cjcol,$value->youxiu);
|
||||
$temp['jige'] = $this->rate($cjcol,$value->jige);
|
||||
// $temp['max'] = max($cjcol);
|
||||
// $temp['min'] = min($cjcol);
|
||||
$temp['max'] = max($cjcol);
|
||||
$temp['min'] = min($cjcol);
|
||||
$temp['sifenwei'] = $this->quartile($cjcol);
|
||||
}
|
||||
$data[$value->lieming] = $temp;
|
||||
|
||||
@@ -92,9 +92,6 @@ layui.use(['form'], function(){
|
||||
|
||||
//获取班级列表并更新
|
||||
function mybanji(){
|
||||
// 获取表单值
|
||||
var school = $('#school').val()
|
||||
,ruxuenian = $('#ruxuenian').val();
|
||||
|
||||
// 获取节点
|
||||
var bj = $("#banjidiv");
|
||||
@@ -103,14 +100,16 @@ layui.use(['form'], function(){
|
||||
$(bj).children().remove();
|
||||
// 获取班级列表
|
||||
$.ajax({
|
||||
url:"/teach/banji/mybanji",
|
||||
url:"/kaoshi/index/cybanji",
|
||||
type:"POST",
|
||||
data:{
|
||||
school:school
|
||||
,ruxuenian:ruxuenian
|
||||
school:$('#school').val()
|
||||
,ruxuenian:$('#ruxuenian').val()
|
||||
,kaoshi:"{$list.set.kaoshi}"
|
||||
},
|
||||
dataType:'json',
|
||||
success:function(result){
|
||||
console.log(result);
|
||||
$(bj).append('<input type="checkbox" name="banji[]" title="全选" value="" lay-skin="primary" onclick="selectAll(this)" lay-filter="selectall">');
|
||||
// if(result.length > 0){
|
||||
result.forEach(function(val,index){
|
||||
|
||||
@@ -103,12 +103,13 @@ layui.use(['form'], function(){
|
||||
$(bj).children().remove();
|
||||
// 获取班级列表
|
||||
$.ajax({
|
||||
url:"/teach/banji/mybanji",
|
||||
type:"POST",
|
||||
data:{
|
||||
school:school
|
||||
,ruxuenian:ruxuenian
|
||||
},
|
||||
url:"/kaoshi/index/cybanji",
|
||||
type:"POST",
|
||||
data:{
|
||||
school:$('#school').val()
|
||||
,ruxuenian:$('#ruxuenian').val()
|
||||
,kaoshi:"{$list.set.kaoshi}"
|
||||
},
|
||||
dataType:'json',
|
||||
success:function(result){
|
||||
console.log(result);
|
||||
|
||||
Loaded 3 of 10 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user