summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management')
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts
index 649b5eb1..119f87d4 100644
--- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts
+++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts
@@ -283,7 +283,18 @@ export class SubnetParamsModelComponent implements OnInit {
params = {...this.formData};
}
// Verify that each item is not empty, include special handeling of area_list
- if (this.Util.deepCheck(params) && this.areaCheckBeforeSubmit(params)) {
+ console.log(params)
+ let checkParams = params
+ if (this.title === 'An' || this.title === 'Cn') {
+ checkParams = this.coreFormItems.filter((item) => {
+ return item.required === true
+ })
+ } else if (this.title = 'Tn') {
+ checkParams = this.transferFormItems.filter((item) => {
+ return item.required === true
+ })
+ }
+ if (this.Util.deepCheck(checkParams) && this.areaCheckBeforeSubmit(params)) {
this.paramsDataChange.emit(params);
this.handleCancel();
} else {