[
'label'=>'类型',
'value'=>function($data){
return \common\models\Services\SystemParamServices::getDescribeByCode($data->refund_type);
}
],
//自定义更多操作
['class' => 'yii\grid\ActionColumn','header'=>'操作'],
[
'label' =>'更多操作',
'format'=>'raw',
'value' => function($data){
$url = "/gds-office/create?id=".$data->id;
return Html::a('创建officeID', $url, ['title' => '创建officeID']);
}
]
//载入图片
[
'label'
=>
'头像'
,
'format'
=> [
'image'
,
[
'width'
=>
'84'
,
'height'
=>
'84'
]
],
'value'
=>
function
(
$model
) {
return
$model
->image;
}
],
//
html渲染
[
'attribute'
=>
'title'
,
'value'
=>
function
(
$model
) {
return
Html::encode(
$model
->title);
},
'format'
=>
'raw'
,
],
//