Home.js 2.9 KB

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