Commit 13c9bd20 authored by yinxiaoling's avatar yinxiaoling

模板宽度注意后面的空格

parent 4b91ee4d
......@@ -149,7 +149,7 @@ class StrategySetController extends Controller
$datas[0][0]= "姓名";
$datas[0][1]= "*手机号码";
$datas[0][2]= "值班日期";
$StrategyService->storeExcelStyle($excelName, $datas,'','',1);
$StrategyService->storeExcelStyle($excelName, $datas,3,'',1);
}
public function downloadFailExcel(Request $request){
......
......@@ -136,7 +136,7 @@ class StrategyService
foreach($arr as $v){
$col[$v]=12;
}
//$sheet->setWidth($col);
$sheet->setWidth($col);
foreach ($arr as $k=> $v){
$objRichText = new \PHPExcel_RichText();
if(!empty($datas[0][$k])){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment