From 212965d9602144c32377c30671ef5c9b88acb50d Mon Sep 17 00:00:00 2001 From: cyuamber Date: Fri, 20 Dec 2019 17:10:23 +0800 Subject: feat: Modify the local mock interface Change-Id: I3a046ee052faca9c9168ed861da45fe3294286ca Issue-ID: USECASEUI-368 Signed-off-by: cyuamber --- usecaseui-portal/src/app/mock/routes.js | 2 +- .../slicing-task-model/slicing-task-model.component.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'usecaseui-portal') diff --git a/usecaseui-portal/src/app/mock/routes.js b/usecaseui-portal/src/app/mock/routes.js index 4bb883ce..fdd29ff3 100644 --- a/usecaseui-portal/src/app/mock/routes.js +++ b/usecaseui-portal/src/app/mock/routes.js @@ -97,7 +97,7 @@ module.exports = "/uui-slicing/nsmf/task/:taskId/auditInfo": "/slicing_task_auditInfo", "/uui-slicing/nsmf/resource/nsi/instances/pageNo/:pageNo/pageSize/:pageSize": "/slicing_nsi_list", "/uui-slicing/nsmf/resource/nsi/:nsiId/nssiInstances": "/slicing_subnet_instance", - "/uui-slicing/nsmf//resource//nssi/environmentContext/:environmentContext/instances/pageNo/:pageNo/pageSize/:pageSize": "/slicing_subnet_context", + "/uui-slicing/nsmf/resource/nssi/environmentContext/:environmentContext/instances/pageNo/:pageNo/pageSize/:pageSize": "/slicing_subnet_context", "/uui-slicing/nsmf/task/:taskId/taskCreationInfo": "/slicing_taskCreationInfo", "/uui-slicing/nsmf/task/:taskId/taskCreationProgress": "/slicing_taskCreationProgress", "/PUT/uui-slicing/nsmf/task/auditInfo": "/PUT_task_auditInfo", diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts index bca8e75c..e2f2a3da 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts @@ -227,6 +227,7 @@ export class SlicingTaskModelComponent implements OnInit { slicingInstanceChange ():void { this.isDisabled = true; + this.selectedServiceName = '' // 获取切片子网实例数据 this.http.getSlicingSubnetInstance(this.selectedServiceId).subscribe( res => { const { result_header: { result_code }, result_body, record_number} = res; @@ -329,6 +330,7 @@ export class SlicingTaskModelComponent implements OnInit { } slicingSubnetChange (instance: any): void { + instance.slicingName = '' instance.instances.forEach( item => { if (instance.slicingId === item.service_instance_id) { instance.slicingName = item.service_instance_name; -- cgit 1.2.3-korg