commit
74540a66b8
@ -74,14 +74,10 @@ class ActivityZoneService
|
|||||||
}
|
}
|
||||||
$count = count($data);
|
$count = count($data);
|
||||||
$sheet->mergeCells('A' . ($count + 7) . ':F' . ($count + 7));
|
$sheet->mergeCells('A' . ($count + 7) . ':F' . ($count + 7));
|
||||||
$sheet->setCellValue('A' . ($count + 7), "专区类型:{$typeName}");
|
$sheet->setCellValue('A' . ($count + 7), "备注:{$remark}");
|
||||||
$sheet->mergeCells('A' . ($count + 8) . ':F' . ($count + 8));
|
$sheet->getRowDimension($count + 7)->setRowHeight(50);
|
||||||
$sheet->setCellValue('A' . ($count + 8), "");
|
$sheet->getStyle('A' . ($count + 7))->getAlignment()->setWrapText(true);
|
||||||
$sheet->mergeCells('A' . ($count + 9) . ':F' . ($count + 9));
|
$sheet->getStyle('A' . ($count + 7). ':' . 'F' . ($count + 7))->applyFromArray($leftStyle);
|
||||||
$sheet->setCellValue('A' . ($count + 9), "备注:{$remark}");
|
|
||||||
$sheet->getRowDimension($count + 9)->setRowHeight(50);
|
|
||||||
$sheet->getStyle('A' . ($count + 9))->getAlignment()->setWrapText(true);
|
|
||||||
$sheet->getStyle('A' . ($count + 7). ':' . 'F' . ($count + 9))->applyFromArray($leftStyle);
|
|
||||||
|
|
||||||
// 设置单元格的样式
|
// 设置单元格的样式
|
||||||
$styleArray = [
|
$styleArray = [
|
||||||
@ -100,7 +96,7 @@ class ActivityZoneService
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
$sheet->getStyle('A1:F' . ($count + 9))->applyFromArray($styleArray);
|
$sheet->getStyle('A1:F' . ($count + 7))->applyFromArray($styleArray);
|
||||||
|
|
||||||
$writer = new Xlsx($spreadsheet);
|
$writer = new Xlsx($spreadsheet);
|
||||||
$url = '/export/' . date('Y-m') . $title . date('YmdHi') . '.xlsx';
|
$url = '/export/' . date('Y-m') . $title . date('YmdHi') . '.xlsx';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user