...
|
...
|
@@ -63,7 +63,7 @@ class AdminExcelDataController extends AdminBaseController |
|
|
//***********************画出单元格边框结束*****************************
|
|
|
|
|
|
//***********************背景填充颜色*****************************
|
|
|
$sheet->getStyle( 'A1:M8')->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A1:M8')->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A1:M8')->getFill()->getStartColor()->setRGB('222B35');//背景颜色
|
|
|
//***********************画出单元格边框结束*****************************
|
|
|
|
...
|
...
|
@@ -183,7 +183,7 @@ class AdminExcelDataController extends AdminBaseController |
|
|
|
|
|
$cols += $col+1;
|
|
|
}
|
|
|
$sheet->getStyle( 'A9:M'.$cols)->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A9:M'.$cols)->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A9:M'.$cols)->getFill()->getStartColor()->setRGB('F3F3F4');//背景颜色浅灰色
|
|
|
|
|
|
|
...
|
...
|
@@ -344,7 +344,7 @@ class AdminExcelDataController extends AdminBaseController |
|
|
// $sheet->getRowDimension(2)->setRowHeight(55);
|
|
|
|
|
|
//***********************背景填充颜色*****************************
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->getStartColor()->setRGB('222B35');//背景颜色
|
|
|
//***********************画出单元格边框结束*****************************
|
|
|
|
...
|
...
|
@@ -498,7 +498,8 @@ class AdminExcelDataController extends AdminBaseController |
|
|
$cols += $col+1;
|
|
|
}
|
|
|
}
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
// $sheet->getStyle( 'A12:M'.$cols)->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->getStartColor()->setRGB('F3F3F4');//背景颜色浅灰色
|
|
|
|
|
|
$objWrite = IOFactory::createWriter($spreadsheet, 'Xls');
|
...
|
...
|
@@ -588,7 +589,7 @@ class AdminExcelDataController extends AdminBaseController |
|
|
// $sheet->getRowDimension(2)->setRowHeight(55);
|
|
|
|
|
|
//***********************背景填充颜色*****************************
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->getStartColor()->setRGB('222B35');//背景颜色
|
|
|
//***********************画出单元格边框结束*****************************
|
|
|
|
...
|
...
|
@@ -762,7 +763,7 @@ class AdminExcelDataController extends AdminBaseController |
|
|
$cols += $col+1;
|
|
|
}
|
|
|
}
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->getStartColor()->setRGB('F3F3F4');//背景颜色浅灰色
|
|
|
|
|
|
$objWrite = IOFactory::createWriter($spreadsheet, 'Xls');
|
...
|
...
|
@@ -852,7 +853,7 @@ class AdminExcelDataController extends AdminBaseController |
|
|
// $sheet->getRowDimension(2)->setRowHeight(55);
|
|
|
|
|
|
//***********************背景填充颜色*****************************
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A1:M11')->getFill()->getStartColor()->setRGB('222B35');//背景颜色
|
|
|
//***********************画出单元格边框结束*****************************
|
|
|
|
...
|
...
|
@@ -1032,7 +1033,7 @@ class AdminExcelDataController extends AdminBaseController |
|
|
$cols += $col+1;
|
|
|
}
|
|
|
}
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->setFillType(\PHPExcel_Style_Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID);
|
|
|
$sheet->getStyle( 'A12:M'.$cols)->getFill()->getStartColor()->setRGB('F3F3F4');//背景颜色浅灰色
|
|
|
|
|
|
$objWrite = IOFactory::createWriter($spreadsheet, 'Xls');
|
...
|
...
|
|