diff --git a/backend/modules/shop/models/searchs/ExpressAreaSearch.php b/backend/modules/shop/models/searchs/ExpressAreaSearch.php index c9cb7a3..1521c92 100644 --- a/backend/modules/shop/models/searchs/ExpressAreaSearch.php +++ b/backend/modules/shop/models/searchs/ExpressAreaSearch.php @@ -82,7 +82,7 @@ class ExpressAreaSearch extends ExpressArea [ 'class' => 'iron\grid\ActionColumn', 'align' => 'center', - 'template' => '{express-area-update}', + 'template' => '{express-area-view} {express-area-update}', 'buttons' => [ 'express-area-update' => function ($url, $model, $key) { $options = [ @@ -94,6 +94,16 @@ class ExpressAreaSearch extends ExpressArea ]; return Html::a('', $url . '&expressTemplateId=' . $model->express_template, $options); }, + 'express-area-view' => function ($url, $model, $key) { + $options = [ + 'title' => Yii::t('yii', '查看'), + 'aria-label' => Yii::t('yii', '查看'), + 'data-method' => 'post', + 'class' => 'oi oi-list', + + ]; + return Html::a('', $url . '&expressTemplateId=' . $model->express_template, $options); + }, ], 'config' => [], ],