server.js 800 B

12345678910111213141516171819202122232425262728293031323334
  1. import { creatRequest } from '../../utils/request.js';
  2. const requestList = {
  3. // 查核组员列表
  4. getGroupEmpList: {
  5. method: 'GET',
  6. url: 'common/groupEmpList'
  7. },
  8. // 自查督查获取人员列表
  9. getZichaduchaEmpList: {
  10. method: 'GET',
  11. url: 'inspector/getDepartmentEmployee'
  12. },
  13. // 自查督查计划分配/修改保存
  14. saveZichaduchaPlanSet: {
  15. method: 'POST',
  16. url: 'inspector/saveSelfEmployee'
  17. },
  18. // 自查督查计划 批量 分配/修改保存
  19. batchSaveZichaduchaPlanSet: {
  20. method: 'POST',
  21. url: 'inspector/saveBatchSelfEmployee'
  22. },
  23. batchCheckEmp: {
  24. method: 'POST',
  25. url: 'plan/newDistribution'
  26. }
  27. };
  28. export const commServer = (key, data) => {
  29. let obj = requestList[key];
  30. console.log({key});
  31. return creatRequest(obj, data);
  32. }