KnowledgeMapLink.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Ext.define('erp.view.oa.knowledge.KnowledgeMapLink',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'anchor',
  10. defaults: {
  11. split: true
  12. },
  13. items: [{
  14. xtype: 'erpFormPanel',
  15. items:[
  16. {
  17. columnWidth:'0.08',
  18. html:'<div id="sidebar"><a href="javascript:Recommend();" style="text-decoration: none||blink;font-size:14px;text-align:left;font-weight: bold; ">知识推荐</a></div>',
  19. },{
  20. columnWidth:'0.08',
  21. html:'<div id="sidebar"><a href="javascript:Version();" style="text-decoration: none||blink;font-size:14px; font-weight: bold;">历史版本</a></div>',
  22. },{
  23. columnWidth:'0.08',
  24. html:'<div id="sidebar"><a href="javascript:Commont();" style="text-decoration: none||blink;font-size:14px; font-weight: bold;">添加评论</a></div>',
  25. },{
  26. columnWidth:'0.26',
  27. html:'<div></div>',
  28. },{
  29. text:'知识详情',
  30. fieldLabel:'知识详情',
  31. id:'knowledgedetails',
  32. labelStyle:'font-size:14px;font-weight: bold;',
  33. columnWidth:'0.5',
  34. readOnly:true,
  35. fieldStyle : 'background:#f0f0f0;border-bottom-style: 1px solid #8B8970;padding:2px 2px;vertical-align:middle;border-top:none;border-right:none;color:#CD661D;border-bottom-style:1px solid;border-left:none; ',
  36. }],
  37. setReadOnly: function(bool){
  38. this.readOnly = bool;
  39. },
  40. anchor: '100% 60%',
  41. saveUrl: 'oa/knowledge/saveKnowledge.action',
  42. deleteUrl:'oa/knowledge/deleteKnowledge.action',
  43. updateUrl:'oa/knowledge/updateKnowledge.action',
  44. getIdUrl: 'common/getId.action?seq=KNOWLEDGE_SEQ',
  45. keyField: 'kl_id',
  46. codeField:'kl_code',
  47. },{
  48. anchor: '100% 40%',
  49. region:'south',
  50. split: true,
  51. layout:'border',
  52. items: [{
  53. title:'<font color=#1C86EE;>知识点评</font>',
  54. region: 'center',
  55. caller:'KnowledgeComment',
  56. xtype:'erpKnowledgeMapLinkGrid',
  57. flex:1,
  58. split:true,
  59. }, {
  60. title: '<font color=#1C86EE; >相关知识</font>',
  61. region: 'east',
  62. caller:'KnowledgeMapping',
  63. xtype:'erpknowledgemappinggrid',
  64. width:'85%',
  65. split: true,
  66. }]
  67. }
  68. ]
  69. }]
  70. });
  71. me.callParent(arguments);
  72. }
  73. });