table.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { resultSuccess } from '../_util';
  2. const emergencySupplyList = {
  3. records: [
  4. {
  5. id: 1,
  6. emergencyType: 'flood_typhoon_prevention',
  7. supplyType: 'protective',
  8. supplyName: '雨衣',
  9. requiredQuantity: 100,
  10. currentQuantity: 50,
  11. unit: '件',
  12. park: 'zhangjiang',
  13. location: '10号楼',
  14. keeperName: '张三',
  15. expirationDate: '2025-05-23 10:00',
  16. status: 1,
  17. supplementQuantity: 50,
  18. remark: '需要补充50件雨衣',
  19. },
  20. {
  21. id: 2,
  22. emergencyType: 'fire',
  23. supplyType: 'rescue',
  24. supplyName: '救生衣',
  25. requiredQuantity: 150,
  26. currentQuantity: 150,
  27. unit: '件',
  28. park: 'dachang',
  29. location: '7号楼',
  30. keeperName: '李四',
  31. expirationDate: '2025-05-23 10:00',
  32. status: 0,
  33. supplementQuantity: 0,
  34. remark: '无需补充',
  35. },
  36. ],
  37. totalRow: 2,
  38. };
  39. export default [
  40. {
  41. url: '/safety_mock_api/emergencySupplies/queryEmergencySuppliesInfoPage',
  42. timeout: 500,
  43. method: 'post',
  44. response: () => {
  45. return resultSuccess(emergencySupplyList);
  46. },
  47. },
  48. ];