|
|
@@ -14,47 +14,52 @@ Ext.define('saas.view.sys.feedback.FormPanel', {
|
|
|
fieldDefaults: {
|
|
|
margin: '0 0 10 0',
|
|
|
labelAlign: 'right',
|
|
|
- labelWidth: 90,
|
|
|
- columnWidth: 0.25,
|
|
|
+ labelWidth: 70,
|
|
|
+ columnWidth: 0.5,
|
|
|
},
|
|
|
bodyPadding: 10,
|
|
|
border: false,
|
|
|
-
|
|
|
- items: [{
|
|
|
- xtype: 'hidden',
|
|
|
- name: 'id',
|
|
|
- fieldLabel: 'id',
|
|
|
- readOnly:true,
|
|
|
- defaultVale:saas.util.BaseUtil.getCurrentUser() ? saas.util.BaseUtil.getCurrentUser().id:null
|
|
|
- }, {
|
|
|
- xtype : "textfield",
|
|
|
- name : "fb_name",
|
|
|
- fieldLabel : "姓名",
|
|
|
- readOnly:true,
|
|
|
- defaultVale:saas.util.BaseUtil.getCurrentUser() ? saas.util.BaseUtil.getCurrentUser().realname:null
|
|
|
- }, {
|
|
|
- xtype : "textfield",
|
|
|
- name : "fb_mobile",
|
|
|
- fieldLabel : "手机号",
|
|
|
- defaultVale:saas.util.BaseUtil.getCurrentUser() ? saas.util.BaseUtil.getCurrentUser().mobile:null
|
|
|
- }, {
|
|
|
- xtype : "textfield",
|
|
|
- name : "fb_QQ",
|
|
|
- fieldLabel : "QQ"
|
|
|
- }, {
|
|
|
- xtype : "textfield",
|
|
|
- name : "fb_wechat",
|
|
|
- fieldLabel : "微信"
|
|
|
- }, {
|
|
|
- xtype : "htmleditor",
|
|
|
- name : "fb_msg",
|
|
|
- fieldLabel : "反馈内容",
|
|
|
- flex: 1
|
|
|
- }],buttons: [{
|
|
|
- text: '提交',
|
|
|
- handler:'onSubmit'
|
|
|
- },{
|
|
|
- text: '关闭',
|
|
|
- handler:'onClose'
|
|
|
- }]
|
|
|
+ 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 : "htmleditor",
|
|
|
+ name : "fb_msg",
|
|
|
+ fieldLabel : "反馈内容",
|
|
|
+ columnWidth: 1
|
|
|
+ }];
|
|
|
+ me.buttons = [{
|
|
|
+ text: '提交',
|
|
|
+ handler:'onSubmit'
|
|
|
+ },{
|
|
|
+ text: '关闭',
|
|
|
+ handler:'onClose'
|
|
|
+ }];
|
|
|
+ me.callParent(arguments);
|
|
|
+ }
|
|
|
+
|
|
|
});
|