summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2021-01-27 18:28:27 +0800
committercyuamber <xuranyjy@chinamobile.com>2021-01-27 18:28:35 +0800
commit14e5467cf340f32afc38cd88be39ee4cba26def9 (patch)
tree8086ceae656e24e69916e28f5dec0d8786112072 /usecaseui-portal/src/app
parent2156dd58179b238ac36d723d469e79c7fdf0cddf (diff)
fix: fix the problem of blank screen after operation
Change-Id: I74983dccd7c7cbe74358489684b663c88492b33c Issue-ID: USECASEUI-531 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app')
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts13
1 files changed, 4 insertions, 9 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts
index 20bcd104..288ad2c2 100644
--- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts
+++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts
@@ -49,7 +49,7 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit {
businessOrderShow: boolean = false;
getCSMFBusinessList(): void {
this.loading = true;
- this.listOfData = [];
+ // this.listOfData = []; //solve the problem of blank screen after each operation
const paramsObj = {
status: this.selectedValue.toLocaleLowerCase(),
pageNo: this.pageIndex,
@@ -60,10 +60,7 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit {
}
this.myhttp.getCSMFSlicingBusinessList(paramsObj, getCSMFSlicingBusinessListFailedCallback).then(res => {
const { result_body: { slicing_order_list, record_number } } = res;
- setTimeout(() => {
- this.loading = false;
- }, 100);
-
+ this.loading = false;
this.total = record_number;
if (slicing_order_list !== null && slicing_order_list.length > 0) {
this.listOfData = slicing_order_list.map((item, index) => {
@@ -72,9 +69,7 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit {
const updata = (prodata: { operation_progress: string }) => {
item.last_operation_progress = prodata.operation_progress || item.last_operation_progress;
};
- const obj = {
- serviceId: item.order_id
- };
+ const obj = { serviceId: item.order_id };
if (item.last_operation_type.toUpperCase() === 'DELETE') this.terminateStart[index] = true
else this.terminateStart[index] = false;
this.queryProgress(obj, index, updata).then(() => {
@@ -84,7 +79,7 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit {
}
return item
});
- }
+ }
})
}