diff options
author | 2021-03-11 01:51:36 +0000 | |
---|---|---|
committer | 2021-03-11 01:51:36 +0000 | |
commit | 387b2bfa70eb99535ab3148e31c9fed72c4d5e19 (patch) | |
tree | f1bb2d9e8e9b51ad9b9336492088c851f9aa2b29 /usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model | |
parent | 2757b795ea2344c940724adab527a7395ea3e17c (diff) | |
parent | 2ddfe6c8f2c8f2d472a1e1756bd3491cb6550149 (diff) |
Merge "feat:Logic plus protection"
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts | 34 |
1 files changed, 19 insertions, 15 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 83d16a62..310a1cb9 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 @@ -128,21 +128,23 @@ export class SubnetParamsModelComponent implements OnInit { } addCheckStatus() { - this.connectionLinkTable.forEach((item) => { - if ( - item.hasOwnProperty("linkId") && - 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 { - item.checked = false; - } - }); + if(this.connectionLinkTable && this.connectionLinkTable.length>0){ + this.connectionLinkTable.forEach((item) => { + if ( + item.hasOwnProperty("linkId") && + 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 { + item.checked = false; + } + }); + } } // changeResourceShare() { @@ -218,6 +220,7 @@ export class SubnetParamsModelComponent implements OnInit { getTableHeader(): void { // Find the common key of all data + if(this.connectionLinkTable && this.connectionLinkTable.length>0){ let keyList: any[] = this.connectionLinkTable.map((item) => { return Object.keys(item); }); @@ -250,6 +253,7 @@ export class SubnetParamsModelComponent implements OnInit { } } }); + } } pageIndexChange(e) { |