|
|
|
|
@ -124,6 +124,14 @@ class CourseContentCheckController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
if (isset($all['is_export']) && !empty($all['is_export'])) {
|
|
|
|
|
$list = $list->limit(5000)->get()->toArray();
|
|
|
|
|
foreach ($list as $item) {
|
|
|
|
|
// 是否存在courseContentCheck
|
|
|
|
|
if (isset($item['course_content_check'])) {
|
|
|
|
|
$item->course_content_check_text = '是';
|
|
|
|
|
} else {
|
|
|
|
|
$item->course_content_check_text = '否';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return Excel::download(new CommonExport($list, $all['export_fields'] ?? ''), $all['file_name'] ?? '' . date('YmdHis') . '.xlsx');
|
|
|
|
|
} else {
|
|
|
|
|
// 输出
|
|
|
|
|
|