Browse Source

草稿不显示

linwu 3 năm trước cách đây
mục cha
commit
387a05b6b3

+ 1 - 1
app/Admin/Controllers/Content/BuyHouseController.php

@@ -70,7 +70,7 @@ class BuyHouseController extends Controller
     {
         $grid = new Grid(new TalentHouse());
 
-        $grid->model()->where('is_draft',2)->orderBy('updated_at', 'DESC');
+        $grid->model()->orderBy('updated_at', 'DESC');
 
         $status_text = $this->house_status;
         $grid->id('ID');

+ 1 - 1
app/Admin/Controllers/Content/BuyHouseRsController.php

@@ -40,7 +40,7 @@ class BuyHouseRsController extends Controller
     {
         $grid = new Grid(new TalentHouseApply());
 
-        $grid->model()->with('house')->orderBy('rs_check_status', 'ASC');
+        $grid->model()->with('house')->where('is_draft',2)->orderBy('rs_check_status', 'ASC');
 
         $status_text = $this->status;
         $grid->id('ID');