2019-01-14 11:01:29 +08:00
< div class = "main-page" >
< div class = "page-content" # pageContent >
2018-12-25 14:04:41 +08:00
< 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 = "" >
2018-12-21 15:35:13 +08:00
< option value = "" > 选择列名</ option >
2019-01-17 16:16:41 +08:00
< option * ngFor = "let col of render_col_lists" [ value ]=" col . COL_CODE " > {{col.COL_CN}}</ option >
2018-12-25 14:04:41 +08:00
</ select >
< label class = "radio-inline custom-radio nowrap mr-4" >
2018-11-22 14:17:48 +08:00
< input type = "radio" [( ngModel )]=" FLT_POS " [ value ]=" 1 " name = "filter-position" >
< span > 过滤</ span >
</ label >
< label class = "radio-inline custom-radio nowrap mr-4" >
2018-12-25 14:04:41 +08:00
< input type = "radio" [( ngModel )]=" FLT_POS " [ value ]=" 2 " name = "filter-position" >
2018-11-22 14:17:48 +08:00
< span > 查找定位</ span >
</ label >
2018-12-25 14:04:41 +08:00
< input class = "form-control" [( ngModel )]=" SEARCH " type = "text" ( keyup . enter )=" inputEnter ()" >
</ div >
< div class = "line-operator-right mb-3 col-xlg-4 col-mlg-4 col-xl-4 col-lg-2" >
2018-12-24 17:35:08 +08:00
< button type = "button" class = "btn btn-info mr-2" ( click )=" toggleFilter ()" > {{filterClose?'展开':'关闭'}}</ button >
2018-12-25 14:04:41 +08:00
< button type = "button" class = "btn btn-info mr-2" ( click )=" refresh ()" > 刷新</ button >
</ div >
</ div >
2018-11-22 14:17:48 +08:00
2018-12-25 14:04:41 +08:00
< div class = "second-condition mb-3 row" [ ngClass ]="{' filterClose-c ' :filterClose ,' filterClose-o ' : ! filterClose }" >
2018-12-21 15:35:13 +08:00
< div class = "input-container mr-4" >
< label for = "airlineId" > 航空公司: </ label >
2018-12-25 14:04:41 +08:00
< select class = "form-control" [( ngModel )]=" filterItems . airlineId " ( ngModelChange )=" selectChange ()" >
2018-12-21 15:35:13 +08:00
< option value = "" ></ option >
< option * ngFor = "let item of airlines" [ value ]=" item . airlineId " > {{item.airlineName}}</ option >
</ select >
</ div >
< div class = "input-container mr-4" >
< label for = "routeType" > 航线类别: </ label >
2018-12-25 14:04:41 +08:00
< select class = "form-control" [( ngModel )]=" filterItems . routeType " ( ngModelChange )=" selectChange ()" >
2018-12-21 15:35:13 +08:00
< option value = "" ></ option >
< option value = "D" > 国内</ option >
< option value = "I" > 国际</ option >
< option value = "M" > 混合</ option >
< option value = "R" > 地区</ option >
</ select >
</ div >
< div class = "input-container mr-4" >
< label for = "flightTypeCode" > 航班类别: </ label >
2018-12-25 14:04:41 +08:00
< select class = "form-control" [( ngModel )]=" filterItems . flightTypeCode " ( ngModelChange )=" selectChange ()" >
2018-12-21 15:35:13 +08:00
< option value = "" ></ option >
< option * ngFor = "let item of flightTypes" [ value ]=" item . flightTypeCode " > {{item.flightTypeNameCn}}</ option >
</ select >
</ div >
2018-12-25 14:04:41 +08:00
<!-- <div class="input-container mr-4">
2018-12-21 15:35:13 +08:00
<label for="startDate">查询年份: </label>
<input readonly type="text" id="startDate" class="form-control" style="background:transparent;cursor: pointer">
2018-12-25 14:04:41 +08:00
</div> -->
2018-12-21 15:35:13 +08:00
< div class = "input-container mr-4" >
< label for = "arriOrDept" > 到达/出发: </ label >
2018-12-25 14:04:41 +08:00
< select class = "form-control" [( ngModel )]=" filterItems . arriOrDept " ( ngModelChange )=" selectChange ()" >
2018-12-21 15:35:13 +08:00
< option value = "" ></ option >
< option value = "A" > 到达</ option >
< option value = "D" > 出发</ option >
</ select >
</ div >
2018-12-25 14:04:41 +08:00
< div class = "input-container mr-4" >
< label for = "arriOrDept" > 查询年份: </ label >
< select class = "form-control" [( ngModel )]=" filterYear " ( ngModelChange )=" selectYearChange ($ event )" >
< option * ngFor = "let year of yearLists" [ value ]=" year " > {{year}}</ option >
</ select >
</ div >
</ div >
< div class = "third-condition row" [ ngClass ]="{' filterClose-c ' :filterClose ,' filterClose-o ' : ! filterClose }" >
2018-12-21 15:35:13 +08:00
< label class = "radio-inline custom-checkbox nowrap mr-4" >
< input type = "checkbox" [( ngModel )]=" checkboxGroup . related " ( ngModelChange )=" checkboxChange ()" >
< span > 航班关联信息</ span >
</ label >
< label class = "radio-inline custom-checkbox nowrap mr-4" >
< input type = "checkbox" [( ngModel )]=" checkboxGroup . detail " ( ngModelChange )=" checkboxChange ()" >
< span > 详细信息</ span >
</ label >
2018-12-25 14:04:41 +08:00
</ div >
</ div >
2018-11-22 14:17:48 +08:00
2018-12-25 14:04:41 +08:00
< div class = "airline-table" >
2018-12-24 17:35:08 +08:00
< div # tableContainer id = "table-container" class = "table-container" [ ngClass ]="{' table-c ' : ! tabClose ,' table-o ' : tabClose }" >
2019-01-14 11:01:29 +08:00
< div class = "table-head" # tableHead >
< table class = "table" >
< thead >
< tr >
< th style = "min-width:55px" > 序号</ th >
< th * ngFor = "let airline_col of render_col_lists" [ ngStyle ]="{' min-width ' :airline_col . COL_WIDTH }" > {{airline_col.COL_CN}}</ th >
</ tr >
</ thead >
</ table >
</ div >
< div class = "table-body" # tableBody ( scroll )=" handleScroll ($ event )" >
< div class = "list-view-phantom" [ ngStyle ]="{ ' height ' : combined_data . length * 42 + ' px ' }" ></ div >
< table # tableContent id = "table" class = "table table-striped" >
< tbody >
< tr * ngFor = "let seasonal of render_data;let i = index" ( click )=" selectRow ( seasonal )" >
< td style = "min-width:55px" > {{start+i+1}}</ td >
< td * ngFor = "let airline_col of render_col_lists" [ ngStyle ]="{' min-width ' :airline_col . COL_WIDTH }" [ title ]=" seasonal [ airline_col . COL_CODE ]" > {{seasonal[airline_col.COL_CODE]}}</ td >
</ tr >
</ tbody >
</ table >
</ div >
<!-- <table id="table" class="table table-bordered table-striped">
2018-12-25 14:04:41 +08:00
<thead>
<tr>
<th>序号</th>
<th>航班号</th>
<th>航班季度</th>
<th>国际代码</th>
<th>航空公司</th>
<th>航线类别</th>
<th>航班类别</th>
<th>运营日</th>
<th>开始日期</th>
<th>结束日期</th>
<th>航线</th>
<th>进/出港</th>
<th>到达时间</th>
<th>出发时间</th>
<th>机型</th>
<th>飞行距离(千米)</th>
<th>飞行时间(分钟)</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let seasonal of render_data;let i = index" (click)="selectRow(seasonal)" [ngClass]="{'selected':row_state.seasonflightId===seasonal.seasonflightId}">
2018-12-26 10:11:24 +08:00
<td>{{i+1}}</td>
2018-12-25 14:04:41 +08:00
<td>{{seasonal.flightNumber}}</td>
<td>{{seasonal.seasonRecIdChn}}</td>
<td>{{seasonal.internationalCode}}</td>
<td>{{seasonal.airlineChnName}}</td>
<td>{{seasonal.routeTypeChn}}</td>
<td>{{seasonal.flightTypeChnName}}</td>
<td>{{seasonal.operationDays}}</td>
<td>{{seasonal.startDate}}</td>
<td>{{seasonal.endDate}}</td>
<td>{{seasonal.AirportChn}}</td>
<td>{{seasonal.arriOrDeptChn}}</td>
<td>{{seasonal.arrivalTimeTra}}</td>
<td>{{seasonal.departureTimeTra}}</td>
<td>{{seasonal.aircraftTypeName}}</td>
<td>{{seasonal.flyingDistance}}</td>
<td>{{seasonal.flyingTime}}</td>
</tr>
</tbody>
2019-01-14 11:01:29 +08:00
</table> -->
2018-12-21 15:35:13 +08:00
</ div >
< div class = "airline-message" [ ngClass ]="{' tab-c ' : tabClose ,' tab-o ' : ! tabClose }" >
< nz-tabset [ nzTabPosition ]="' top '" [ nzType ]="' card '" [ nzShowPagination ]=" false " >
< nz-tab nzTitle = "关联信息" ( nzClick )=" nzClick ()" * ngIf = "checkboxGroup.related" >
< app-related-tab [ flight ]=" row_state " ></ app-related-tab >
</ nz-tab >
< nz-tab nzTitle = "详细信息" ( nzClick )=" nzClick ()" * ngIf = "checkboxGroup.detail" >
< app-detail-tab [ flight ]=" row_state " ></ app-detail-tab >
</ nz-tab >
</ nz-tabset >
</ div >
2018-12-25 14:04:41 +08:00
</ div >
</ div >
2018-11-22 14:17:48 +08:00
</ div >