summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app')
-rw-r--r--usecaseui-portal/src/app/core/models/dataInterface.ts2
-rw-r--r--usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts7
-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
3 files changed, 19 insertions, 3 deletions
diff --git a/usecaseui-portal/src/app/core/models/dataInterface.ts b/usecaseui-portal/src/app/core/models/dataInterface.ts
index 0017a600..d367fe14 100644
--- a/usecaseui-portal/src/app/core/models/dataInterface.ts
+++ b/usecaseui-portal/src/app/core/models/dataInterface.ts
@@ -1,6 +1,6 @@
enum baseUrl{
baseUrl = '/api/usecaseui-server/v1' //online
- // baseUrl = 'https://192.168.235.77:30283' //local two
+ // baseUrl = 'https://192.168.235.25:30283/api/usecaseui-server/v1' //local two
}
interface servicesTableData {
diff --git a/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts b/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts
index 48b2061c..9d0dd610 100644
--- a/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts
+++ b/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts
@@ -145,7 +145,12 @@ export class CreateModelComponent implements OnInit {
this.http.getTemplateParameters(types, chosedtemplates)
.subscribe((data) => {
this.loadingAnimateShow = false;
- if (data.status == "FAILED") {
+ if (!data || !data.status) {
+ this.temParametersTips = true;
+ this.isVisible = true;
+ this.msg.error('Back end data format error')
+ }
+ else if (data.status == "FAILED") {
this.temParametersTips = true;
this.isVisible = true;
} else {
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 {