From fc06113b168f63398b78a73bcb8337e21766dc0b Mon Sep 17 00:00:00 2001 From: yis <15131735+Wzyhihi@user.noreply.gitee.com> Date: Wed, 20 Aug 2025 15:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/pilot.js | 9 ++++++++- src/api/system/route.js | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) 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 })