Ext.define('saas.view.document.employee.BasePanel', { extend: 'saas.view.core.base.BasePanel', xtype: 'document-employee-basepanel', controller: 'document-employee-basepanel', viewModel: 'document-employee-basepanel', searchField:[{ xtype : "textfield", name : "em_code", emptyText : "账号", width:120 },{ xtype : "textfield", name : "em_name", emptyText : "姓名", width:120 },{ xtype : "textfield", name : "em_class", emptyText : "类型", width:100 }], //字段属性 _formXtype:'document-employee-formpanel', _title:'人员资料', _deleteUrl:'/api/document/employee/delete/', gridConfig: { idField: 'id', codeField: 'pr_code', statusCodeField:'pr_statuscode', dataUrl: '/api/document/employee/list', columns : [{ text : "id", width : 0, dataIndex : "id", xtype : "numbercolumn", },{ text : "账号", width : 200.0, dataIndex : "em_code", xtype : "", }, { text : "姓名", dataIndex : "em_name", width : 120.0, xtype : "", }, { text : "密码", dataIndex : "em_password", width : 120.0, xtype : "" }, { text : "类型", dataIndex : "em_class", width : 0, xtype : "" }, { text : "电话", dataIndex : "em_mobile", width : 120.0, xtype : "", }] }, refresh:function(){ this.items.items[0].store.load() } });