| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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
- },{
- xtype : "textfield",
- name : "name",
- 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",
- },
- {
- text : "姓名",
- dataIndex : "em_name",
- width : 180.0,
- },
- {
- text : "密码",
- dataIndex : "em_password",
- width : 180.0,
- },
- {
- text : "类型",
- dataIndex : "em_class",
- width : 120.0,
- hidden : true,
- },
- {
- text : "电话",
- dataIndex : "em_mobile",
- width : 120.0,
- }]
- },
- refresh:function(){
- this.items.items[0].store.load()
- }
- });
|