|
|
@@ -43,6 +43,33 @@ class IndexList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
+ public function getColumn(){
|
|
|
+ if(!$this->columns){
|
|
|
+ $this->columns = [
|
|
|
+ 'ID' => null,
|
|
|
+ 'TITLE' => null,
|
|
|
+ 'CID' => [
|
|
|
+ 'header' => Yii::t('ctx', 'category'),
|
|
|
+ 'headerOther' => ['width' => '150'],
|
|
|
+ ],
|
|
|
+ 'COUNTRY_ID' => [
|
|
|
+ 'header' => Yii::t('ctx', 'country'),
|
|
|
+ 'headerOther' => ['width' => '150'],
|
|
|
+ ],
|
|
|
+ 'STATUS' => [
|
|
|
+ 'header' => Yii::t('ctx', 'activeStatus'),
|
|
|
+ 'headerOther' => ['width' => '100'],
|
|
|
+ ],
|
|
|
+ 'SORT' => null,
|
|
|
+ 'CREATED_AT' => [
|
|
|
+ 'header' => Yii::t('ctx', 'createTime'),
|
|
|
+ 'headerOther' => ['width' => '180'],
|
|
|
+ ],
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ return $this->columns;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 前台用于筛选的类型集合
|
|
|
* @return mixed
|