project.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import { request } from "@/utils/request";
  2. /**
  3. * 项目管理接口集合
  4. * @method ReportRecord 报告记录列表
  5. * @method ReportRecordDetails 报告记录详情
  6. * @method ReportRecordReadFlag 报告记录已读
  7. * @method ReportInsert 报告提交
  8. * @method ProjectsSelect 项目下拉
  9. * @method ProjectsWeekList 导入上一篇
  10. * @method ProjectsList 项目列表
  11. * @method ProjectsInsertUpdate 项目新增
  12. * @method ProjectsDelete 项目删除
  13. * @method ProjectsExit 项目退出
  14. * @method ProjectsJoin 项目加入
  15. */
  16. export function projectApi() {
  17. return {
  18. ReportRecord(data) {
  19. return request({
  20. url: "/service-iot/pmWorkContent/page",
  21. method: "GET",
  22. data: data,
  23. });
  24. },
  25. ReportRecordDetails(data) {
  26. return request({
  27. url: "/service-iot/pmWorkContent/reportRecord",
  28. method: "GET",
  29. data: data,
  30. });
  31. },
  32. ReportRecordReadFlag(data) {
  33. return request({
  34. url: "/service-iot/pmReceive/updateReadFlag",
  35. method: "GET",
  36. data: data,
  37. });
  38. },
  39. ReportInsert(data) {
  40. return request({
  41. url: '/service-iot/pmWorkReport/add',
  42. method: 'POST',
  43. data: data
  44. })
  45. },
  46. ReportDelete(params) {
  47. return request({
  48. url: '/service-iot/pmWorkReport/del/' + params,
  49. method: 'delete',
  50. })
  51. },
  52. ProjectsSelect(data) {
  53. return request({
  54. url: '/service-iot/pmProject/projects',
  55. method: 'GET',
  56. data: data
  57. })
  58. },
  59. ProjectsWeekList(data) {
  60. return request({
  61. url: '/service-iot/pmWorkReport/week',
  62. method: 'GET',
  63. data: data
  64. })
  65. },
  66. ProjectsList(data) {
  67. return request({
  68. url: '/service-iot/pmProject/page',
  69. method: 'GET',
  70. data: data
  71. })
  72. },
  73. ProjectsInsertUpdate(data) {
  74. return request({
  75. url: '/service-iot/pmProject/add',
  76. method: 'POST',
  77. data: data
  78. })
  79. },
  80. ProjectsDelete(param) {
  81. return request({
  82. url: '/service-iot/pmProject/del?projectId=' + param,
  83. method: 'GET',
  84. })
  85. },
  86. ProjectsExit(param) {
  87. return request({
  88. url: '/service-iot/pmProject/exitProject?projectId=' + param,
  89. method: 'GET',
  90. })
  91. },
  92. ProjectsJoin(param) {
  93. return request({
  94. url: '/service-iot/pmProject/joinProject?projectId=' + param,
  95. method: 'GET',
  96. })
  97. },
  98. TimedReports() {
  99. return request({
  100. url: '/service-iot/pmWorkReport/timedReports',
  101. method: 'GET',
  102. })
  103. }
  104. }
  105. }