|
|
@@ -1687,12 +1687,13 @@ class WorkOrder extends Api
|
|
|
//02-产品管理-技术资料附件
|
|
|
public function getExcelInfo()
|
|
|
{
|
|
|
- $file = 'uploads/黄金叶(软大金圆)(二维码版).xlsx'; // Excel文件路径
|
|
|
+ $fileName = '黄金叶(软大金圆)(二维码版)';
|
|
|
+ $filePath = 'uploads/黄金叶(软大金圆)(二维码版).xlsx'; // Excel文件路径
|
|
|
|
|
|
- $spreadsheet = IOFactory::load($file);
|
|
|
+ $spreadsheet = IOFactory::load($filePath);
|
|
|
$worksheet = $spreadsheet->getActiveSheet();
|
|
|
$data = $worksheet->toArray();
|
|
|
|
|
|
- $this->success('成功', $data);
|
|
|
+ $this->success('成功', ['fileName'=>$fileName,'data'=>$data]);
|
|
|
}
|
|
|
}
|