FormPanel.js 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Ext.define('saas.view.sys.guide.FormPanel', {
  2. extend: 'Ext.panel.Panel',
  3. xtype: 'sys-guide-formpanel',
  4. layout:'fit',
  5. cls:'x-guide-background',
  6. // bodyStyle: {
  7. // background: 'url(resources/images/guide/background.png)'
  8. // },
  9. initComponent: function () {
  10. var me = this;
  11. var view = new Ext.DataView({
  12. style:"margin:7% 0 7% 0;",
  13. tpl : new Ext.XTemplate(
  14. '<div class="x-guide-panel" align ="center">',
  15. '<div class="x-guide-item" align ="center" >',
  16. '<img cls="afterLine" src="resources/images/guide/baseSet.png" style="margin:0 185px 0 0;" align ="center" width="135" height="90" data-qtip="基础设置" alt="基础设置" onClick="" >',
  17. '<img src="resources/images/guide/warehouse.png" style="margin:0 185px 0 0;" align ="center" width="135" height="90" data-qtip="仓库资料" alt="仓库资料" onClick="" >',
  18. '<img src="resources/images/guide/product.png" align ="center" width="135" height="90" data-qtip="物料资料" alt="物料资料" onClick="" >',
  19. '</div>',
  20. '<div class="x-guide-item" align ="center">',
  21. '<img src="resources/images/guide/1.png" style="margin: -20px 290px 0 0;" align ="center" width="32" height="32" >',
  22. '<img src="resources/images/guide/2.png" style="margin: -20px 290px 0 0;" align ="center" width="32" height="32" >',
  23. '<img src="resources/images/guide/3.png" style="margin: -20px 0px 0 0;" align ="center" width="32" height="32" >',
  24. '</div>',
  25. '<div class="x-guide-item" align ="center">',
  26. '<span style="margin:0 270px 0px 0;" align ="center" >基础设置</span>',
  27. '<span style="margin:0 270px 0px 0;" align ="center" >仓库资料</span>',
  28. '<span style="margin:0 0px 0px 0;" align ="center" >物料资料</span>',
  29. '</div>',
  30. '<div class="x-guide-item" align ="center">',
  31. '<img src="resources/images/guide/point.png" style="margin: 2px 306px 0 0;" align ="center" width="16" height="16" >',
  32. '<img src="resources/images/guide/point.png" style="margin: 2px 306px 0 0;" align ="center" width="16" height="16" >',
  33. '<img src="resources/images/guide/point.png" style="margin: 2px 0px 0 0;" align ="center" width="16" height="16" >',
  34. "<br>",
  35. '<div class="x-guide-line" height="1" style="border:1px solid #E4F7FF;margin: -9px 0 0 0;width: 654px !important;" align ="center"></div>',
  36. '</div>',
  37. '<div class="x-guide-item" align ="center">',
  38. '<img src="resources/images/guide/customer.png" style="margin:50px 185px 0 0;" align ="center" width="135" height="90" data-qtip="客户资料" alt="客户资料" onClick="" >',
  39. '<img src="resources/images/guide/vendor.png" style="margin:50px 185px 0 0;" align ="center" width="135" height="90" data-qtip="供应商资料" alt="供应商资料" onClick="" >',
  40. '<img src="resources/images/guide/begin.png" style="margin:50px 0 0 0;" align ="center" width="135" height="90" data-qtip="开始使用" alt="开始使用" onClick="" >',
  41. '</div>',
  42. '<div class="x-guide-item" align ="center">',
  43. '<img src="resources/images/guide/4.png" style="margin: -20px 290px 0 0;" align ="center" width="32" height="32" >',
  44. '<img src="resources/images/guide/5.png" style="margin: -20px 290px 0 0;" align ="center" width="32" height="32" >',
  45. '<img src="resources/images/guide/6.png" style="margin: -20px 0px 0 0;" align ="center" width="32" height="32" >',
  46. '</div>',
  47. '<div class="x-guide-item" align ="center">',
  48. '<span style="margin:0 265px 100px 0;" align ="center" >客户资料</span>',
  49. '<span style="margin:0 265px 100px 0;" align ="center" >供应商资料</span>',
  50. '<span style="margin:0 0px 100px 0;" align ="center" >开始使用</span>',
  51. '</div>',
  52. '<div class="x-guide-item" align ="center">',
  53. '<img src="resources/images/guide/point.png" style="margin: 2px 306px 0 0;" align ="center" width="16" height="16" >',
  54. '<img src="resources/images/guide/point.png" style="margin: 2px 306px 0 0;" align ="center" width="16" height="16" >',
  55. '<img src="resources/images/guide/point.png" style="margin: 2px 0px 0 0;" align ="center" width="16" height="16" >',
  56. "<br>",
  57. '<div class="x-guide-line" height="1" style="border:1px solid #E4F7FF;margin: -9px 0 0 0;width: 654px !important;" align ="center"></div>',
  58. '</div>',
  59. '</div>'
  60. ),
  61. trackOver: true,
  62. overItemCls : 'x-module-over',
  63. selectedClass : 'selected',
  64. singleSelect : true,
  65. itemSelector : '.x-module-item'
  66. });
  67. Ext.apply(me,{
  68. items:[view]
  69. });
  70. me.view = view;
  71. me.callParent(arguments);
  72. },
  73. refresh:function(){
  74. this.ownerCt.setTitle('新手指引')
  75. }
  76. });