소스 검색

草稿不显示

linwu 3 년 전
부모
커밋
387a05b6b3
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/Admin/Controllers/Content/BuyHouseController.php
  2. 1 1
      app/Admin/Controllers/Content/BuyHouseRsController.php

+ 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');