| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- Ext.define('saas.view.sys.feedback.FormPanel', {
- extend: 'Ext.form.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 16 0',
- labelAlign: 'right',
- labelWidth: 70,
- columnWidth: 0.5,
- },
- bodyPadding: '0 30 0 30',
- border: false,
- initComponent: function () {
- var me = this;
- me.items = [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'id',
- readOnly:true,
- bind: '{account.id}'
- }, {
- xtype : "textfield",
- name : "name",
- fieldLabel : "姓名",
- readOnly:true,
- bind: '{account.realname}'
- }, {
- xtype : "textfield",
- name : "mobile",
- fieldLabel : "手机号",
- // regex:/^1(3|4|5|7|8|9)\d{9}$/,
- // regexText:'请输入正确的手机号码',
- bind: '{account.mobile}'
- }, {
- xtype : "textfield",
- name : "qq",
- fieldLabel : "QQ"
- }, {
- xtype : "textfield",
- name : "wechat",
- fieldLabel : "微信"
- }, {
- xtype : "textareafield",
- name : "content",
- fieldLabel : "反馈内容",
- allowBlank: false,
- beforeLabelTextTpl: "<font color=\"red\" style=\"position:relative; top:2px;right:2px; font-weight: bolder;\">*</font>",
- columnWidth: 1,
- height: 63,
- maxHeight: 63
- }];
- me.buttonAlign = 'center';
- me.buttons = [{
- text: '提交',
- margin: '0 20 0 20',
- formBind: true,
- handler:'onSubmit'
- },{
- text: '关闭',
- margin: '0 20 0 20',
- handler:'onClose'
- }];
- me.callParent(arguments);
- }
-
- });
|