From dc8ec1a68a72221c5faed1c69765d411a550886d Mon Sep 17 00:00:00 2001 From: wangshiming Date: Fri, 29 Apr 2022 10:02:43 +0800 Subject: [PATCH] fix bug --- .../list/detail/detail.component.html | 24 ++++++++++++++++++- .../list/detail/detail.component.ts | 5 ++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/app/routes/vehicle/components/list/detail/detail.component.html b/src/app/routes/vehicle/components/list/detail/detail.component.html index f868a506..513c7e00 100644 --- a/src/app/routes/vehicle/components/list/detail/detail.component.html +++ b/src/app/routes/vehicle/components/list/detail/detail.component.html @@ -72,6 +72,17 @@ + + + + + - + + + + + diff --git a/src/app/routes/vehicle/components/list/detail/detail.component.ts b/src/app/routes/vehicle/components/list/detail/detail.component.ts index 50a20048..418b62b2 100644 --- a/src/app/routes/vehicle/components/list/detail/detail.component.ts +++ b/src/app/routes/vehicle/components/list/detail/detail.component.ts @@ -41,6 +41,7 @@ export class VehicleComponentsListDetailComponent implements OnInit { contenCarNoColor: any; contencarModel: any; contenCarLength: any; + contenCarEnergy: any; constructor( private http: _HttpClient, @@ -158,6 +159,8 @@ export class VehicleComponentsListDetailComponent implements OnInit { this.Serveice('car:color'); this.Serveice('car:model'); this.Serveice('car:length'); + this.Serveice('car:energy:type'); + } Serveice(param: any) { let value: any; @@ -172,6 +175,8 @@ export class VehicleComponentsListDetailComponent implements OnInit { this.contencarModel = res; } else if (param === 'car:length') { this.contenCarLength = res; + } else if (param === 'car:energy:type') { + this.contenCarEnergy = res; } }); return value;