- <wj-flex-grid-column [binding]="'shipmntActQty'" header="出荷数" [width]="100" *ngIf="arFixFlgDis">
- <ng-template wjFlexGridCellTemplate [cellType]="'CellEdit'" let-cell="cell" >
- <wj-input-number class="form-control"
- [style]="(cell.width)"
- [(value)]="cell.item.shipmntActQty"
- [max]="9999999999"
- tabIndex="-1"
- readonly>
- </wj-input-number>
- </ng-template>
- </wj-flex-grid-column>
- <wj-flex-grid-column [binding]="'shipmntActQty'" header="出荷数" [width]="90" [isReadOnly]="true" *ngIf="!arFixFlgDis">
- <ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell">
- <wj-input-number class="form-control"
- [style]="(cell.width)"
- [(value)]="cell.item.shipmntActQty"
- [max]="9999999999"
- [isRequired]="false" [format]="'n0'"
- (lostFocus)="emesdfs104011012(cell.row.index);">
- </wj-input-number>
- </ng-template>
- </wj-flex-grid-column>
复制代码 我现在FlexGrid里边有两列都是【出荷数】,我想通过itemSource里边的一个boolean值【arFixFlgDis】去判断要表示哪一列。这么实现有什么问题么,现在画面上只会显示arFixFlgDis=true的那一列。
|
|