修改已录成绩统计
This commit is contained in:
1 parent
77935cceb7
commit
ba89f5444e
4 files changed
+9
-4
No files matched your search
@@ -165,6 +165,7 @@ class TongjiBj extends BaseModel
|
||||
$ksset = new ksset();
|
||||
|
||||
// 获取参加考试学科
|
||||
$src['all'] = true;
|
||||
$subject = $ksset->srcSubject($src);
|
||||
$banji =$cy->class($src);
|
||||
|
||||
@@ -186,6 +187,7 @@ class TongjiBj extends BaseModel
|
||||
|
||||
$srcfrom['banji_id'] = array_column($banji, 'id');
|
||||
$temp = $more->srcChengjiList($srcfrom);
|
||||
|
||||
$temp = $tj->tongjiCnt($temp, $subject);
|
||||
$data[] = [
|
||||
'banji_id' => '合计',
|
||||
|
||||
@@ -16,7 +16,7 @@ class YanZheng
|
||||
if ($userinfo == null)
|
||||
{
|
||||
// 验证结果;
|
||||
$data = ['msg' => '管理员帐号不存在或被禁用', 'val' => 0];
|
||||
$data = ['msg' => '教师帐号不存在或被禁用', 'val' => 0];
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ layui.use(['table', 'form', 'canyuKaoshi'], function() {
|
||||
|
||||
$.each(xk, function(index, value) {
|
||||
var colname = xk[index].lieming
|
||||
coltitle = xk[index].title;
|
||||
coltitle = xk[index].title + '成绩数';
|
||||
options.cols[0].push({
|
||||
field: 'id',
|
||||
title: coltitle,
|
||||
@@ -120,6 +120,9 @@ layui.use(['table', 'form', 'canyuKaoshi'], function() {
|
||||
str = d.chengji[colname].xkcnt;
|
||||
}
|
||||
}
|
||||
if (d.chengji.stucnt != str && str != 0) {
|
||||
str = '<span style="color:red">'+str+'</span>'
|
||||
}
|
||||
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