diff options
author | 2020-04-10 17:08:02 +0800 | |
---|---|---|
committer | 2020-04-10 17:08:09 +0800 | |
commit | 935b94e1c0f27c8cf411495ab0bc43310ae8f73b (patch) | |
tree | 4c3d693bbace04191350b181c35f6e3446fa8d2a /usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts | |
parent | ae3914b676f32b690596c78fa622988f7ed47bf0 (diff) |
fix: Fix detail bug of service page
Change-Id: I48c77a53e3fd8911c08ef1edc688f2478677ee3d
Issue-ID: USECASEUI-369
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts b/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts index cf7404d8..48b2061c 100644 --- a/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts +++ b/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts @@ -42,12 +42,13 @@ export class CreateModelComponent implements OnInit { this.getAlltemplates(); } - getServiceType(): void{ + getServiceType() { this.http.getServiceTypes(this.currentCustomer) .subscribe((data) => { this.serviceTypes = data.map((item) => { return { name: item["service-type"] } }); + this.currentServiceType = this.serviceTypes[0] }) } @@ -89,8 +90,10 @@ export class CreateModelComponent implements OnInit { this.loadingAnimateShow = false; } - customerChange(value): void { - this.currentCustomer = value; + customerChange(id): void { + this.currentCustomer = this.customerList.find(item=>{ + return item.id === id + }); this.getServiceType(); } |