Elements-SY

【数据字典】-航班是否为ET86接口字段更新

......@@ -206,13 +206,10 @@ export function checkFlightRoute(data) {
}
//更新航线
/**
* @param id *
*/
export function updateRoute(id) {
export function updateRoute(data) {
return request({
url: `/dictionary/updateRoute/${id}`,
url: `/dictionary/updateRoute`,
method: "post",
data: {},
data: data,
});
}
......
......@@ -562,7 +562,13 @@ export default {
center: true,
})
.then(() => {
this.updateRouteSubmit(row.id);
let params = {
id: row.id,
fltNo: row.fltNo,
route: row.route,
isEtesRoute: row.isEtesRoute ? "Y" : "N"
}
this.updateRouteSubmit(params);
})
.catch(() => {
this.tableData[$index].isEtesRoute = !this.tableData[$index].isEtesRoute;
......