BasePanel.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Ext.define('saas.view.document.employee.BasePanel', {
  2. extend: 'saas.view.core.base.BasePanel',
  3. xtype: 'document-employee-basepanel',
  4. controller: 'document-employee-basepanel',
  5. viewModel: 'document-employee-basepanel',
  6. searchField:[{
  7. xtype : "textfield",
  8. name : "em_code",
  9. emptyText : "账号",
  10. width:120
  11. },{
  12. xtype : "textfield",
  13. name : "em_name",
  14. emptyText : "姓名",
  15. width:120
  16. },{
  17. xtype : "textfield",
  18. name : "em_class",
  19. emptyText : "类型",
  20. width:100
  21. },{
  22. xtype : "textfield",
  23. name : "name",
  24. emptyText : "角色",
  25. width:100
  26. }],
  27. //字段属性
  28. _formXtype:'document-employee-formpanel',
  29. _title:'人员资料',
  30. _deleteUrl:'/api/document/employee/delete/',
  31. gridConfig: {
  32. idField: 'id',
  33. codeField: 'pr_code',
  34. statusCodeField:'pr_statuscode',
  35. dataUrl: '/api/document/employee/list',
  36. columns : [{
  37. text : "id",
  38. width : 0,
  39. dataIndex : "id",
  40. xtype : "numbercolumn",
  41. },{
  42. text : "账号",
  43. width : 200.0,
  44. dataIndex : "em_code",
  45. },
  46. {
  47. text : "姓名",
  48. dataIndex : "em_name",
  49. width : 180.0,
  50. },
  51. {
  52. text : "密码",
  53. dataIndex : "em_password",
  54. width : 180.0,
  55. },
  56. {
  57. text : "类型",
  58. dataIndex : "em_class",
  59. width : 120.0,
  60. hidden : true,
  61. },
  62. {
  63. text : "电话",
  64. dataIndex : "em_mobile",
  65. width : 120.0,
  66. }]
  67. },
  68. refresh:function(){
  69. this.items.items[0].store.load()
  70. }
  71. });