linwu 4 bulan lalu
induk
melakukan
4a6f2724d6

+ 1 - 1
app/admin/controller/Jfm.php

@@ -96,7 +96,7 @@ class Jfm extends AdminBaseController
             ->order(['status' => 'desc'])
             ->limit(input('limit'))
             ->page(input('page'))
-            ->append(['status_text'])
+            ->append(['status_text','type_text'])
             ->select();
         $count = PolicyModel::where($map)->count();
         if ($count == 0) {

+ 1 - 0
app/admin/view/jfm/policy.html

@@ -68,6 +68,7 @@
                     {field: 'government', title: '发布单位', width:200},
                     {field: 'priority', title: '排序', width: 160},
                     {field: 'status_text', title: '状态', width: 100, align: 'center'},
+                    {field: 'type_text', title: '类型', width: 100, align: 'center'},
                     {field: 'volume', title: '浏览量', width: 100},
                     {field: 'publish_time', title: '发布时间', width: 160, align: 'center'},
                     {title: '操作', width: 150, align: 'center', fixed: 'right', toolbar: '#setTpl'}

+ 1 - 1
app/common/model/PolicyModel.php

@@ -26,6 +26,6 @@ class PolicyModel extends BaseModel
 
     public function getTypeTextAttr($value, $data)
     {
-        return self::STATUS[$data['status']];
+        return self::TYPE[$data['type']];
     }
 }