index.js 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. // 物业管理员
  2. import http from '@/apis/axios'
  3. const api = 'admin/'
  4. export default {
  5. // 添加
  6. add: (data, params) => http(api + 'supplercreate', data, 'post', params),
  7. // 删除
  8. delete: (data, params) => http(api + 'supplerdelete', data, 'post', params),
  9. // 分页查询
  10. list: (data, params) => http(api + 'supplerlist', data, 'post', params),
  11. // 更新
  12. update: (data, params) => http(api + 'suppleredit', data, 'post', params),
  13. // 修改状态
  14. status: (data, params) => http(api + 'supplerstatus', data, 'post', params),
  15. // 详情
  16. detail: (data, params) => http(api + 'supplerinfo', data, 'post', params),
  17. // 升级为业务公司
  18. inv_update: (data, params) => http(api + 'supplerUpgrade', data, 'post', params),
  19. // 添加
  20. kadd: (data, params) => http(api + 'keepbcreate', data, 'post', params),
  21. // 删除
  22. kdelete: (data, params) => http(api + 'keepbdelete', data, 'post', params),
  23. // 分页查询
  24. klist: (data, params) => http(api + 'keepblist', data, 'post', params),
  25. // 修改状态
  26. kstatus: (data, params) => http(api + 'keepbstatus', data, 'post', params),
  27. // 详情
  28. kdetail: (data, params) => http(api + 'keepbinfo', data, 'post', params),
  29. // 更新
  30. kupdate: (data, params) => http(api + 'keepbedit', data, 'post', params)
  31. }