...
|
...
|
@@ -221,20 +221,23 @@ class AdminInspectAController extends AdminBaseController |
|
|
$url = $adminExcel->inspectExcelData($arr);
|
|
|
$month = date('Y-m',$value['create_time']);
|
|
|
$year = date('Y',$value['create_time']);
|
|
|
//excel名称
|
|
|
$arr_table = $value['project_name'].'('.$arr['time'].')报表.xls';
|
|
|
|
|
|
if($mark == 'day'){
|
|
|
//按日导出
|
|
|
$arr_url[$key] = $url;
|
|
|
$arr_time[$key] = $arr['time'].'报表.xls';
|
|
|
$arr_time[$key] = $arr_table;
|
|
|
|
|
|
}else if($mark == 'month'){
|
|
|
//按月导出
|
|
|
$arr_url[$month][$key] = $url;
|
|
|
$arr_time[$month][$key] = $arr['time'].'报表.xls';
|
|
|
$arr_time[$month][$key] = $arr_table;
|
|
|
|
|
|
}else{
|
|
|
//按年导出
|
|
|
$arr_url[$year][$month][$key] = $url;
|
|
|
$arr_time[$year][$month][$key] = $arr['time'].'报表.xls';
|
|
|
$arr_time[$year][$month][$key] = $arr_table;
|
|
|
|
|
|
}
|
|
|
}
|
...
|
...
|
|