|
|
@ -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, |
|
|
|