Showing
1 changed file
with
88 additions
and
79 deletions
| 1 | -import request from '@/utils/request' | 1 | +import request from "@/utils/request"; |
| 2 | //数据字典名称 | 2 | //数据字典名称 |
| 3 | /** | 3 | /** |
| 4 | * @param | 4 | * @param |
| 5 | */ | 5 | */ |
| 6 | export function getDictNameList() { | 6 | export function getDictNameList() { |
| 7 | - return request({ | 7 | + return request({ |
| 8 | - url: '/dictionary/queryMain', | 8 | + url: "/dictionary/queryMain", |
| 9 | - method: 'get', | 9 | + method: "get", |
| 10 | - }) | 10 | + }); |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | //字典表查询 | 13 | //字典表查询 |
| ... | @@ -18,11 +18,11 @@ export function getDictNameList() { | ... | @@ -18,11 +18,11 @@ export function getDictNameList() { |
| 18 | * @param size 每页长度 null | 18 | * @param size 每页长度 null |
| 19 | */ | 19 | */ |
| 20 | export function getDictionaryList(data) { | 20 | export function getDictionaryList(data) { |
| 21 | - return request({ | 21 | + return request({ |
| 22 | - url: '/dictionary/query', | 22 | + url: "/dictionary/query", |
| 23 | - method: 'post', | 23 | + method: "post", |
| 24 | - data: data | 24 | + data: data, |
| 25 | - }) | 25 | + }); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | //serviceCode字典表查询 | 28 | //serviceCode字典表查询 |
| ... | @@ -30,10 +30,10 @@ export function getDictionaryList(data) { | ... | @@ -30,10 +30,10 @@ export function getDictionaryList(data) { |
| 30 | * @param | 30 | * @param |
| 31 | */ | 31 | */ |
| 32 | export function getServiceCodeList() { | 32 | export function getServiceCodeList() { |
| 33 | - return request({ | 33 | + return request({ |
| 34 | - url: '/dictionary/queryServiceCode', | 34 | + url: "/dictionary/queryServiceCode", |
| 35 | - method: 'get', | 35 | + method: "get", |
| 36 | - }) | 36 | + }); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | //新增字典(单条) | 39 | //新增字典(单条) |
| ... | @@ -43,11 +43,11 @@ export function getServiceCodeList() { | ... | @@ -43,11 +43,11 @@ export function getServiceCodeList() { |
| 43 | * @param dictCode 字典表名称 * | 43 | * @param dictCode 字典表名称 * |
| 44 | */ | 44 | */ |
| 45 | export function addDict(data) { | 45 | export function addDict(data) { |
| 46 | - return request({ | 46 | + return request({ |
| 47 | - url: '/dictionary/addDict', | 47 | + url: "/dictionary/addDict", |
| 48 | - method: 'POST', | 48 | + method: "POST", |
| 49 | - data: data | 49 | + data: data, |
| 50 | - }) | 50 | + }); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | //新增字典(批量) | 53 | //新增字典(批量) |
| ... | @@ -56,11 +56,11 @@ export function addDict(data) { | ... | @@ -56,11 +56,11 @@ export function addDict(data) { |
| 56 | * @param dictCode 字典表名称 * | 56 | * @param dictCode 字典表名称 * |
| 57 | */ | 57 | */ |
| 58 | export function addDictBatch(data) { | 58 | export function addDictBatch(data) { |
| 59 | - return request({ | 59 | + return request({ |
| 60 | - url: '/dictionary/addDictBatch', | 60 | + url: "/dictionary/addDictBatch", |
| 61 | - method: 'POST', | 61 | + method: "POST", |
| 62 | - data: data | 62 | + data: data, |
| 63 | - }) | 63 | + }); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | //serviceCode子字典添加 | 66 | //serviceCode子字典添加 |
| ... | @@ -70,11 +70,11 @@ export function addDictBatch(data) { | ... | @@ -70,11 +70,11 @@ export function addDictBatch(data) { |
| 70 | * @param serviceCodeValue 字典名称 * | 70 | * @param serviceCodeValue 字典名称 * |
| 71 | */ | 71 | */ |
| 72 | export function addServiceCodeBatch(data) { | 72 | export function addServiceCodeBatch(data) { |
| 73 | - return request({ | 73 | + return request({ |
| 74 | - url: '/dictionary/addServiceCodeBatch', | 74 | + url: "/dictionary/addServiceCodeBatch", |
| 75 | - method: 'POST', | 75 | + method: "POST", |
| 76 | - data: data | 76 | + data: data, |
| 77 | - }) | 77 | + }); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | //serviceCode子字典删除 | 80 | //serviceCode子字典删除 |
| ... | @@ -83,11 +83,11 @@ export function addServiceCodeBatch(data) { | ... | @@ -83,11 +83,11 @@ export function addServiceCodeBatch(data) { |
| 83 | * @param serviceCodeValue 字典名称 * | 83 | * @param serviceCodeValue 字典名称 * |
| 84 | */ | 84 | */ |
| 85 | export function delServiceCodeCihild(data) { | 85 | export function delServiceCodeCihild(data) { |
| 86 | - return request({ | 86 | + return request({ |
| 87 | - url: '/dictionary/delServiceCodeCihild', | 87 | + url: "/dictionary/delServiceCodeCihild", |
| 88 | - method: 'POST', | 88 | + method: "POST", |
| 89 | - data: data | 89 | + data: data, |
| 90 | - }) | 90 | + }); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | //字典删除 | 93 | //字典删除 |
| ... | @@ -96,11 +96,11 @@ export function delServiceCodeCihild(data) { | ... | @@ -96,11 +96,11 @@ export function delServiceCodeCihild(data) { |
| 96 | * @param id 字典ID * | 96 | * @param id 字典ID * |
| 97 | */ | 97 | */ |
| 98 | export function delDict(data) { | 98 | export function delDict(data) { |
| 99 | - return request({ | 99 | + return request({ |
| 100 | - url: '/dictionary/delDict', | 100 | + url: "/dictionary/delDict", |
| 101 | - method: 'POST', | 101 | + method: "POST", |
| 102 | - data: data | 102 | + data: data, |
| 103 | - }) | 103 | + }); |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | //虚拟航班查询 | 106 | //虚拟航班查询 |
| ... | @@ -110,11 +110,11 @@ export function delDict(data) { | ... | @@ -110,11 +110,11 @@ export function delDict(data) { |
| 110 | * @param size 每页长度 null * | 110 | * @param size 每页长度 null * |
| 111 | */ | 111 | */ |
| 112 | export function flightType(data) { | 112 | export function flightType(data) { |
| 113 | - return request({ | 113 | + return request({ |
| 114 | - url: '/dictionary/flightType', | 114 | + url: "/dictionary/flightType", |
| 115 | - method: 'post', | 115 | + method: "post", |
| 116 | - data: data | 116 | + data: data, |
| 117 | - }) | 117 | + }); |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | //虚拟航班新增 | 120 | //虚拟航班新增 |
| ... | @@ -122,11 +122,11 @@ export function flightType(data) { | ... | @@ -122,11 +122,11 @@ export function flightType(data) { |
| 122 | * @param flightNo 航班名称 list * | 122 | * @param flightNo 航班名称 list * |
| 123 | */ | 123 | */ |
| 124 | export function addFlight(data) { | 124 | export function addFlight(data) { |
| 125 | - return request({ | 125 | + return request({ |
| 126 | - url: '/dictionary/addFlight', | 126 | + url: "/dictionary/addFlight", |
| 127 | - method: 'post', | 127 | + method: "post", |
| 128 | - data: data | 128 | + data: data, |
| 129 | - }) | 129 | + }); |
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | //虚拟航班删除 | 132 | //虚拟航班删除 |
| ... | @@ -134,11 +134,11 @@ export function addFlight(data) { | ... | @@ -134,11 +134,11 @@ export function addFlight(data) { |
| 134 | * @param flightNo 航班名称 list * | 134 | * @param flightNo 航班名称 list * |
| 135 | */ | 135 | */ |
| 136 | export function delFlight(data) { | 136 | export function delFlight(data) { |
| 137 | - return request({ | 137 | + return request({ |
| 138 | - url: '/dictionary/delFlight', | 138 | + url: "/dictionary/delFlight", |
| 139 | - method: 'post', | 139 | + method: "post", |
| 140 | - data: data | 140 | + data: data, |
| 141 | - }) | 141 | + }); |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | //查询航线 | 144 | //查询航线 |
| ... | @@ -148,11 +148,11 @@ export function delFlight(data) { | ... | @@ -148,11 +148,11 @@ export function delFlight(data) { |
| 148 | * @param size 页长 | 148 | * @param size 页长 |
| 149 | */ | 149 | */ |
| 150 | export function queryRoute(data) { | 150 | export function queryRoute(data) { |
| 151 | - return request({ | 151 | + return request({ |
| 152 | - url: '/dictionary/queryRoute', | 152 | + url: "/dictionary/queryRoute", |
| 153 | - method: 'post', | 153 | + method: "post", |
| 154 | - data: data | 154 | + data: data, |
| 155 | - }) | 155 | + }); |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | //新增航线 | 158 | //新增航线 |
| ... | @@ -161,11 +161,11 @@ export function queryRoute(data) { | ... | @@ -161,11 +161,11 @@ export function queryRoute(data) { |
| 161 | * @param route 航线 * | 161 | * @param route 航线 * |
| 162 | */ | 162 | */ |
| 163 | export function addRoute(data) { | 163 | export function addRoute(data) { |
| 164 | - return request({ | 164 | + return request({ |
| 165 | - url: '/dictionary/addRoute', | 165 | + url: "/dictionary/addRoute", |
| 166 | - method: 'post', | 166 | + method: "post", |
| 167 | - data: data | 167 | + data: data, |
| 168 | - }) | 168 | + }); |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | //删除航线 | 171 | //删除航线 |
| ... | @@ -173,11 +173,11 @@ export function addRoute(data) { | ... | @@ -173,11 +173,11 @@ export function addRoute(data) { |
| 173 | * @param id * | 173 | * @param id * |
| 174 | */ | 174 | */ |
| 175 | export function delRoute(data) { | 175 | export function delRoute(data) { |
| 176 | - return request({ | 176 | + return request({ |
| 177 | - url: '/dictionary/delRoute', | 177 | + url: "/dictionary/delRoute", |
| 178 | - method: 'post', | 178 | + method: "post", |
| 179 | - data: data | 179 | + data: data, |
| 180 | - }) | 180 | + }); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | //航线排序 | 183 | //航线排序 |
| ... | @@ -185,11 +185,11 @@ export function delRoute(data) { | ... | @@ -185,11 +185,11 @@ export function delRoute(data) { |
| 185 | * @param id * | 185 | * @param id * |
| 186 | */ | 186 | */ |
| 187 | export function orderRoute(data) { | 187 | export function orderRoute(data) { |
| 188 | - return request({ | 188 | + return request({ |
| 189 | - url: '/dictionary/orderRoute', | 189 | + url: "/dictionary/orderRoute", |
| 190 | - method: 'post', | 190 | + method: "post", |
| 191 | - data: data | 191 | + data: data, |
| 192 | - }) | 192 | + }); |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | //航线删除确认 | 195 | //航线删除确认 |
| ... | @@ -198,9 +198,18 @@ export function orderRoute(data) { | ... | @@ -198,9 +198,18 @@ export function orderRoute(data) { |
| 198 | * @param route 航线 | 198 | * @param route 航线 |
| 199 | */ | 199 | */ |
| 200 | export function checkFlightRoute(data) { | 200 | export function checkFlightRoute(data) { |
| 201 | - return request({ | 201 | + return request({ |
| 202 | - url: '/FlightPreserveController/checkFlightRoute', | 202 | + url: "/FlightPreserveController/checkFlightRoute", |
| 203 | - method: 'post', | 203 | + method: "post", |
| 204 | - data: data | 204 | + data: data, |
| 205 | - }) | 205 | + }); |
| 206 | +} | ||
| 207 | + | ||
| 208 | +//更新航线 | ||
| 209 | +export function updateRoute(data) { | ||
| 210 | + return request({ | ||
| 211 | + url: `/dictionary/updateRoute`, | ||
| 212 | + method: "post", | ||
| 213 | + data: data, | ||
| 214 | + }); | ||
| 206 | } | 215 | } | ... | ... |
-
Please register or login to post a comment