Browse Source

丰富资产总览的信息

kely 1 year ago
parent
commit
b334ede43c
1 changed files with 15 additions and 0 deletions
  1. 15 0
      app/Http/Resources/API/AssetReportResource.php

+ 15 - 0
app/Http/Resources/API/AssetReportResource.php

@@ -34,6 +34,21 @@ class AssetReportResource  extends JsonResource
                 ->count(),
             'asset_total'=>Asset::query()->where('company_id',Auth::user()->company_id)->where('parent_id',0)->count(),
             'asset_closed_total'=>Asset::query()->where('company_id',Auth::user()->company_id)->where('parent_id',0)->where('status','closed')->count(),
+            'id' => $this->id,
+            'name' => $this->name,
+            'code' => $this->code,
+            'description' => $this->description,
+            'status' => $this->status,
+            'created_by' => $this->created_by,
+            'owner' => $this->owner,
+            'address' => $this->address,
+            'group_id' => $this->group_id,
+            'geo_address_code' => $this->geo_address_code,
+            'acl' => $this->acl,
+            'whitelist' => $this->whitelist,
+            'latitude' => $this->latitude,
+            'longitude' => $this->longitude,
+            'parent_id' => $this->parent_id,
         ];
     }
 }