tongj.js 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import request from '@/utils/request'
  2. // 查询岗位列表
  3. export function listPost(data) {
  4. return request({
  5. url: '/boman-web-core/attendance/statistics',
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. // 查询岗位详细
  11. export function getPost(val,id,) {
  12. return request({
  13. url: '/boman-web-core/attendance/findDate/' + val + '/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 导出
  18. export function getDown(data) {
  19. return request({
  20. headers: {
  21. 'Content-Type': 'application/vnd.ms-excel'
  22. },
  23. url: '/boman-file/common/file/export/statisticsByMonth',
  24. method: 'post',
  25. data: data
  26. })
  27. }
  28. // 新增岗位
  29. export function addPost(data) {
  30. return request({
  31. url: '/system/post',
  32. method: 'post',
  33. data: data
  34. })
  35. }
  36. // 修改岗位
  37. export function updatePost(data) {
  38. return request({
  39. url: '/system/post/put',
  40. method: 'post',
  41. data: data
  42. })
  43. }
  44. // 删除岗位
  45. export function delPost(id) {
  46. return request({
  47. url: '/system/post/delete/' + id,
  48. method: 'get'
  49. })
  50. }