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,