正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -144,7 +144,7 @@ class TestController extends HomeBaseController | @@ -144,7 +144,7 @@ class TestController extends HomeBaseController | ||
144 | // $data2 = $tz->field('type',true)->select(); | 144 | // $data2 = $tz->field('type',true)->select(); |
145 | //print_r($data2);exit(); | 145 | //print_r($data2);exit(); |
146 | //填充表格信息 | 146 | //填充表格信息 |
147 | - for ($i = 3; $i <= count($data2) + 1; $i++) { | 147 | + for ($i = 3; $i <= count($data2) + 2; $i++) { |
148 | $j = 0; | 148 | $j = 0; |
149 | foreach ($data2[$i - 3] as $key => $value) { | 149 | foreach ($data2[$i - 3] as $key => $value) { |
150 | $excel->getActiveSheet()->setCellValue("$letter[$j]$i", "$value"); | 150 | $excel->getActiveSheet()->setCellValue("$letter[$j]$i", "$value"); |
-
请 注册 或 登录 后发表评论