moonsflyer hai 8 meses
pai
achega
dafa1dd1b5

+ 1 - 1
app/adminapi/lists/agricultural_machinery/SupplyDemandLists.php

@@ -93,7 +93,7 @@ class SupplyDemandLists extends BaseAdminDataLists implements ListsSearchInterfa
             ->where($this->queryWhere())
             ->limit($this->limitOffset, $this->limitLength)
             ->order($this->sortOrder)
-            ->append(['status_desc','type_desc','user'])
+            ->append(['status_desc','type_desc','user','area'])
             ->select()
             ->toArray();
 

+ 1 - 1
app/adminapi/logic/agricultural_machinery/SupplyDemandLogic.php

@@ -54,7 +54,7 @@ class SupplyDemandLogic extends BaseLogic
      */
     public static function detail($params) : array
     {
-        return SupplyDemandInfo::findOrEmpty($params['id'])->toArray();
+        return SupplyDemandInfo::with('area')->findOrEmpty($params['id'])->toArray();
     }
 
     /**