diff options
author | 2021-02-03 18:15:46 +0800 | |
---|---|---|
committer | 2021-02-03 18:15:59 +0800 | |
commit | af2965a8484ce0893ef1d1ce5ef6085cf76b0d3e (patch) | |
tree | 8f4f4cd0d465af67b2a54609029da6ebc3682e17 /usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html | |
parent | fed183f5f6868b523ebdd841378daa16426b1bd7 (diff) |
Modify the code for the updated table interface, fix the bug of submitting an and cn
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com>
Change-Id: I6ff3c3f36979459ea60a0ee0da1caeea7f3a0465
Issue-ID: USECASEUI-527
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html | 24 |
1 files changed, 13 insertions, 11 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.html b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html index 6e5b5b0e..6a9ebf6c 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html @@ -57,26 +57,28 @@ </nz-input-group> <!-- connection links table --> <div *ngIf="item.title === 'Connection Links'"> - <nz-table #basicTable [nzData]="this.formData[item.options.key]" nzShowPagination="true" - nzPageSize="2"> + <nz-table #basicTable [nzData]="connectionLinkTable" nzShowPagination="true" nzPageSize="2"> <thead> <tr> - <th *ngFor="let val of item.header" class="subnet_td">{{val.title}}</th> + <th *ngFor="let val of connectionTableHeader" class="subnet_td">{{val}}</th> <th class="subnet_td"> action </th> </tr> </thead> <tbody> <tr *ngFor="let t of basicTable.data"> - <td *ngFor="let val of item.header" class="subnet_td"> - {{t[val.key]}} + <td *ngFor="let val of connectionTableHeader" class="subnet_td"> + <div *ngIf="isObject(t[val])"> + <div *ngFor="let key of objectKeys(t[val])"> + {{key}}: {{t[val][key]}} + </div> + </div> + <div *ngIf="!isObject(t[val])"> + {{t[val]}} + </div> </td> - <!-- <td nzShowCheckbox="true" [nzChecked]="t.checked" - (nzCheckedChange)="changeLinkCheck(t.id, $event)" [nzDisabled]="item.disable" - class="subnet_td"> - </td> --> <td> - <input type="radio" name="linkcheck" [value]="t.id" - (click)="changeLinkCheck(t.id)" [checked]="t.checked" + <input type="radio" name="linkcheck" [value]="t.linkId" + (click)="changeLinkCheck(t.linkId)" [checked]="t.checked" [disabled]="item.disable" class="table_radio" /> </td> </tr> |