|
@ -82,30 +82,24 @@ class ExpressAreaSearch extends ExpressArea |
|
|
[ |
|
|
[ |
|
|
'class' => 'iron\grid\ActionColumn', |
|
|
'class' => 'iron\grid\ActionColumn', |
|
|
'align' => 'center', |
|
|
'align' => 'center', |
|
|
'template' => '{express-area-view} {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); |
|
|
|
|
|
}, |
|
|
|
|
|
'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' => [ |
|
|
|
|
|
[ |
|
|
|
|
|
'name' => 'express-area-view', |
|
|
|
|
|
'icon' => 'list', |
|
|
|
|
|
'title' => '详情', |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
'name' => 'express-area-update', |
|
|
|
|
|
'icon' => 'pencil', |
|
|
|
|
|
'title' => '修改' |
|
|
|
|
|
], |
|
|
|
|
|
// [
|
|
|
|
|
|
// 'name' => 'delete',
|
|
|
|
|
|
// 'icon' => 'trash',
|
|
|
|
|
|
// 'title' => '删除',
|
|
|
|
|
|
// 'contents' => '确定删除?'
|
|
|
|
|
|
// ]
|
|
|
], |
|
|
], |
|
|
'config' => [], |
|
|
|
|
|
], |
|
|
], |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|