Showing
2 changed files
with
10 additions
and
7 deletions
| ... | @@ -206,13 +206,10 @@ export function checkFlightRoute(data) { | ... | @@ -206,13 +206,10 @@ export function checkFlightRoute(data) { |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | //更新航线 | 208 | //更新航线 |
| 209 | -/** | 209 | +export function updateRoute(data) { |
| 210 | - * @param id * | ||
| 211 | - */ | ||
| 212 | -export function updateRoute(id) { | ||
| 213 | return request({ | 210 | return request({ |
| 214 | - url: `/dictionary/updateRoute/${id}`, | 211 | + url: `/dictionary/updateRoute`, |
| 215 | method: "post", | 212 | method: "post", |
| 216 | - data: {}, | 213 | + data: data, |
| 217 | }); | 214 | }); |
| 218 | } | 215 | } | ... | ... |
| ... | @@ -562,7 +562,13 @@ export default { | ... | @@ -562,7 +562,13 @@ export default { |
| 562 | center: true, | 562 | center: true, |
| 563 | }) | 563 | }) |
| 564 | .then(() => { | 564 | .then(() => { |
| 565 | - this.updateRouteSubmit(row.id); | 565 | + let params = { |
| 566 | + id: row.id, | ||
| 567 | + fltNo: row.fltNo, | ||
| 568 | + route: row.route, | ||
| 569 | + isEtesRoute: row.isEtesRoute ? "Y" : "N" | ||
| 570 | + } | ||
| 571 | + this.updateRouteSubmit(params); | ||
| 566 | }) | 572 | }) |
| 567 | .catch(() => { | 573 | .catch(() => { |
| 568 | this.tableData[$index].isEtesRoute = !this.tableData[$index].isEtesRoute; | 574 | this.tableData[$index].isEtesRoute = !this.tableData[$index].isEtesRoute; | ... | ... |
-
Please register or login to post a comment