staffManage.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/utils/request'
  2. // 查询人员管理列表
  3. export function listStaffManage(query) {
  4. return request({
  5. url: '/manage/staffManage/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询人员管理详细
  11. export function getStaffManage(staffId) {
  12. return request({
  13. url: '/manage/staffManage/' + staffId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增人员管理
  18. export function addStaffManage(data) {
  19. return request({
  20. url: '/manage/staffManage',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改人员管理
  26. export function updateStaffManage(data) {
  27. return request({
  28. url: '/manage/staffManage/put',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. export function unploa(data) {
  34. return request({
  35. url: '/common/upload',
  36. headers: {
  37. 'Content-Type': 'application/x-www-form-urlencoded'
  38. },
  39. method: 'post',
  40. data: data
  41. })
  42. }
  43. // 删除人员管理
  44. export function delStaffManage(staffId) {
  45. return request({
  46. url: '/manage/staffManage/delete/' + staffId,
  47. method: 'get'
  48. })
  49. }