修改的接口文件
This commit is contained in:
parent
64d5b4812f
commit
fc06113b16
@ -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 }
|
||||
|
||||
|
@ -30,7 +30,7 @@ export function updateRoute(data) {
|
||||
// 全部路线
|
||||
export function getAllRoutes(params) {
|
||||
return request({
|
||||
url: 'cpRoute/all',
|
||||
url: 'aerocraftAdminApi/cpRoute/all',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user