Home.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. ],
  9. controller: 'home',
  10. viewModel: {
  11. type: 'chartsmodel'
  12. },
  13. layout: 'responsivecolumn',
  14. scrollable: true,
  15. defaults: {
  16. shadow: true,
  17. xtype: 'panel',
  18. layout: 'column',
  19. cls: 'x-home-panel',
  20. userCls: 'big-100 small-100',
  21. },
  22. items: [{
  23. title: '实时数据',
  24. xtype: 'infocard',
  25. infoData: [{
  26. title: '七天内待出货销售',
  27. content: '168件',
  28. color: 'yellow',
  29. }, {
  30. title: '七天内待入库采购',
  31. content: '168件',
  32. color: 'purple',
  33. }, {
  34. title: '七天内代付款',
  35. content: '168件',
  36. color: 'red',
  37. }, {
  38. title: '七天内代收款',
  39. content: '168件',
  40. color: 'yellow',
  41. }, {
  42. title: '未审核验收',
  43. content: '168件'
  44. }, {
  45. title: '七天内待出货销售',
  46. content: '168件'
  47. }, {
  48. title: '未审核出货',
  49. content: '168件'
  50. }]
  51. }, {
  52. title: '2018年11月经营分析',
  53. latyout: 'column',
  54. // items: [{
  55. // xtype: 'core-chart-pie',
  56. // columnWidth: 0.33,
  57. // chartConfig: {
  58. // captions: {
  59. // credits: {
  60. // text: 'Data: IDC Predictions - 2017\n' +
  61. // 'Source: Internet',
  62. // align: 'left'
  63. // }
  64. // },
  65. // }
  66. // }, {
  67. // xtype: 'core-chart-bar',
  68. // columnWidth: 0.33
  69. // }, {
  70. // xtype: 'core-chart-gauge',
  71. // columnWidth: 0.33
  72. // }]
  73. }, {
  74. title: '2018年11月经营分析',
  75. latyout: 'column',
  76. // items: [{
  77. // xtype: 'core-chart-line',
  78. // columnWidth: 0.33
  79. // }, {
  80. // xtype: 'core-chart-pie',
  81. // columnWidth: 0.33
  82. // }, {
  83. // xtype: 'core-chart-pie3d',
  84. // columnWidth: 0.33
  85. // }]
  86. }],
  87. items1: [{
  88. title: '2018年11月经营分析',
  89. userCls: 'big-50 small-100',
  90. items: [{
  91. xtype: 'core-chart-pie',
  92. columnWidth: 0.33,
  93. chartConfig: {
  94. captions: {
  95. credits: {
  96. text: 'Data: IDC Predictions - 2017\n' +
  97. 'Source: Internet',
  98. align: 'left'
  99. }
  100. },
  101. }
  102. }, {
  103. xtype: 'core-chart-bar',
  104. columnWidth: 0.33
  105. }, {
  106. xtype: 'core-chart-gauge',
  107. columnWidth: 0.33
  108. }]
  109. }, {
  110. title: '经营趋势分析',
  111. userCls: 'big-50 small-100',
  112. items: [{
  113. xtype: 'core-chart-line',
  114. columnWidth: 0.33
  115. }, {
  116. xtype: 'core-chart-pie',
  117. columnWidth: 0.33
  118. }, {
  119. xtype: 'core-chart-pie3d',
  120. columnWidth: 0.33
  121. }]
  122. }, {
  123. title: '待办事宜',
  124. userCls: 'big-100 small-100',
  125. items: [{
  126. xtype: 'core-chart-polar',
  127. columnWidth: 0.5
  128. }, {
  129. xtype: 'core-chart-stacked',
  130. columnWidth: 0.5
  131. }]
  132. }],
  133. });