From: guochuyicmri Date: Thu, 16 May 2019 09:48:09 +0000 (+0800) Subject: Service instance lifecycle management X-Git-Tag: 2.0.1~22 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=328b97e2e0be28a4cb70f3d9435755c2b9301ca0;p=usecase-ui.git Service instance lifecycle management Change-Id: Id4a235f4f9f43d11823e5ac36d79ecd35f39dc8d Issue-ID: USECASEUI-218 Signed-off-by: guochuyicmri --- diff --git a/usecaseui-portal/src/app/services/services-list/services-list.component.html b/usecaseui-portal/src/app/services/services-list/services-list.component.html index 7f2f132f..c266c41d 100644 --- a/usecaseui-portal/src/app/services/services-list/services-list.component.html +++ b/usecaseui-portal/src/app/services/services-list/services-list.component.html @@ -639,15 +639,21 @@
+
+ loading +

Please wating¡­¡­

+
diff --git a/usecaseui-portal/src/app/services/services-list/services-list.component.less b/usecaseui-portal/src/app/services/services-list/services-list.component.less index d45a2357..bbc8109e 100644 --- a/usecaseui-portal/src/app/services/services-list/services-list.component.less +++ b/usecaseui-portal/src/app/services/services-list/services-list.component.less @@ -35,6 +35,38 @@ hr { background: rgba(0, 0, 0, 0.65); top:0; } +.loading{ + width: 100%; + height: 100%; + position: fixed; + top: 0; + margin-top: -50px; + margin-left: -50px; + z-index: 1001; + text-align: center; + background: transparent; + p{ + color: #0DA9E2; + text-align: center; + position: absolute; + width: 300px; + height: 30px; + line-height: 30px; + top: 71%; + left: 36%; + margin-top: -150px; + margin-left: -150px; + } + img{ + width: 300px; + height: 300px; + position: absolute; + top: 50%; + left: 36%; + margin-top: -150px; + margin-left: -150px; + } +} .action { margin-bottom: 15px; padding: 28px; 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 06323fac..986cbf50 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 @@ -50,6 +50,7 @@ export class ServicesListComponent implements OnInit { listSortMasters=JSON.parse(sessionStorage.getItem('listSortMasters')); language = sessionStorage.getItem("DefaultLang"); iconMore=false; + loadingAnimateShow = false; serviceMunber = [ { "serviceDomain": "E2E", @@ -227,7 +228,7 @@ export class ServicesListComponent implements OnInit { handleCancel(): void { // console.log('Button cancel clicked!'); this.isVisible = false; - this.temParametersTips = false; + this.loadingAnimateShow = false; } @@ -242,8 +243,10 @@ export class ServicesListComponent implements OnInit { }else if(types == "Network Service"){ types = "ns"; } + this.loadingAnimateShow = true; this.myhttp.getTemplateParameters(types, chosedtemplates) .subscribe((data) => { + this.loadingAnimateShow = false; if (data.status == "FAILED") { this.temParametersTips = true; this.isVisible = true;