server.js 516 B

1234567891011121314151617181920212223242526272829
  1. import {
  2. creatRequest
  3. } from '../../utils/request.js';
  4. const requestList = {
  5. // 改善任务列表
  6. getMissionList: {
  7. method: 'GET',
  8. url: 'imed/pfm/improverTask/list'
  9. },
  10. // 改善任务详情
  11. getMissionDetails: {
  12. method: 'GET',
  13. url: 'imed/pfm/improverTask/detail'
  14. },
  15. // 查询部门人员树 (通用接口)
  16. getEmpDeptTree: {
  17. method: 'GET',
  18. url: 'imed/pfm/common/empDeptTree'
  19. }
  20. };
  21. export const commServer = ({
  22. key,
  23. data
  24. }) => {
  25. let obj = requestList[key];
  26. return creatRequest(obj, data);
  27. }