|
|
@@ -43,14 +43,14 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
|
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
|
'COUNTRY_NAME' => null,
|
|
|
-// 'LID' => [
|
|
|
-// 'label' => '广告位',
|
|
|
-// 'type' => function($data){
|
|
|
-// $value = $data['value'];
|
|
|
-// $adLocation = AdLocation::findOneAsArray('ID=:ID', [':ID'=>$value], 'LOCATION_NAME');
|
|
|
-// return $adLocation['LOCATION_NAME'];
|
|
|
-// },
|
|
|
-// ],
|
|
|
+ 'LID' => [
|
|
|
+ 'header' => '广告位',
|
|
|
+ 'value' => function($row){
|
|
|
+ $adLocation = AdLocation::findOneAsArray('ID=:ID', [':ID'=>$row['LID']], 'LOCATION_NAME');
|
|
|
+ return $adLocation['LOCATION_NAME'];
|
|
|
+ },
|
|
|
+ 'headerOther' => ['width' => '180'],
|
|
|
+ ],
|
|
|
'STATUS' => [
|
|
|
'header' => Yii::t('ctx', 'status'),
|
|
|
'headerOther' => ['width' => '100'],
|