table.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import { resultSuccess } from '../_util';
  2. const disasterList = [
  3. {
  4. id: 1001,
  5. disasterType: '台风',
  6. disasterLevel: 'IV级/一般',
  7. startTime: '2024-03-20 10:00:00',
  8. endTime: '2024-03-20 10:00:00',
  9. disasterMaterial: [
  10. {
  11. id: 1001,
  12. name: '台风灾害处置材料',
  13. type: 'word',
  14. link: '',
  15. },
  16. ],
  17. shouldCompleteTime: '2024-03-20 10:00:00',
  18. activeStatus: 1,
  19. taskStage: 0,
  20. },
  21. {
  22. id: 1002,
  23. disasterType: '台风',
  24. disasterLevel: 'IV级/一般',
  25. startTime: '2024-03-20 10:00:00',
  26. endTime: '2024-03-20 10:00:00',
  27. disasterMaterial: [
  28. {
  29. id: 1002,
  30. name: '台风灾害处置材料',
  31. type: 'ppt',
  32. link: '',
  33. },
  34. {
  35. id: 1003,
  36. name: '台讯前期安全检查方案',
  37. type: 'excel',
  38. link: '',
  39. },
  40. ],
  41. shouldCompleteTime: '2024-03-20 10:00:00',
  42. activeStatus: 0,
  43. taskStage: 0,
  44. },
  45. {
  46. id: 1003,
  47. disasterType: '台风',
  48. disasterLevel: 'IV级/一般',
  49. startTime: '2024-03-20 10:00:00',
  50. endTime: '2024-03-20 10:00:00',
  51. disasterMaterial: [
  52. {
  53. id: 1004,
  54. name: '台风灾害处置材料',
  55. type: 'pdf',
  56. link: '',
  57. },
  58. ],
  59. shouldCompleteTime: '2024-03-20 10:00:00',
  60. activeStatus: 2,
  61. taskStage: 1,
  62. },
  63. ];
  64. export default [
  65. {
  66. url: '/eye_api_bak/api/admin/disaster/getDisasterList',
  67. timeout: 1000,
  68. method: 'get',
  69. response: () => {
  70. return resultSuccess(disasterList);
  71. },
  72. },
  73. ];