dashboard.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import { routerRedux } from 'dva/router'
  2. import * as service from '../services/index'
  3. import { delay } from '../utils/baseUtils'
  4. import URLS from '../constants/url'
  5. export default {
  6. namespace: 'dashboard',
  7. state: {
  8. newOne: {},
  9. myDynamicDashboardList: [{ //Dynamic Dashboard指看板(动态)
  10. dashboardID: 1,
  11. type: 'dynamic',
  12. title: 'Card 1',
  13. url: '',
  14. description: 'Description 1',
  15. coverImg:'https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png',
  16. coverAlt: '',
  17. avatar: ''
  18. },{
  19. dashboardID: 2,
  20. type: 'dynamic',
  21. title: 'Card 2',
  22. url: '',
  23. description: 'Description 1',
  24. coverImg:'https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png',
  25. coverAlt: '',
  26. avatar:{}
  27. },{
  28. dashboardID: 3,
  29. type: 'dynamic',
  30. title: 'Card 3',
  31. url: '',
  32. description: 'Description 1',
  33. coverImg:'https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png',
  34. coverAlt: '',
  35. avatar:{}
  36. }
  37. ],
  38. myStaticDashboardList: [{ //Static Dashboard指报告(静态)
  39. dashboardID: 4,
  40. type: 'static',
  41. title: 'Card 4',
  42. url: '',
  43. description: 'Description 1',
  44. coverImg:'https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png',
  45. coverAlt: '',
  46. avatar:{}
  47. },{
  48. dashboardID: 5,
  49. type: 'static',
  50. title: 'Card 5',
  51. url: '',
  52. description: 'Description 1',
  53. coverImg:'https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png',
  54. coverAlt: '',
  55. avatar:{}
  56. }
  57. ],
  58. myRecentDashboardList: [ //最近打开的Dashboard
  59. ]
  60. },
  61. }