|
|
@ -52,17 +52,18 @@ class ExpressTemplateSearch extends ExpressTemplate |
|
|
|
'width' => '2%', |
|
|
|
'align' => 'center' |
|
|
|
], |
|
|
|
'id', |
|
|
|
'name', |
|
|
|
'id', |
|
|
|
'name', |
|
|
|
[ |
|
|
|
'attribute' => 'calculation_type', |
|
|
|
'value' => function ($model) { |
|
|
|
return ExpressTemplate::$calculationType[$model->calculation_type]; |
|
|
|
} |
|
|
|
], |
|
|
|
[ |
|
|
|
'class' => 'iron\grid\ActionColumn', |
|
|
|
'align' => 'center', |
|
|
|
'config' => [ |
|
|
|
[ |
|
|
|
'name' => 'view', |
|
|
|
'icon' => 'list', |
|
|
|
'title' => '详情', |
|
|
|
], |
|
|
|
[ |
|
|
|
'name' => 'update', |
|
|
|
'icon' => 'pencil', |
|
|
|