Ext.define('saas.view.sys.feedback.FormPanel', { extend: 'Ext.panel.Panel', xtype: 'sys-feedback-formpanel', controller: 'sys-feedback-formpanel', viewModel: 'sys-feedback-formpanel', viewName: 'sys-feedback-formpanel', caller:'feedBack', layout: 'column', autoScroll: true, fieldDefaults: { margin: '0 0 10 0', labelAlign: 'right', labelWidth: 70, columnWidth: 0.5, }, bodyPadding: 10, border: false, initComponent: function () { var me = this; me.items = [{ xtype: 'hidden', name: 'id', fieldLabel: 'id', readOnly:true, value:saas.util.BaseUtil.getCurrentUser() ? saas.util.BaseUtil.getCurrentUser().id:null }, { xtype : "textfield", name : "fb_name", fieldLabel : "姓名", readOnly:true, value:saas.util.BaseUtil.getCurrentUser() ? saas.util.BaseUtil.getCurrentUser().realname:null }, { xtype : "textfield", name : "fb_mobile", fieldLabel : "手机号", value:saas.util.BaseUtil.getCurrentUser() ? saas.util.BaseUtil.getCurrentUser().mobile:null }, { xtype : "textfield", name : "fb_QQ", fieldLabel : "QQ" }, { xtype : "textfield", name : "fb_wechat", fieldLabel : "微信" }, { xtype : "textfield", name : "fb_msg", fieldLabel : "反馈内容", columnWidth: 1 }]; me.buttons = [{ text: '提交', handler:'onSubmit' },{ text: '关闭', handler:'onClose' }]; me.callParent(arguments); } });