123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- Ext.define('erp.view.ma.help.HelpDoc',{
- extend: 'Ext.Viewport',
- layout: 'border',
- hideBorders: true,
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items:[{
- xtype : 'erpTreePanel',
- dockedItems : null,
- region : 'west',
- width : '28%',
- height : '100%',
- maxWidth:300,
- useArrows: false,
- bodyStyle: null
- },{
- xtype : 'container',
- region : 'center',
- layout : 'border',
- items : [ {
- xtype : 'form',
- keyField:'CALLER_',
- id:'docform',
- region : 'center',
- autoScroll: true,
- title : '帮助文档',
- layout: 'column',
- bodyStyle : 'background:#f9f9f9;padding:5px 5px 0',
- defaults: {
- columnWidth: 1,
- margin: '4 18 4 18'
- },
- items:[{
- xtype:'textfield',
- name:'CALLER_',
- fieldLabel:'页面CALLER',
- readOnly:true,
- allowBlank:false,
- maxWidth:300
- },{
- xtype:'mfilefield',
- fieldLabel:'选择文件',
- name:'PATH_',
- allowBlank:false
- },{
- xtype:'textfield',
- fieldLabel:'流水号',
- name:'VERSION_',
- maxWidth:200
- },{
- xtype:'textfield',
- fieldLabel:'关键字',
- name:'KEYWORDS_',
- allowBlank:false
- },{
- xtype:'textareafield',
- fieldLabel:'文档概述',
- name:'DESC_',
- allowBlank:false
- }],
- buttonAlign: 'center',
- buttons: [{
- text: '保存',
- itemId: 'btn-save',
- formBind:true
- },{
- text:'查看',
- id:'btn-scan',
- disabled:true
- },{
- text: '关闭',
- id: 'btn-close'
- }]
- }, {
- xtype: 'grid',
- title: '更新日志',
- id:'log-grid',
- region : 'south',
- height: window.innerHeight*0.62,
- bodyStyle : 'background:#f9f9f9',
- border: false,
- collapsible: true,
- collapseDirection: 'bottom',
- collapsed: true,
- columnLines:true,
- columns:[{
- text:'版本号',
- dataIndex:'VERSION_'
- },{
- text:'更新人',
- dataIndex:'MAN_'
- },{
- text:'更新时间',
- dataIndex:'DATE_',
- width:150
- }],
- store:Ext.create('Ext.data.Store',{
- fields:['VERSION_','MAN_','DATE_'],
- proxy:{
- method:'get',
- type:'ajax',
- url:basePath+'ma/help/getDocLogs.action',
- reader: {
- type: 'json',
- root: 'logs'
- }
- }
- })
- } ]
- } ]
- });
- me.callParent(arguments);
- }
- });
|