resourceAllocation.js 603 B

123456789101112131415161718192021
  1. import { get, put, post, deletes } from '@/http/index'
  2. // 查询飞机构型列表
  3. export const getResourceAllocation = async (data) => {
  4. return await get('/als/resourceAllocation/list', data)
  5. }
  6. // 新增飞机构型
  7. export const addResourceAllocation = async (data) => {
  8. return await post('/als/resourceAllocation', data)
  9. }
  10. // 修改飞机构型
  11. export const updateResourceAllocation = async (data) => {
  12. return await put('/als/resourceAllocation', data)
  13. }
  14. // 删除飞机构型
  15. export const removeResourceAllocation = async (id) => {
  16. return await deletes('/als/resourceAllocation/' + id)
  17. }