Browse Source

增加视图按钮

antshop
linyaostalker 5 years ago
parent
commit
858020f9e1
  1. 12
      backend/modules/shop/models/searchs/ExpressAreaSearch.php

12
backend/modules/shop/models/searchs/ExpressAreaSearch.php

@ -82,7 +82,7 @@ class ExpressAreaSearch extends ExpressArea
[ [
'class' => 'iron\grid\ActionColumn', 'class' => 'iron\grid\ActionColumn',
'align' => 'center', 'align' => 'center',
'template' => '{express-area-update}',
'template' => '{express-area-view} {express-area-update}',
'buttons' => [ 'buttons' => [
'express-area-update' => function ($url, $model, $key) { 'express-area-update' => function ($url, $model, $key) {
$options = [ $options = [
@ -94,6 +94,16 @@ class ExpressAreaSearch extends ExpressArea
]; ];
return Html::a('', $url . '&expressTemplateId=' . $model->express_template, $options); 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' => [], 'config' => [],
], ],

Loading…
Cancel
Save