BasePanel.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. xtype : "",
  46. },
  47. {
  48. text : "姓名",
  49. dataIndex : "em_name",
  50. width : 120.0,
  51. xtype : "",
  52. },
  53. {
  54. text : "密码",
  55. dataIndex : "em_password",
  56. width : 120.0,
  57. xtype : ""
  58. },
  59. {
  60. text : "类型",
  61. dataIndex : "em_class",
  62. width : 0,
  63. xtype : ""
  64. },
  65. {
  66. text : "电话",
  67. dataIndex : "em_mobile",
  68. width : 120.0,
  69. xtype : "",
  70. }]
  71. },
  72. refresh:function(){
  73. this.items.items[0].store.load()
  74. }
  75. });