index.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import {request} from "@/utils/request";
  2. //获取所属驿站
  3. export function getSiteList(params: any) {
  4. return request<any>(
  5. {
  6. url: "companyService/company/getSiteList",
  7. method: 'get',
  8. params: params,
  9. },
  10. {
  11. isNew: true,
  12. },
  13. );
  14. }
  15. //获取县区
  16. export function getRegionList(params: any) {
  17. return request<any>(
  18. {
  19. url: "system/area/getCityList",
  20. method: 'get',
  21. params: params,
  22. },
  23. {
  24. isNew: true,
  25. },
  26. );
  27. }
  28. //获取街道
  29. export function getStreeList(params: any) {
  30. return request<any>(
  31. {
  32. url: "system/area/getAreaList",
  33. method: 'get',
  34. params: params,
  35. },
  36. {
  37. isNew: true,
  38. },
  39. );
  40. }
  41. //提交添加
  42. export function saveCompanyPost(data:any){
  43. return request(
  44. {
  45. url:'companyService/company/saveAppCompanyPost',
  46. method:'post',
  47. data
  48. }
  49. )
  50. }
  51. //获取企业信息
  52. export function getCompanyList(params:any){
  53. return request({
  54. url:'companyService/company/getList',
  55. method:'get',
  56. params
  57. },{
  58. isNew:true
  59. })
  60. }
  61. //获取企业岗位信息
  62. export function getCompanyPostList(params:any){
  63. return request({
  64. url:'companyService/post/getList',
  65. method:'get',
  66. params
  67. },{
  68. isNew:true
  69. })
  70. }
  71. export function getCompanyById(id: string) {
  72. return request({
  73. url: 'companyService/company/getCompanyByID',
  74. method: 'get',
  75. params: {id}
  76. }, {
  77. isNew: true
  78. })
  79. }
  80. export function getCurrentDate() {
  81. const now = new Date();
  82. const year = now.getFullYear();
  83. const month = (now.getMonth() + 1).toString().padStart(2, '0');
  84. const day = now.getDate().toString().padStart(2, '0');
  85. const currentDate = `${year}-${month}-${day}`;
  86. return currentDate;
  87. }