Przeglądaj źródła

feat: EK-2806: 会员端Promo和banner图增加分国家设置.

kevin 3 miesięcy temu
rodzic
commit
74ea014010

+ 27 - 0
backendApi/modules/v1/models/lists/article/IndexList.php

@@ -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