summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-12-20 18:38:42 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-12-20 18:38:47 +0800
commit1158ad447fdb0dc10fd753d6e9ff3fb448a63c5c (patch)
tree700afed38912150006af716a7ee98a8164375fa6
parent3845a7297d0df2f55da208c2c3b3780e38d114b1 (diff)
feat: change parameters of task status
Change-Id: If4e057511bbfb0c70ad637bb1811877a99c8b5d7 Issue-ID: USECASEUI-368 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
-rw-r--r--usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json2
-rw-r--r--usecaseui-portal/src/app/mock/json/slicing_task_processing_status.json7
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts16
-rw-r--r--usecaseui-portal/src/constants/constants.ts8
4 files changed, 18 insertions, 15 deletions
diff --git a/usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json b/usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json
index b4aadc18..daa16b94 100644
--- a/usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json
+++ b/usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json
@@ -54,4 +54,4 @@
}
}
-}
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/slicing_task_processing_status.json b/usecaseui-portal/src/app/mock/json/slicing_task_processing_status.json
index 4a113ef5..c85eb345 100644
--- a/usecaseui-portal/src/app/mock/json/slicing_task_processing_status.json
+++ b/usecaseui-portal/src/app/mock/json/slicing_task_processing_status.json
@@ -5,14 +5,13 @@
},
"result_body": {
"record_number": 2,
- "slicing_task_list": [
- {
+ "slicing_task_list": [{
"task_id": "b1bb0ce7-ebca-4fa7-95ed-4840d70a1177",
"task_name": "5G Slice service eMMB",
"service_snssai": "1-010101",
"service_type": "eMMB",
"arrival_time": "1454171445000",
- "processing_status": "Waiting to Confirm"
+ "processing_status": "WaitingToConfirm"
},
{
"task_id": "b1bb0de7-ebca-4fa7-95ed-4840d7041177",
@@ -20,7 +19,7 @@
"service_snssai": "1-010101",
"service_type": "eMMB",
"arrival_time": "1544471445000",
- "processing_status": "Waiting to Confirm"
+ "processing_status": "WaitingToConfirm"
}
]
}
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts
index 35bd191f..b99ee8ee 100644
--- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts
+++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts
@@ -42,8 +42,8 @@ export class SlicingTaskManagementComponent implements OnInit {
this.message.error('Failed to get form data');
}
this.loading = false;
- },({status, statusText}) => {
- this.message.error(status + ' (' + statusText + ')');
+ }, ({ status, statusText }) => {
+ this.message.error(status + ' (' + statusText + ')');
this.loading = false;
})
}
@@ -71,8 +71,8 @@ export class SlicingTaskManagementComponent implements OnInit {
this.message.error('Failed to get form data');
}
this.loading = false;
- }, ({status, statusText}) => {
- this.message.error(status + ' (' + statusText + ')');
+ }, ({ status, statusText }) => {
+ this.message.error(status + ' (' + statusText + ')');
this.listOfData = [];
this.loading = false;
})
@@ -109,6 +109,10 @@ export class SlicingTaskManagementComponent implements OnInit {
// item.status = '审核阶段';
item.operation = 'Process Task'
break;
+ case 'WaitingToConfirm':
+ // item.status = '审核阶段';
+ item.operation = 'Process Task'
+ break;
case 'Creating':
// item.status = '切片创建中';
item.operation = 'View Progress'
@@ -125,7 +129,7 @@ export class SlicingTaskManagementComponent implements OnInit {
showdetail(data: any): void {
this.taskId = data.task_id;
this.moduleTitle = data.task_name;
- if (data.processing_status === 'WaitingToConfirm') {
+ if (data.processing_status === 'Waiting to Confirm' || data.processing_status === 'WaitingToConfirm') {
this.showDetail = true;
} else {
this.moduleOperation = data.operation;
@@ -133,7 +137,7 @@ export class SlicingTaskManagementComponent implements OnInit {
}
}
- handelCancel(obj: any):void {
+ handelCancel(obj: any): void {
this.showDetail = obj.showDetail;
if (obj.bool) {
if (this.selectedValue && this.selectedValue !== 'all') {
diff --git a/usecaseui-portal/src/constants/constants.ts b/usecaseui-portal/src/constants/constants.ts
index 7db7657c..b3ce6811 100644
--- a/usecaseui-portal/src/constants/constants.ts
+++ b/usecaseui-portal/src/constants/constants.ts
@@ -85,9 +85,9 @@ export const BUSINESS_REQUIREMENT = [
key: 'area'
},
],
-
-
-]
+
+
+]
export const WIRELESS_FORM_ITEMS = [
{
@@ -115,7 +115,7 @@ export const TRANSFRER_FORM_ITEMS = [
}
]
-export const CORE_FORM_ITEMS = [
+export const CORE_FORM_ITEMS = [
{
title: 'S-NSSAI',
key: 'cn_service_snssai'