diff --git a/backend/modules/shop/models/searchs/ExpressAreaSearch.php b/backend/modules/shop/models/searchs/ExpressAreaSearch.php index 7604eef..dea69ac 100644 --- a/backend/modules/shop/models/searchs/ExpressAreaSearch.php +++ b/backend/modules/shop/models/searchs/ExpressAreaSearch.php @@ -6,6 +6,8 @@ use yii\base\Model; use yii\data\ActiveDataProvider; use yii\helpers\ArrayHelper; use backend\modules\shop\models\ars\ExpressArea; +use yii; +use yii\bootstrap4\Html; /** * ExpressAreaSearch represents the model behind the search form of `backend\modules\shop\models\ars\ExpressArea`. @@ -63,16 +65,23 @@ class ExpressAreaSearch extends ExpressArea return implode(' // ', $cities); }, ], - 'express_template', - //'extra_price', - //'basic_price', - //'basic_count', - //'extra_count', - //'updated_at', - //'created_at', [ 'class' => 'iron\grid\ActionColumn', 'align' => 'center', + 'template' => '{express-area-update}', + 'buttons' => [ + 'express-area-update' => function ($url, $model, $key) { + $options = [ + 'title' => Yii::t('yii', '修改'), + 'aria-label' => Yii::t('yii', '修改'), + 'data-method' => 'post', + 'class' => 'oi oi-pencil', + + ]; + return Html::a('', $url . '&expressTemplateId=' . $model->express_template, $options); + }, + ], + 'config' => [], ], ]; }