|
|
@@ -33,51 +33,51 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
- public function getColumn(){
|
|
|
- if(!$this->columns){
|
|
|
- $this->columns = [
|
|
|
- 'ID' => null,
|
|
|
- 'TITLE' => null,
|
|
|
- 'COUNTRY_ID' => [
|
|
|
- 'header' => Yii::t('ctx', 'country'),
|
|
|
- 'headerOther' => ['width' => '150'],
|
|
|
- ],
|
|
|
- 'COUNTRY_NAME' => null,
|
|
|
- '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'],
|
|
|
- ],
|
|
|
- 'TYPE'=> [
|
|
|
- 'name'=> Yii::t('ctx', 'ExternalLink'),
|
|
|
- 'other'=> 'select',
|
|
|
- 'selectData'=> [
|
|
|
- ['id'=> 1, 'name'=> Yii::t('ctx', 'ExternalLink')],
|
|
|
- ['id'=> 2, 'name'=> Yii::t('ctx', 'Article')]
|
|
|
- ]
|
|
|
- ],
|
|
|
- 'SORT' => null,
|
|
|
- 'CREATED_AT' => [
|
|
|
- 'header' => Yii::t('ctx', 'createTime'),
|
|
|
- 'value' => function($row) {
|
|
|
- return (new DateTime([
|
|
|
- 'value' => $row['CREATED_AT'],
|
|
|
- ]))->result();
|
|
|
- },
|
|
|
- 'headerOther' => ['width' => '180'],
|
|
|
- ],
|
|
|
- ];
|
|
|
- }
|
|
|
-
|
|
|
- return $this->columns;
|
|
|
- }
|
|
|
+// public function getColumn(){
|
|
|
+// if(!$this->columns){
|
|
|
+// $this->columns = [
|
|
|
+// 'ID' => null,
|
|
|
+// 'TITLE' => null,
|
|
|
+// 'COUNTRY_ID' => [
|
|
|
+// 'header' => Yii::t('ctx', 'country'),
|
|
|
+// 'headerOther' => ['width' => '150'],
|
|
|
+// ],
|
|
|
+// 'COUNTRY_NAME' => null,
|
|
|
+// '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'],
|
|
|
+// ],
|
|
|
+//// 'TYPE'=> [
|
|
|
+//// 'name'=> Yii::t('ctx', 'ExternalLink'),
|
|
|
+//// 'other'=> 'select',
|
|
|
+//// 'selectData'=> [
|
|
|
+//// ['id'=> 1, 'name'=> Yii::t('ctx', 'ExternalLink')],
|
|
|
+//// ['id'=> 2, 'name'=> Yii::t('ctx', 'Article')]
|
|
|
+//// ]
|
|
|
+//// ],
|
|
|
+// 'SORT' => null,
|
|
|
+// 'CREATED_AT' => [
|
|
|
+// 'header' => Yii::t('ctx', 'createTime'),
|
|
|
+// 'value' => function($row) {
|
|
|
+// return (new DateTime([
|
|
|
+// 'value' => $row['CREATED_AT'],
|
|
|
+// ]))->result();
|
|
|
+// },
|
|
|
+// 'headerOther' => ['width' => '180'],
|
|
|
+// ],
|
|
|
+// ];
|
|
|
+// }
|
|
|
+//
|
|
|
+// return $this->columns;
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 前台用于筛选的类型集合
|