|
@@ -43,13 +43,13 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
|
|
|
'headerOther' => ['width' => '150'],
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
],
|
|
|
'TYPE' => null,
|
|
'TYPE' => null,
|
|
|
- 'TYPE_NAME' => [
|
|
|
|
|
- 'label' => '类型',
|
|
|
|
|
- 'type' => function($data){
|
|
|
|
|
- $value = $data['value'];
|
|
|
|
|
- return $value==1 ? 'External Link' : 'Article';
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+// 'TYPE_NAME' => [
|
|
|
|
|
+// 'label' => '类型',
|
|
|
|
|
+// 'type' => function($data){
|
|
|
|
|
+// $value = $data['value'];
|
|
|
|
|
+// return $value==1 ? 'External Link' : 'Article';
|
|
|
|
|
+// },
|
|
|
|
|
+// ],
|
|
|
'LID' => [
|
|
'LID' => [
|
|
|
'label' => '广告位',
|
|
'label' => '广告位',
|
|
|
'type' => function($data){
|
|
'type' => function($data){
|
|
@@ -90,11 +90,11 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
|
|
|
'TITLE'=> ['name'=> Yii::t('ctx', 'title')],
|
|
'TITLE'=> ['name'=> Yii::t('ctx', 'title')],
|
|
|
'CONTENT' => ['name'=> Yii::t('ctx', 'content')],
|
|
'CONTENT' => ['name'=> Yii::t('ctx', 'content')],
|
|
|
// 确保这里的键名与getColumn()方法中的列名一致
|
|
// 确保这里的键名与getColumn()方法中的列名一致
|
|
|
- 'COUNTRY_ID'=> [
|
|
|
|
|
- 'name'=> \Yii::t('ctx', 'country'),
|
|
|
|
|
- 'other'=> 'select',
|
|
|
|
|
- 'selectData'=> self::getCountry()
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+// 'COUNTRY_ID'=> [
|
|
|
|
|
+// 'name'=> \Yii::t('ctx', 'country'),
|
|
|
|
|
+// 'other'=> 'select',
|
|
|
|
|
+// 'selectData'=> self::getCountry()
|
|
|
|
|
+// ],
|
|
|
'STATUS'=> [
|
|
'STATUS'=> [
|
|
|
'name'=> Yii::t('ctx', 'status'),
|
|
'name'=> Yii::t('ctx', 'status'),
|
|
|
'other'=> 'select',
|
|
'other'=> 'select',
|