|
@@ -45,7 +45,7 @@ class LotteryRecruitmentRecord extends Auth{
|
|
|
->where($map)
|
|
|
->select(['lottery_recruitment_record.*','custom.weiban_extid','custom.username','lottery_recruitment.name as active_name'])
|
|
|
->orderByDesc('id')
|
|
|
- ->paginate(config('page_num',10));
|
|
|
+ ->paginate(config('page_num',10))->appends(request()->all());
|
|
|
// 循环处理数据
|
|
|
foreach ($list as $key => $value) {
|
|
|
// 组合数据
|
|
@@ -152,7 +152,7 @@ class LotteryRecruitmentRecord extends Auth{
|
|
|
$excel = new \Vtiful\Kernel\Excel(['path' =>public_path().'/uploads/']);
|
|
|
$filePath = $excel->fileName(uniqid().'.xlsx', 'sheet1')->header(['记录ID','活动ID','活动名称','客户编码','客户昵称','奖品名称','中奖状态','中奖时间','微伴ID'])->data($data)->output();
|
|
|
header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
|
|
- header('Content-Disposition: attachment;filename="灯谜抽奖中奖记录'.date('Y-m-d His').'.xlsx"');
|
|
|
+ header('Content-Disposition: attachment;filename="新人抽奖中奖记录'.date('Y-m-d His').'.xlsx"');
|
|
|
header('Content-Length: ' . filesize($filePath));
|
|
|
header('Content-Transfer-Encoding: binary');
|
|
|
header('Cache-Control: must-revalidate');
|