From be0bbfbf50b3084150c15ce75c7501c4f2afc3db Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Thu, 12 Dec 2019 15:15:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E4=BF=AE=E6=94=B9=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E6=8E=A7=E5=88=B6=E5=99=A8=E5=AF=BC=E5=85=A5=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BB=A3=E7=A0=81=E4=B8=8D=E8=A7=84=E8=8C=83=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/goods/controllers/SupplierController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/modules/goods/controllers/SupplierController.php b/backend/modules/goods/controllers/SupplierController.php index 80684f4..ffe0ab8 100755 --- a/backend/modules/goods/controllers/SupplierController.php +++ b/backend/modules/goods/controllers/SupplierController.php @@ -8,6 +8,7 @@ use backend\modules\goods\models\searchs\SupplierSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; +use iron\widget\Excel; /** * SupplierController implements the CRUD actions for Supplier model. @@ -140,7 +141,7 @@ class SupplierController extends Controller } else { $dataProvider = $searchModel->search($params); } - \iron\widget\Excel::export([ + Excel::export([ 'models' => $dataProvider->getModels(), 'format' => 'Xlsx', 'asAttachment' => true,