summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-12-20 17:10:23 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-12-20 17:12:07 +0800
commit212965d9602144c32377c30671ef5c9b88acb50d (patch)
tree9479cfb4c85382e0cffa84830ff5384e32ede9e4 /usecaseui-portal
parent961eb4aa72c04a8898862a61607da422e8c0b906 (diff)
feat: Modify the local mock interface
Change-Id: I3a046ee052faca9c9168ed861da45fe3294286ca Issue-ID: USECASEUI-368 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal')
-rw-r--r--usecaseui-portal/src/app/mock/routes.js2
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts2
2 files changed, 3 insertions, 1 deletions
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;