|
@@ -645,7 +645,11 @@ function excelSave($fileName = '', $headArr = [], $data = [])
|
|
|
if(is_array($value)){
|
|
|
$value = implode("、", $value);
|
|
|
}
|
|
|
- $objActSheet->setCellValue(PHPExcel_Cell::stringFromColumnIndex($span) . $column, $value);
|
|
|
+ // 处理长数字改为纯为本
|
|
|
+ $objPHPExcel->getCell(PHPExcel_Cell::stringFromColumnIndex($span). $column)->getStyle()->getNumberFormat()->setFormatCode(\PHPExcel_Style_NumberFormat::FORMAT_TEXT);
|
|
|
+
|
|
|
+ $objActSheet->setCellValueExplicit(PHPExcel_Cell::stringFromColumnIndex($span). $column,strval($value));
|
|
|
+
|
|
|
$span++;
|
|
|
}
|
|
|
$column++;
|