diff options
author | 2018-11-26 14:57:36 +0800 | |
---|---|---|
committer | 2018-11-26 14:57:58 +0800 | |
commit | c47567bca46298b007c2c013a28ced6e2f8ff023 (patch) | |
tree | b2054b8385d69d64a661a238bb0a616c2114a297 /usecaseui-portal/src/app/services/services-list/services-list.component.ts | |
parent | 87374174d78e927f6104062d8fa9d66b315e6e73 (diff) |
Fix E2E Service Instantiation bugs
Change-Id: I2f2ff9a58102390d63bd9f7ebe016056bde696b8
Issue-ID: USECASEUI-179
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/services/services-list/services-list.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/services/services-list/services-list.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/services/services-list/services-list.component.ts index f4957913..24bb45c8 100644 --- a/usecaseui-portal/src/app/services/services-list/services-list.component.ts +++ b/usecaseui-portal/src/app/services/services-list/services-list.component.ts @@ -202,9 +202,10 @@ export class ServicesListComponent implements OnInit { item["status"] = "error"; }else if(item["serviceStatus"]=="processing"){ item["status"] = "processing"; + item["rate"] = 0; if(item["serviceDomain"]=="Network Service"){ let updata = (prodata)=>{ - item["rate"] = prodata.progress; + item["rate"] = prodata.progress || item["rate"]; // >100 err if(item["rate"] > 100){ item["status"]=prodata.status; @@ -218,7 +219,7 @@ export class ServicesListComponent implements OnInit { }) }else{ let updata = (prodata)=>{ - item["rate"] = prodata.progress; + item["rate"] = prodata.progress || item["rate"]; if(item["rate"] > 100){ item["status"]=prodata.status; } |