request = $request; $this->companyCountService = $companyCountService; } /** * 列表. * * @return \Illuminate\Http\Response */ public function index() { $conditions = $this->request->all(); $res = $this->companyCountService->index($conditions); return res($res, '企业统计', 201); } /** * 导出. * * @return \Illuminate\Http\Response */ public function export() { $conditions = $this->request->all(); $conditions['limit'] = 0; $export = new CompanyCountExport($conditions); $res = Excel::queue($export, $export->filename(), $this->disk); dd($res); $url = Storage::url($filename); return res($url, '导出成功', 201); } }