diff --git a/src/api/system/pilot.js b/src/api/system/pilot.js index 5d78a71..6d3d01e 100644 --- a/src/api/system/pilot.js +++ b/src/api/system/pilot.js @@ -21,7 +21,7 @@ export function del(ids) { } export function edit(data) { - if(data.password) data.password = encrypt(data.password) + if (data.password) data.password = encrypt(data.password) return request({ url: 'api/emEmployees', method: 'put', @@ -57,5 +57,12 @@ export function getDetail(id) { }) } +export function getAllPilots() { + return request({ + url: 'aerocraftAdminApi/api/emEmployees/all', + method: 'get' + }) +} + export default { add, edit, del, getList, getDetail } diff --git a/src/api/system/route.js b/src/api/system/route.js index ed84730..683a078 100644 --- a/src/api/system/route.js +++ b/src/api/system/route.js @@ -30,7 +30,7 @@ export function updateRoute(data) { // 全部路线 export function getAllRoutes(params) { return request({ - url: 'cpRoute/all', + url: 'aerocraftAdminApi/cpRoute/all', method: 'get', params })