KnowledgeRankForm.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Ext.define('erp.view.oa.knowledge.KnowledgeRankForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.erpKnowledgeRankFormPanel',
  4. id: 'rankform',
  5. region: 'north',
  6. frame : true,
  7. header: false,//不显示title
  8. layout : 'column',
  9. autoScroll : true,
  10. defaultType : 'textfield',
  11. labelSeparator : ':',
  12. buttonAlign : 'center',
  13. fieldDefaults : {
  14. margin : '2 2 2 2',
  15. labelAlign : "right",
  16. blankText : $I18N.common.form.blankText
  17. },
  18. FormUtil: Ext.create('erp.util.FormUtil'),
  19. items:[
  20. {
  21. columnWidth:'1',
  22. fieldStyle : 'background:#CDCDB4 ;border-bottom-style:1px solid;padding:2px 2px;vertical-align:middle;border-top:none;border-right:none;color:#CDCDB4;border-bottom-style:none;border-left:none; ',
  23. }
  24. ,{
  25. columnWidth:'0.2',
  26. fieldLabel:'知识排行',
  27. id:'rankfield',
  28. labelStyle:'font-size:16px;font-weight: bold;',
  29. fieldStyle : 'background:#CDCDB4 ;border-bottom-style:1px solid;padding:2px 2px;vertical-align:middle;border-top:none;border-right:none;color:#CD661D;border-bottom-style:1px solid;border-left:none;font-weight: bold; ',
  30. },{
  31. columnWidth:0.1,
  32. html:'<div></div>'
  33. },
  34. {
  35. columnWidth:'0.1',
  36. html:'<div id="sidebar"><a href="javascript:order(1);" style="text-decoration: none||blink;font-size:16px;text-align:left;font-weight: bold; ">最新知识</a></div>',
  37. },{
  38. columnWidth:'0.1',
  39. html:'<div id="sidebar"><a href="javascript:order(2);" style="text-decoration: none||blink;font-size:16px; font-weight: bold;">热门点击</a></div>',
  40. },{
  41. columnWidth:'0.1',
  42. html:'<div id="sidebar"><a href="javascript:order(3);" style="text-decoration: none||blink;font-size:16px; font-weight: bold;">强力推荐</a></div>',
  43. },{
  44. columnWidth:'0.1',
  45. html:'<div id="sidebar"><a href="javascript:order(4);" style="text-decoration: none||blink;font-size:16px;font-weight: bold; ">最佳知识</a></div>',
  46. }],
  47. initComponent : function(){
  48. this.callParent(arguments);
  49. },
  50. order:function(ind){
  51. alert('ind');
  52. }
  53. });