onDutyConfiguration.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request from '@/utils/request'
  2. //查询值班列表
  3. export function getListYmd(query) {
  4. return request({
  5. url: '/laboratory/XxpDuty/listYmd',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. //添加值班人员
  11. export function addXxpDuty(data) {
  12. return request({
  13. url: '/laboratory/XxpDuty',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. //值班人员详情接口
  19. export function getInfoByDate(query) {
  20. return request({
  21. url: '/laboratory/XxpDuty/getInfoByDate',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. //删除值班人员
  27. export function delXxpDuty(id) {
  28. return request({
  29. url: '/laboratory/XxpDuty/'+id,
  30. method: 'delete',
  31. })
  32. }
  33. //获取树状实验室列表接口
  34. export function treeDeptSubSel(query) {
  35. return request({
  36. url: '/system/dept/treeDeptSubSel',
  37. method: 'get',
  38. params: query
  39. })
  40. }
  41. //获取实验室可选值班人员列表
  42. export function getUserDutyList(query) {
  43. return request({
  44. url: '/system/user/getUserDutyList',
  45. method: 'get',
  46. params: query
  47. })
  48. }