排课汇总导出
This commit is contained in:
parent
69990b5f5f
commit
97856ac4f2
@ -445,7 +445,9 @@ class TeacherScheduleTimeController extends Crud
|
|||||||
$worksheet->setCellValue('F1', 'Tutor');
|
$worksheet->setCellValue('F1', 'Tutor');
|
||||||
$worksheet->setCellValue('G1', 'Duration');
|
$worksheet->setCellValue('G1', 'Duration');
|
||||||
$worksheet->setCellValue('H1', 'Note');
|
$worksheet->setCellValue('H1', 'Note');
|
||||||
// $worksheet->getStyle('A1:H1')->();
|
$worksheet->getStyle('A1:H1')->getFill()
|
||||||
|
->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID)
|
||||||
|
->getStartColor()->setRGB('4f81bd');
|
||||||
|
|
||||||
|
|
||||||
$month_days = get_dates_in_month(date('Y', strtotime($month)), date('m', strtotime($month)));
|
$month_days = get_dates_in_month(date('Y', strtotime($month)), date('m', strtotime($month)));
|
||||||
|
@ -264,7 +264,7 @@
|
|||||||
const link = document.createElement('a');
|
const link = document.createElement('a');
|
||||||
link.style.display = 'none';
|
link.style.display = 'none';
|
||||||
// 设置下载地址
|
// 设置下载地址
|
||||||
link.setAttribute('href', res.date.file_url);
|
link.setAttribute('href', res.data.file_url);
|
||||||
// 设置文件名
|
// 设置文件名
|
||||||
link.setAttribute('download', res.data.file_name);
|
link.setAttribute('download', res.data.file_name);
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user