Commit 49dff0f9 by wenyi.chen

线上更新

parent 97ec0eba
...@@ -25,14 +25,12 @@ class Test extends BaseController ...@@ -25,14 +25,12 @@ class Test extends BaseController
$spreadsheet = new Spreadsheet(); $spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet(); $sheet = $spreadsheet->getActiveSheet();
// 设置一些数据到单元格中
$sheet->setCellValue('A1', '带有图片的 ExcelFile 表格');
// 创建一个 Drawing 对象,并设置图片的路径 // 创建一个 Drawing 对象,并设置图片的路径
$drawing = new Drawing(); $drawing = new Drawing();
$drawing->setName('Sample Image'); $drawing->setName('Sample Image');
$drawing->setDescription('Sample Image'); $drawing->setDescription('Sample Image');
$drawing->setPath('./image_0.png'); // 图片路径 $drawing->setPath('./image_0.jpg'); // 图片路径
$drawing->setCoordinates('B1'); // 图片放置的单元格位置 $drawing->setCoordinates('B1'); // 图片放置的单元格位置
$drawing->setWorksheet($sheet); // 关联到工作表 $drawing->setWorksheet($sheet); // 关联到工作表
...@@ -84,7 +82,6 @@ class Test extends BaseController ...@@ -84,7 +82,6 @@ class Test extends BaseController
// 保存Excel文件 // 保存Excel文件
$writer->save($outputFileName); $writer->save($outputFileName);
// 下载Excel文件(或者你可以返回文件路径让用户自己下载) // 下载Excel文件(或者你可以返回文件路径让用户自己下载)
// return response()->download($outputFileName, 'file.xlsx')->deleteFileAfterSend(true); // return response()->download($outputFileName, 'file.xlsx')->deleteFileAfterSend(true);
}catch (\Exception $e){ }catch (\Exception $e){
......
...@@ -93,9 +93,10 @@ Route::rule("normOrders/list","NormOrders/list"); //结算指标列表 ...@@ -93,9 +93,10 @@ Route::rule("normOrders/list","NormOrders/list"); //结算指标列表
Route::rule("normOrders/detail","NormOrders/detail"); //结算指标列表 Route::rule("normOrders/detail","NormOrders/detail"); //结算指标列表
Route::rule("importFile","ExcelFile/importFile"); //结算指标列表 //Route::rule("importFile","ExcelFile/importFile"); //结算指标列表
Route::rule("exportFile","ExcelFile/exportFile"); //结算指标列表 //Route::rule("exportFile","ExcelFile/exportFile"); //结算指标列表
Route::rule("taskExportFile","ExcelFile/taskExportFile"); //结算指标列表 Route::rule("taskExportFile","ExcelFile/taskExportFile"); //按任务导出数据
Route::rule("normExportFile","ExcelFile/normExportFile"); //按指标导出数据
Route::rule("test","test/index"); //结算指标列表
//Route::rule("import","ImportFile/import"); //Route::rule("import","ImportFile/import");
\ No newline at end of file
...@@ -69,5 +69,6 @@ return [ ...@@ -69,5 +69,6 @@ return [
"table_delete" =>99, // 删除 "table_delete" =>99, // 删除
], ],
// "resource_address"=>'https://data-collect.raisound.com/data-collect-api/', // "resource_address"=>'https://data-collect.raisound.com/data-collect-api/',
"resource_address"=>'http://192.168.10.168/data-collect-api/' // "resource_address"=>'http://192.168.10.168/data-collect-api/'
"resource_address"=>'http://gcspider.raisound.com:81/data-collect-api/'
]; ];
No preview for this file type
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 to comment