添加基础数据查询路由页面
This commit is contained in:
@@ -50,7 +50,7 @@ export class MainComponent implements OnInit {
|
||||
|
||||
public filterItems = {
|
||||
SEARCH: '', //手动输入条件
|
||||
FLT_POS:'1', //过滤还是定位
|
||||
FLT_POS: 1, //过滤还是定位
|
||||
ALCD: '', //航空公司
|
||||
FLIN: '', //航线类别
|
||||
FLTY: '', //航班类别
|
||||
@@ -140,7 +140,7 @@ export class MainComponent implements OnInit {
|
||||
|
||||
for (let i = 0; i < this.col_lists.length; i++) {
|
||||
let key = this.col_lists[i]['COL_CODE']
|
||||
render_flight[key] = typeof (this.formatter[key]) === 'function' ? this.formatter[key](row_flights['preFlight'][key],1) : this.formatter[key] ? this.formatter[key][row_flights['preFlight'][key]] : row_flights['preFlight'][key];
|
||||
render_flight[key] = typeof (this.formatter[key]) === 'function' ? this.formatter[key](row_flights['preFlight'][key], 1) : this.formatter[key] ? this.formatter[key][row_flights['preFlight'][key]] : row_flights['preFlight'][key];
|
||||
}
|
||||
row_flights['renderFlight'] = render_flight;
|
||||
|
||||
@@ -148,7 +148,7 @@ export class MainComponent implements OnInit {
|
||||
row_flights['reaFlight'] = element;
|
||||
for (let i = 0; i < this.col_lists.length; i++) {
|
||||
let key = this.col_lists[i]['COL_CODE']
|
||||
render_flight[key] = typeof (this.formatter[key]) === 'function' ? this.formatter[key](row_flights['reaFlight'][key],1) : this.formatter[key] ? this.formatter[key][row_flights['reaFlight'][key]] : row_flights['reaFlight'][key];
|
||||
render_flight[key] = typeof (this.formatter[key]) === 'function' ? this.formatter[key](row_flights['reaFlight'][key], 1) : this.formatter[key] ? this.formatter[key][row_flights['reaFlight'][key]] : row_flights['reaFlight'][key];
|
||||
}
|
||||
row_flights['renderFlight'] = render_flight;
|
||||
|
||||
@@ -162,9 +162,9 @@ export class MainComponent implements OnInit {
|
||||
let key = this.col_lists[i]['COL_CODE']
|
||||
if (this.formatter.hasOwnProperty(key)) {
|
||||
if (typeof (this.formatter[key]) === 'function') {
|
||||
render_flight[key] = this.formatter[key](row_flights['preFlight'][key],1) + '/' + this.formatter[key](row_flights['reaFlight'][key],1);
|
||||
render_pre_flight[key] = this.formatter[key](row_flights['preFlight'][key],1);
|
||||
render_rea_flight[key] = this.formatter[key](row_flights['reaFlight'][key],1);
|
||||
render_flight[key] = this.formatter[key](row_flights['preFlight'][key], 1) + '/' + this.formatter[key](row_flights['reaFlight'][key], 1);
|
||||
render_pre_flight[key] = this.formatter[key](row_flights['preFlight'][key], 1);
|
||||
render_rea_flight[key] = this.formatter[key](row_flights['reaFlight'][key], 1);
|
||||
} else {
|
||||
render_flight[key] = this.formatter[key][row_flights['preFlight'][key]] + '/' + this.formatter[key][row_flights['reaFlight'][key]];
|
||||
render_pre_flight[key] = this.formatter[key][row_flights['preFlight'][key]];
|
||||
@@ -201,6 +201,26 @@ export class MainComponent implements OnInit {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 过滤机定位
|
||||
* @param filterItems
|
||||
* @return
|
||||
*/
|
||||
|
||||
fliter(filterItems, render_data) {
|
||||
if(filterItems.FLT_POS===1){
|
||||
//过滤
|
||||
}else{
|
||||
//定位
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 行排序规则方法
|
||||
* @param flight
|
||||
|
||||
Reference in New Issue
Block a user