Home.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. Ext.define('saas.view.home.Home', {
  2. extend: 'Ext.container.Container',
  3. xtype: 'home',
  4. requires: [
  5. 'Ext.slider.Single',
  6. 'Ext.form.field.Display',
  7. 'Ext.layout.container.Border',
  8. 'Ext.ux.layout.ResponsiveColumn'
  9. ],
  10. controller: 'home',
  11. viewModel: {
  12. type: 'home'
  13. },
  14. cls: 'x-home-panel',
  15. layout: 'responsivecolumn',
  16. scrollable: true,
  17. defaults: {
  18. shadow: true,
  19. cls: 'x-home-box',
  20. userCls: 'big-100 small-100',
  21. },
  22. items: [{
  23. title: '实时数据',
  24. xtype: 'infocard'
  25. }, {
  26. xtype: 'panel',
  27. title: '2018年11月经营分析',
  28. latyout: 'column',
  29. // items: [{
  30. // xtype: 'core-chart-pie',
  31. // columnWidth: 0.33,
  32. // chartConfig: {
  33. // captions: {
  34. // credits: {
  35. // text: 'Data: IDC Predictions - 2017\n' +
  36. // 'Source: Internet',
  37. // align: 'left'
  38. // }
  39. // },
  40. // }
  41. // }, {
  42. // xtype: 'core-chart-bar',
  43. // columnWidth: 0.33
  44. // }, {
  45. // xtype: 'core-chart-gauge',
  46. // columnWidth: 0.33
  47. // }]
  48. }, {
  49. title: '2018年11月经营分析',
  50. latyout: 'column',
  51. // items: [{
  52. // xtype: 'core-chart-line',
  53. // columnWidth: 0.33
  54. // }, {
  55. // xtype: 'core-chart-pie',
  56. // columnWidth: 0.33
  57. // }, {
  58. // xtype: 'core-chart-pie3d',
  59. // columnWidth: 0.33
  60. // }]
  61. }],
  62. items1: [{
  63. title: '2018年11月经营分析',
  64. userCls: 'big-50 small-100',
  65. items: [{
  66. xtype: 'core-chart-pie',
  67. columnWidth: 0.33,
  68. chartConfig: {
  69. captions: {
  70. credits: {
  71. text: 'Data: IDC Predictions - 2017\n' +
  72. 'Source: Internet',
  73. align: 'left'
  74. }
  75. },
  76. }
  77. }, {
  78. xtype: 'core-chart-bar',
  79. columnWidth: 0.33
  80. }, {
  81. xtype: 'core-chart-gauge',
  82. columnWidth: 0.33
  83. }]
  84. }, {
  85. title: '经营趋势分析',
  86. userCls: 'big-50 small-100',
  87. items: [{
  88. xtype: 'core-chart-line',
  89. columnWidth: 0.33
  90. }, {
  91. xtype: 'core-chart-pie',
  92. columnWidth: 0.33
  93. }, {
  94. xtype: 'core-chart-pie3d',
  95. columnWidth: 0.33
  96. }]
  97. }, {
  98. title: '待办事宜',
  99. userCls: 'big-100 small-100',
  100. items: [{
  101. xtype: 'core-chart-polar',
  102. columnWidth: 0.5
  103. }, {
  104. xtype: 'core-chart-stacked',
  105. columnWidth: 0.5
  106. }]
  107. }],
  108. });