table.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. import { resultSuccess } from '../_util';
  2. const taskManagement = [
  3. {
  4. id: 1001,
  5. taskName: '日常检查任务2024',
  6. selfCheckUnit: '安全生产部',
  7. taskType: '日常检查',
  8. shouldCompleteTime: '2024-03-20 10:00:00',
  9. activeStatus: 1,
  10. taskStage: 0,
  11. isOverdue: 0,
  12. },
  13. {
  14. id: 1002,
  15. taskName: '专项检查任务2025',
  16. selfCheckUnit: '运维部',
  17. taskType: '专项检查',
  18. shouldCompleteTime: '2024-03-25 15:30:00',
  19. activeStatus: 1,
  20. taskStage: 1,
  21. isOverdue: 0,
  22. },
  23. {
  24. id: 1003,
  25. taskName: '季度检查任务2026',
  26. selfCheckUnit: '技术部',
  27. taskType: '季度检查',
  28. shouldCompleteTime: '2024-06-30 18:00:00',
  29. activeStatus: 0,
  30. taskStage: 2,
  31. isOverdue: 0,
  32. },
  33. {
  34. id: 1004,
  35. taskName: '年度检查任务2027',
  36. selfCheckUnit: '工程部',
  37. taskType: '年度检查',
  38. shouldCompleteTime: '2024-12-31 23:59:59',
  39. activeStatus: 0,
  40. taskStage: 3,
  41. isOverdue: 0,
  42. },
  43. {
  44. id: 1005,
  45. taskName: '日常检查任务20295123458111111',
  46. selfCheckUnit: '质量部',
  47. taskType: '日常检查',
  48. shouldCompleteTime: '2024-03-21 14:00:00',
  49. activeStatus: 2,
  50. taskStage: 4,
  51. isOverdue: 1,
  52. },
  53. ];
  54. const taskExecutionDoing = [
  55. {
  56. id: 1001,
  57. taskName: '日常检查任务2024',
  58. selfCheckUnit: '安全生产部',
  59. taskType: '日常检查',
  60. shouldCompleteTime: '2024-03-20 10:00:00',
  61. activeStatus: 1,
  62. taskStage: 0,
  63. createTime: '2024-03-19 10:00:00',
  64. updateTime: '2024-03-19 10:00:00',
  65. isOverdue: 0,
  66. },
  67. {
  68. id: 1002,
  69. taskName: '专项检查任务2025',
  70. selfCheckUnit: '运维部',
  71. taskType: '专项检查',
  72. shouldCompleteTime: '2024-03-25 15:30:00',
  73. activeStatus: 1,
  74. taskStage: 0,
  75. createTime: '2024-03-19 11:00:00',
  76. updateTime: '2024-03-19 11:00:00',
  77. isOverdue: 0,
  78. },
  79. {
  80. id: 1003,
  81. taskName: '季度检查任务2026',
  82. selfCheckUnit: '技术部',
  83. taskType: '季度检查',
  84. shouldCompleteTime: '2024-06-30 18:00:00',
  85. activeStatus: 0,
  86. taskStage: 1,
  87. createTime: '2024-03-19 12:00:00',
  88. updateTime: '2024-03-19 12:00:00',
  89. isOverdue: 0,
  90. },
  91. {
  92. id: 1004,
  93. taskName: '年度检查任务2027',
  94. selfCheckUnit: '工程部',
  95. taskType: '年度检查',
  96. shouldCompleteTime: '2024-12-31 23:59:59',
  97. activeStatus: 0,
  98. taskStage: 2,
  99. createTime: '2024-03-19 13:00:00',
  100. updateTime: '2024-03-19 13:00:00',
  101. isOverdue: 0,
  102. },
  103. {
  104. id: 1005,
  105. taskName: '日常检查任务20295123458111111',
  106. selfCheckUnit: '质量部',
  107. taskType: '日常检查',
  108. shouldCompleteTime: '2024-03-21 14:00:00',
  109. activeStatus: 1,
  110. taskStage: 2,
  111. createTime: '2024-03-19 14:00:00',
  112. updateTime: '2024-03-19 16:00:00',
  113. isOverdue: 1,
  114. },
  115. ];
  116. const taskExecutionDone = [
  117. {
  118. id: 1001,
  119. taskName: '任务1',
  120. selfCheckUnit: '单位1',
  121. taskType: '类型1',
  122. shouldCompleteTime: '2021-01-01',
  123. submitTime: '2021-01-01',
  124. activeStatus: 1,
  125. taskStage: 0,
  126. isOverdue: 1,
  127. },
  128. {
  129. id: 1002,
  130. taskName: '任务2',
  131. selfCheckUnit: '单位2',
  132. taskType: '类型2',
  133. shouldCompleteTime: '2021-01-01',
  134. submitTime: '2021-01-01',
  135. activeStatus: 0,
  136. taskStage: 0,
  137. isOverdue: 1,
  138. },
  139. ];
  140. export default [
  141. {
  142. url: '/eye_api_bak/api/admin/task/getTaskManagementList',
  143. timeout: 1000,
  144. method: 'get',
  145. response: () => {
  146. return resultSuccess(taskManagement);
  147. },
  148. },
  149. {
  150. url: '/eye_api_bak/api/admin/task/getTaskDoingList',
  151. timeout: 1000,
  152. method: 'get',
  153. response: () => {
  154. return resultSuccess(taskExecutionDoing);
  155. },
  156. },
  157. {
  158. url: '/eye_api_bak/api/admin/task/getTaskDoneList',
  159. timeout: 1000,
  160. method: 'get',
  161. response: () => {
  162. return resultSuccess(taskExecutionDone);
  163. },
  164. },
  165. ];