destinationFlight.js
2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import request from '@/utils/request'
//查询航班航线
//查询航线
/**
* @param fltNo 航班号
*/
export function queryRouteByFltNo(data) {
return request({
url: '/dictionary/queryRouteByFltNo',
method: 'post',
data: data
})
}
// 查询航班列表
/**
* @param purposeOfFlightNo 航班号
* @param flightDate 航班日期
* @param status 状态
* @param start 开始位置 *
* @param limit 每页长度 *
*/
export function findFlightDimRuleByFlightNo(query) {
return request({
url: '/destinationFlight/findFlightDimRuleByFlightNo',
method: 'post',
data: query
})
}
// 获取航班下航线维度(维度修改)
/**
* @param purposeOfFlightNo 航班号
* @param flightDate 航班日期
* @param flightRoute 航线
*/
export function findDestinationFltRuleByFlightNo(query) {
return request({
url: '/destinationFlight/findDestinationFltRuleByFlightNo',
method: 'post',
data: query
})
}
//航班优先级修改
export function batchUpdateOrAddFlight(data) {
return request({
url: '/destinationFlight/batchUpdateOrAddFlight',
method: 'post',
data: data
})
}
//新增修改规则设置
export function updateOrAddFlight(form) {
return request({
url: '/destinationFlight/updateOrAddFlight',
method: 'post',
data: form
})
}
//删除规则
export function delFlightId(id) {
const data = {
id
}
return request({
url: '/destinationFlight/delFlightId',
method: 'post',
data: data
})
}
//启用/停止规则
export function enableOrDisable(id, status) {
//statsu 1-有效 3-停用
const data = {
id,
status
}
return request({
url: '/destinationFlight/enableOrDisable',
method: 'post',
data: data
})
}
//获取全部字典
export function allDictData() {
return request({
url: '/destinationFlight/allDictData',
method: 'post'
})
}
//维度航线优先级查询
/**
* @param fltNo 航班号
* @param routeDate 航班日期
*/
export function allRouteQuery(data) {
return request({
url: '/specifyDateRoute/query',
method: 'post',
data: data
})
}
//维度航线优先级修改
/**
* @param list 航线排序集合
*/
export function saveOrUpdateSpecifyDateRoute(data) {
return request({
url: '/specifyDateRoute/saveOrUpdateSpecifyDateRoute',
method: 'post',
data: data
})
}
// id查询目的航班
export function findByFlightId(data) {
return request({
url: "/destinationFlight/findByFlightId",
method: "post",
data: data,
});
}
//航班号查航班
export function findDestinationFltRuleByActualFlight(actualFlight) {
// const data = {
// actualFlight
// }
// return request({
// url: '/sourceFlight/findDestinationFltRuleByActualFlight',
// method: 'post',
// data: data
// })
}