From 56923755c761897cc86ca2457667fcc3e6a0e43f Mon Sep 17 00:00:00 2001 From: cyuamber Date: Wed, 21 Aug 2019 18:28:53 +0800 Subject: style:services-list page style optimization Change-Id: Ic5f3078b03a2b1dee4d5c0458815c716a1945c86 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- .../services-list/services-list.component.html | 27 ++- .../services-list/services-list.component.less | 219 +++++++++++++-------- .../services-list/services-list.component.ts | 63 +----- 3 files changed, 163 insertions(+), 146 deletions(-) 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 127d9ad9..d47b342c 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 @@ -15,30 +15,41 @@ -->
- {{"i18nTextDefine_Customer" | translate}} : + + + + + {{"i18nTextDefine_Customer" | translate}} : + -
    + - {{"i18nTextDefine_ServiceType" | translate}} : + + + + + {{"i18nTextDefine_ServiceType" | translate}} : + -
      + - { + this.width = document.documentElement.clientWidth + }); } // customer servicetype @@ -1273,19 +1279,6 @@ export class ServicesListComponent implements OnInit { queryProgress(obj, callback) { let mypromise = new Promise((res, rej) => { - // let data = { - // operationStatus:{ - // "operationId": "XXXXXX", - // "operation": "create|delete|update|scale", - // "result": "finished|error|processing", - // "reason": "", - // "userId": "", - // "operationContent": "Be creating pop.", - // "progress": 0, - // "operateAt": "", - // "finishedAt": "" - // } - // } let errorNums = 180; let requery = () => { this.myhttp.getProgress(obj) @@ -1319,17 +1312,6 @@ export class ServicesListComponent implements OnInit { res(data.operationStatus); } }) - // setTimeout(()=>{ - // console.log(data.operationStatus.progress) - // data.operationStatus.progress++; - // if(data.operationStatus.progress<100){ - // callback(data.operationStatus); - // requery() - // }else{ - // callback(data.operationStatus); - // res(data.operationStatus) - // } - // },100) } requery(); }) @@ -1338,25 +1320,7 @@ export class ServicesListComponent implements OnInit { queryNsProgress(jobid, id, callback, operationType) { let mypromise = new Promise((res, rej) => { - // let data = { - // "jobId": "string", - // "responseDescriptor": { - // "status": "string", - // "progress": 0, - // "statusDescription": "string", - // "errorCode": "string", - // "responseId": "string", - // "responseHistoryList": [ - // { - // "status": "string", - // "progress": "string", - // "statusDescription": "string", - // "errorCode": "string", - // "responseId": "string" - // } - // ] - // } - // } + let errorNums = 180; let requery = () => { this.myhttp.getNsProgress(jobid, id, operationType) @@ -1366,7 +1330,6 @@ export class ServicesListComponent implements OnInit { return false; } if (data.responseDescriptor == null || data.responseDescriptor.progress == undefined) { - // console.log(data); errorNums--; if (errorNums == 0) { callback({ progress: 255, status: "time over" }); @@ -1390,17 +1353,7 @@ export class ServicesListComponent implements OnInit { res(data); } }) - // setTimeout(()=>{ - // console.log(data.responseDescriptor.progress) - // data.responseDescriptor.progress++; - // if(data.responseDescriptor.progress<100){ - // callback(data.responseDescriptor); - // requery() - // }else{ - // callback(data); - // res(data) - // } - // },100) + }; requery(); }); -- cgit 1.2.3-korg