基础数据之飞机修改优化
This commit is contained in:
@@ -1,74 +1,72 @@
|
||||
<div class="main-page">
|
||||
<div class="page-content">
|
||||
<div class="search-filter mb-3">
|
||||
<div class="page-content" #pageContent>
|
||||
<div class="search-filter mb-3" #searchFilter>
|
||||
<div class="first-condition row">
|
||||
<div class="line-operator-left input-container mb-3 col-xlg-8 col-mlg-8 col-xl-8 col-lg-10">
|
||||
<select class="mr-4 form-control" [(ngModel)]="SEL_COL" name="" id="">
|
||||
<select class="mr-4 form-control" [(ngModel)]="SEL_COL" (ngModelChange)="resetPositionArray()" name=""
|
||||
id="">
|
||||
<option value="">选择列名</option>
|
||||
<option *ngFor="let col of col_lists" [value]="col.col_code">{{col.col_chn}}</option>
|
||||
<option *ngFor="let col of render_col_lists" [value]="col.COL_CODE">{{col.COL_CN}}</option>
|
||||
</select>
|
||||
<label class="radio-inline custom-radio nowrap mr-4">
|
||||
<input type="radio" [(ngModel)]="FLT_POS" [value]="1" name="filter-position">
|
||||
<span>过滤</span>
|
||||
</label>
|
||||
<label class="radio-inline custom-radio nowrap mr-4">
|
||||
<input type="radio" [(ngModel)]="FLT_POS" [value]="2" name="filter-position">
|
||||
<input type="radio" [(ngModel)]="FLT_POS" [value]="2" name="filter-position">
|
||||
<span>查找定位</span>
|
||||
</label>
|
||||
<input class="form-control" [(ngModel)]="SEARCH" type="text" (keyup.enter) = "inputEnter()" id="inputerInfo">
|
||||
<input class="form-control" [(ngModel)]="SEARCH" (ngModelChange)="resetPositionArray()" type="text"
|
||||
(keyup.enter)="inputEnter()" id="inputerInfo">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="second-condition mb-3 row">
|
||||
<div class="input-container mr-4">
|
||||
<label for="airlineCode">航空公司: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.airlineCode" (ngModelChange)="selectChange()" id="airlineCompany">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let item of airlines" [value]="item.airlineCode">{{item.airlineName}}</option>
|
||||
</select>
|
||||
<div class="input-container mr-4">
|
||||
<label for="airlineCode">航空公司: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.airlineCode" (ngModelChange)="selectChange()"
|
||||
id="airlineCompany">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let item of airlines" [value]="item.airlineCode">{{item.airlineName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-container mr-4">
|
||||
<label for="aircraftTypeCode">机型: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.aircraftTypeCode" (ngModelChange)="selectChange()"
|
||||
id="jx">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let item of aircraftTypes" [value]="item.aircraftTypeCode">{{item.aircraftTypeName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-container mr-4">
|
||||
<label for="aircraftTypeCode">机型: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.aircraftTypeCode" (ngModelChange)="selectChange()" id="jx">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let item of aircraftTypes" [value]="item.aircraftTypeCode">{{item.aircraftTypeName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="airline-table">
|
||||
<div id="table-container" class="table-container">
|
||||
<table id="table" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>飞机号</th>
|
||||
<th>最大乘客数</th>
|
||||
<th>最大货物重量</th>
|
||||
<th>最大起飞重量</th>
|
||||
<th>最大廊桥数</th>
|
||||
<th>机主航空公司</th>
|
||||
<th>航空公司</th>
|
||||
<th>机型</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr *ngFor="let aircraft of render_data;let i = index" (click)="selectRow(aircraft)"
|
||||
[ngClass]="{'selected':row_state===aircraft}">
|
||||
<td>{{i+1}}</td>
|
||||
<td>{{aircraft.aircraftNumber}}</td>
|
||||
<td>{{aircraft.maxPassengers}}</td>
|
||||
<td>{{aircraft.maxFreightWeight}}</td>
|
||||
<td>{{aircraft.maxTakeoffWeight}}</td>
|
||||
<td>{{aircraft.maxAirbridges}}</td>
|
||||
<td>{{aircraft.airlineOwnerName}}</td>
|
||||
<td>{{aircraft.airlineName}}</td>
|
||||
<td>{{aircraft.aircraftTypeName}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div #tableContainer id="table-container" class="table-container">
|
||||
<div class="table-head" #tableHead>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="min-width:55px">序号</th>
|
||||
<th *ngFor="let col of render_col_lists" [ngStyle]="{'min-width':col.COL_WIDTH}">{{col.COL_CN}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-body" #tableBody (scroll)="handleScroll($event)">
|
||||
<div class="list-view-phantom" [ngStyle]="{ 'height': wait_render_data.length * 42 + 'px' }"></div>
|
||||
<table #tableContent id="table" class="table table-striped">
|
||||
<tbody>
|
||||
<ng-container *ngFor="let aircraft of render_data;last as isLast;index as i">
|
||||
<tr *ngIf="setWidth(isLast)" (click)="selectRow(aircraft)" [ngClass]="{'selected':getSelectedRow(aircraft)}">
|
||||
<td style="min-width:55px">{{start+i+1}}</td>
|
||||
<td *ngFor="let col of render_col_lists" [ngStyle]="{'min-width':col.COL_WIDTH}">{{aircraft[col.COL_CODE]}}</td>
|
||||
</tr>
|
||||
</ng-container>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user