summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts')
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts30
1 files changed, 17 insertions, 13 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 6354f91e..83d16a62 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
@@ -44,7 +44,7 @@ export class SubnetParamsModelComponent implements OnInit {
"CN Endpoint",
];
// Parameters not passed to the back end
- notPassPara: string[] = ["tn_connection_links"];
+ notPassPara: string[] = ["sliceProfile_TN_connection_links"];
connectionLinkTable: any[] = [];
connectionTableHeader: string[] = [];
pageSize: number = 2;
@@ -131,10 +131,12 @@ export class SubnetParamsModelComponent implements OnInit {
this.connectionLinkTable.forEach((item) => {
if (
item.hasOwnProperty("linkId") &&
- typeof this.formData["tn_connection_links"] !== "undefined" &&
- this.formData["tn_connection_links"] !== "" &&
- this.formData["tn_connection_links"] !== null &&
- item["linkId"] === this.formData["tn_connection_links"]
+ typeof this.formData["sliceProfile_TN_connection_links"] !==
+ "undefined" &&
+ this.formData["sliceProfile_TN_connection_links"] !== "" &&
+ this.formData["sliceProfile_TN_connection_links"] !== null &&
+ item["linkId"] ===
+ this.formData["sliceProfile_TN_connection_links"]
) {
item.checked = true;
} else {
@@ -269,8 +271,8 @@ export class SubnetParamsModelComponent implements OnInit {
// this.connectionLinkTable.forEach((item) => {
// item.checked = false;
// });
- // this.formData["tn_connection_links"] = null;
- this.notPassPara = ["tn_connection_links"];
+ // this.formData["sliceProfile_TN_connection_links"] = null;
+ this.notPassPara = ["sliceProfile_TN_connection_links"];
this.transferFormItems.forEach((item) => {
if (item.title === "Connection Links") {
item.disable = true;
@@ -293,10 +295,12 @@ export class SubnetParamsModelComponent implements OnInit {
item.title === "CN Endpoint"
) {
if (
- typeof this.formData["tn_connection_links"] !==
- "undefined" &&
- this.formData["tn_connection_links"] !== null &&
- this.formData["tn_connection_links"] !== ""
+ typeof this.formData[
+ "sliceProfile_TN_connection_links"
+ ] !== "undefined" &&
+ this.formData["sliceProfile_TN_connection_links"] !==
+ null &&
+ this.formData["sliceProfile_TN_connection_links"] !== ""
) {
item.disable = true;
item.required = false;
@@ -307,7 +311,7 @@ export class SubnetParamsModelComponent implements OnInit {
);
} else {
//:todo
- this.formData["tn_connection_links"] = "";
+ this.formData["sliceProfile_TN_connection_links"] = "";
item.disable = false;
item.required = true;
this.notPassPara = [];
@@ -357,7 +361,7 @@ export class SubnetParamsModelComponent implements OnInit {
item.checked = false;
}
});
- this.formData["tn_connection_links"] = id; // get the selected id
+ this.formData["sliceProfile_TN_connection_links"] = id; // get the selected id
this.judgeTn();
}