home.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2023-01-05 11:01:37
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-01-05 16:46:11
  6. * @FilePath: /BudgetManaSystem/mock/home.ts
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. export default {
  10. 'GET /performance/index': (req: any, res: any) => {
  11. res.json({
  12. success: true,
  13. data: [
  14. {
  15. id: 1,
  16. computeDate: '2022-09',
  17. code: 1,
  18. name: '月度结转',
  19. preCode: 0,
  20. sort: 1,
  21. status: 2,
  22. audit: '0',
  23. },
  24. {
  25. id: 1,
  26. computeDate: '2022-09',
  27. code: 1,
  28. name: '设置信息',
  29. preCode: 0,
  30. sort: 1,
  31. status: 2,
  32. audit: '0',
  33. },
  34. {
  35. id: 1,
  36. computeDate: '2022-09',
  37. code: 1,
  38. name: '绩效数据',
  39. preCode: 0,
  40. sort: 1,
  41. status: 1,
  42. audit: '0',
  43. },
  44. ],
  45. errorCode: 0,
  46. });
  47. },
  48. 'GET /performance/index/getCurrentComputeDate': (req: any, res: any) => {
  49. res.json({
  50. success: true,
  51. data: `${Math.random()}`,
  52. });
  53. },
  54. };