合并master

This commit is contained in:
强哥 committed 2021-10-11 12:08:22 +08:00
commit 6a8edbf3e6
14 files changed
+77 -37

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
  坦率地讲,在不久的将来,这也许会是辽东半岛上第二好用的成绩统计系统。
![表情包](https://gitee.com/dlbz/shangma/raw/master/public/examples/timg.jpg =250x400)
![表情包](https://gitee.com/dlbz/shangma/raw/master/public/examples/timg.jpg)
  言归正传
+5 -4
View File
@@ -283,7 +283,7 @@ class Bjtongji extends AdminBase
header('Cache-Control: max-age=0');
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx');
ini_set("error_reporting","E_ALL & ~E_NOTICE");
$writer->save('php://output');halt($filename);
$writer->save('php://output');
ob_flush();
flush();
exit();
@@ -390,9 +390,12 @@ class Bjtongji extends AdminBase
if (count($src['banji_id']) == 0) {
// 获取参与考试的班级
$cy = new \app\kaohao\model\SearchCanYu;
$src['banji_id']= array_column($cy->class($src), 'id');
$src['banji_id'] = array_column($cy->class($src), 'id');
}
$src['auth'] = event('mybanji', array());
$src['auth'] = $src['auth'][0];
// 统计成绩
$btj = new BTJ;
$data = $btj->search($src);
@@ -601,8 +604,6 @@ class Bjtongji extends AdminBase
'kaoshi' => 1
,'status' => 1
];
// $list['data']['subject_id'] = $sbj->search($src);
// halt($list);
// 设置页面标题
$list['set'] = array(
'webtitle'=>'设置任课教师'
+1 -1
View File
@@ -354,12 +354,12 @@ class Index extends AdminBase
if(isset($value[$val['lieming'] . 'defen']))
{
$sheet->setCellValue($colname[$i] . $row_temp, $value[$val['lieming'] . 'defen']);
$i++;
foreach ($tjxm_left as $tjxml_k => $tjxml_v) {
$sheet->setCellValue($colname[$i] . $row_temp, $value[$val['lieming'] . $tjxml_v['biaoshi']]);
$i++;
}
}
$i++;
}
$sheet->setCellValue($colname[$i] . $row_temp, $value['avg']);
$i++;
Loaded 3 of 14 files, more files were not shown because too many files have changed in this diff. Show more