project.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { request } from "@/utils/request";
  2. /**
  3. * 项目管理接口集合
  4. * @method Record 记录列表
  5. * @method Details 记录详情
  6. * @method ReadFlag 记录已读
  7. * @method ProjectsList 项目下拉
  8. * @method Insert 项目提交
  9. */
  10. export function projectApi() {
  11. return {
  12. Record(data) {
  13. return request({
  14. url: "/service-iot/pmWorkContent/page",
  15. method: "GET",
  16. data: data,
  17. });
  18. },
  19. Details(data) {
  20. return request({
  21. url: "/service-iot/pmWorkContent/reportRecord",
  22. method: "GET",
  23. data: data,
  24. });
  25. },
  26. ReadFlag(data) {
  27. return request({
  28. url: "/service-iot/pmReceive/updateReadFlag",
  29. method: "GET",
  30. data: data,
  31. });
  32. },
  33. ProjectsList(data) {
  34. return request({
  35. url: '/service-iot/pmProject/projects',
  36. method: 'get',
  37. data: data
  38. })
  39. },
  40. Insert(data) {
  41. return request({
  42. url: '/service-iot/pmWorkReport/add',
  43. method: 'POST',
  44. data: data
  45. })
  46. }
  47. };
  48. }