|
@@ -332,7 +332,7 @@ class ViolationProduct extends Controller
|
|
|
|
|
|
|
|
//合并单元格
|
|
//合并单元格
|
|
|
$sheet->mergeCells('A1:Q1');
|
|
$sheet->mergeCells('A1:Q1');
|
|
|
- $sheet->setCellValue('A1', '违规挂网商品导出(导出时间:' . date('Y-m-d H:i:s', time()) . ')'); // 设置合并后的单元格内容
|
|
|
|
|
|
|
+ $sheet->setCellValue('A1', '禁止挂网商品导出(导出时间:' . date('Y-m-d H:i:s', time()) . ')'); // 设置合并后的单元格内容
|
|
|
// 获取合并后的单元格样式对象
|
|
// 获取合并后的单元格样式对象
|
|
|
$style = $sheet->getStyle('A1');
|
|
$style = $sheet->getStyle('A1');
|
|
|
// 设置水平居中和垂直居中
|
|
// 设置水平居中和垂直居中
|
|
@@ -409,7 +409,7 @@ class ViolationProduct extends Controller
|
|
|
$writer = new Xlsx($spreadsheet);
|
|
$writer = new Xlsx($spreadsheet);
|
|
|
|
|
|
|
|
// 直接输出到浏览器(下载)
|
|
// 直接输出到浏览器(下载)
|
|
|
- $filename = '违规挂网商品数据' . date('YmdHis') . '.xlsx';
|
|
|
|
|
|
|
+ $filename = '禁止挂网商品数据' . date('YmdHis') . '.xlsx';
|
|
|
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
|
header('Content-Disposition: attachment;filename="' . $filename . '"');
|
|
header('Content-Disposition: attachment;filename="' . $filename . '"');
|
|
|
header('Cache-Control: max-age=0');
|
|
header('Cache-Control: max-age=0');
|