成绩统计基础数据
This commit is contained in:
1 parent
9f8ca37dd7
commit
9d833e0226
7 files changed
+90
-24
No files matched your search
@@ -44,9 +44,8 @@ class Index extends Base
|
||||
public function edit($id)
|
||||
{
|
||||
// 获取该学生成绩信息
|
||||
$cj = Chengji::where('id',$id)->append(['cj_student.xingming'])->find();
|
||||
$cj = Chengji::where('id',$id)->append(['cj_kaoshi.title','cj_student.xingming'])->find();
|
||||
// 模板赋值
|
||||
$cj->title = $cj->cjKaoshi->title;
|
||||
$this->assign('list',$cj);
|
||||
// 渲染
|
||||
return $this->fetch();
|
||||
@@ -102,6 +101,7 @@ class Index extends Base
|
||||
// 保存表格批量上传的成绩
|
||||
public function saveAll()
|
||||
{
|
||||
set_time_limit(0);
|
||||
// 获以电子表格存储位置
|
||||
$url = input('post.url');
|
||||
|
||||
@@ -152,6 +152,9 @@ class Index extends Base
|
||||
|
||||
// 返回成绩结果
|
||||
return json($data);
|
||||
ob_flush();
|
||||
flush();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user