Browse Source

refactor:修改供应商控制器导入方法代码不规范问题

antshop
linyaostalker 5 years ago
parent
commit
be0bbfbf50
  1. 3
      backend/modules/goods/controllers/SupplierController.php

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

Loading…
Cancel
Save