Home.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. xtype: 'infocard'
  24. }, {
  25. xtype: 'panel',
  26. title: '2018年11月经营分析',
  27. latyout: 'responsivecolumn',
  28. defaults: {
  29. cls: 'x-home-chart',
  30. margin: '0 0 0 14'
  31. },
  32. items: [{
  33. xtype: 'month-sale',
  34. userCls: 'big-33 small-50',
  35. }, {
  36. xtype: 'month-purchase',
  37. userCls: 'big-33 small-50',
  38. }, {
  39. xtype: 'core-chart-gauge',
  40. userCls: 'big-33 small-100',
  41. }]
  42. }, {
  43. title: '2018年11月经营分析',
  44. latyout: 'column',
  45. // items: [{
  46. // xtype: 'core-chart-line',
  47. // columnWidth: 0.33
  48. // }, {
  49. // xtype: 'core-chart-pie',
  50. // columnWidth: 0.33
  51. // }, {
  52. // xtype: 'core-chart-pie3d',
  53. // columnWidth: 0.33
  54. // }]
  55. }],
  56. items1: [{
  57. title: '2018年11月经营分析',
  58. userCls: 'big-50 small-100',
  59. items: [{
  60. xtype: 'core-chart-pie',
  61. columnWidth: 0.33,
  62. chartConfig: {
  63. captions: {
  64. credits: {
  65. text: 'Data: IDC Predictions - 2017\n' +
  66. 'Source: Internet',
  67. align: 'left'
  68. }
  69. },
  70. }
  71. }, {
  72. xtype: 'core-chart-bar',
  73. columnWidth: 0.33
  74. }, {
  75. xtype: 'core-chart-gauge',
  76. columnWidth: 0.33
  77. }]
  78. }, {
  79. title: '经营趋势分析',
  80. userCls: 'big-50 small-100',
  81. items: [{
  82. xtype: 'core-chart-line',
  83. columnWidth: 0.33
  84. }, {
  85. xtype: 'core-chart-pie',
  86. columnWidth: 0.33
  87. }, {
  88. xtype: 'core-chart-pie3d',
  89. columnWidth: 0.33
  90. }]
  91. }, {
  92. title: '待办事宜',
  93. userCls: 'big-100 small-100',
  94. items: [{
  95. xtype: 'core-chart-polar',
  96. columnWidth: 0.5
  97. }, {
  98. xtype: 'core-chart-stacked',
  99. columnWidth: 0.5
  100. }]
  101. }],
  102. });