From 0f94d079d5698b21aad9409ee23b82e84cd0f547 Mon Sep 17 00:00:00 2001 From: liuwh7 Date: Wed, 13 Oct 2021 11:19:07 +0800 Subject: feat: modify intent based service Signed-off-by: liuwh7 Change-Id: I9974fb12163823288292cfc9ded92fefec3767eb Issue-ID: USECASEUI-605 --- .../onboard-vnf-vm/nlp-upload-dialog/nlp-upload-dialog.component.html | 4 ++-- .../src/app/views/onboard-vnf-vm/onboard-vnf-vm.component.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'usecaseui-portal/src/app/views/onboard-vnf-vm') diff --git a/usecaseui-portal/src/app/views/onboard-vnf-vm/nlp-upload-dialog/nlp-upload-dialog.component.html b/usecaseui-portal/src/app/views/onboard-vnf-vm/nlp-upload-dialog/nlp-upload-dialog.component.html index 9e7f669b..d2c89100 100644 --- a/usecaseui-portal/src/app/views/onboard-vnf-vm/nlp-upload-dialog/nlp-upload-dialog.component.html +++ b/usecaseui-portal/src/app/views/onboard-vnf-vm/nlp-upload-dialog/nlp-upload-dialog.component.html @@ -20,8 +20,8 @@ [name]="nlpType" [(ngModel)]="nlpType" > - - + + diff --git a/usecaseui-portal/src/app/views/onboard-vnf-vm/onboard-vnf-vm.component.ts b/usecaseui-portal/src/app/views/onboard-vnf-vm/onboard-vnf-vm.component.ts index ccdebc3b..dfe82bd3 100644 --- a/usecaseui-portal/src/app/views/onboard-vnf-vm/onboard-vnf-vm.component.ts +++ b/usecaseui-portal/src/app/views/onboard-vnf-vm/onboard-vnf-vm.component.ts @@ -183,6 +183,7 @@ export class OnboardVnfVmComponent implements OnInit { // tslint:disable-next-line:no-any this.fileList.forEach((file: any) => { formData.set('file', file); + formData.set('modelType', this.nlpType); }); this.uploading = true; this.file = { @@ -298,7 +299,8 @@ export class OnboardVnfVmComponent implements OnInit { return nsvfc.id == nssdc.uuid }) }); - this.nsTableData = this.nsTableData.concat(sameData); + console.log(sameData); + this.nsTableData = [...this.nsTableData, ...sameData]; }, (err) => { this.msg.error(err); -- cgit 1.2.3-korg