Commit 890bffcd by 杨树贤

导出

parent 934ad8ed
Showing with 2 additions and 2 deletions
...@@ -455,7 +455,7 @@ class DataService ...@@ -455,7 +455,7 @@ class DataService
function exportContact() function exportContact()
{ {
$contacts = SupplierContactModel::where('can_check_uids', '10096')->get()->toArray(); $contacts = SupplierContactModel::where('can_check_uids', '10096')->get()->toArray();
Excel::create('供应商导出', function ($excel) use ($contacts) { Excel::create('联系人导出', function ($excel) use ($contacts) {
$header = [ $header = [
'供应商编码', '供应商编码',
'供应商名字', '供应商名字',
...@@ -487,7 +487,7 @@ class DataService ...@@ -487,7 +487,7 @@ class DataService
$sheet->fromArray($excelData); $sheet->fromArray($excelData);
}); });
})->export('xlsx'); })->save('xlsx');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment