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