renyuan.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import request from '@/utils/request'
  2. // 查询岗位列表
  3. export function listPost(query) {
  4. return request({
  5. url: '/investigate/table/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function listPostbfy(query) {
  11. return request({
  12. url: '/investigate/table/listPage',
  13. method: 'get',
  14. params: query
  15. })
  16. }
  17. // 查询岗位详细
  18. export function getPost(postId) {
  19. return request({
  20. url: '/investigate/table/' + postId,
  21. method: 'get'
  22. })
  23. }
  24. export function updateFs(data) {
  25. return request({
  26. url: '/sendSms/sendBatchSmsTable',
  27. method: 'post',
  28. data: data
  29. })
  30. }
  31. export function updateGx(data) {
  32. return request({
  33. url: '/sendSms/sendBatchSmsTableUpdate',
  34. method: 'post',
  35. data: data
  36. })
  37. }
  38. // 新增岗位
  39. export function addPost(data) {
  40. return request({
  41. url: '/investigate/table',
  42. method: 'post',
  43. data: data
  44. })
  45. }
  46. // 修改岗位
  47. export function updatePost(data) {
  48. return request({
  49. url: '/investigate/table/put',
  50. method: 'post',
  51. data: data
  52. })
  53. }
  54. // 删除岗位
  55. export function delPost(postId) {
  56. return request({
  57. url: '/investigate/table/delete/' + postId,
  58. method: 'get'
  59. })
  60. }