BasePanel.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. //字段属性
  23. _formXtype:'document-employee-formpanel',
  24. _title:'人员资料',
  25. _deleteUrl:'/api/document/employee/delete/',
  26. gridConfig: {
  27. idField: 'id',
  28. codeField: 'pr_code',
  29. statusCodeField:'pr_statuscode',
  30. dataUrl: '/api/document/employee/list',
  31. columns : [{
  32. text : "id",
  33. width : 0,
  34. dataIndex : "id",
  35. xtype : "numbercolumn",
  36. },{
  37. text : "账号",
  38. width : 200.0,
  39. dataIndex : "em_code",
  40. xtype : "",
  41. },
  42. {
  43. text : "姓名",
  44. dataIndex : "em_name",
  45. width : 120.0,
  46. xtype : "",
  47. },
  48. {
  49. text : "密码",
  50. dataIndex : "em_password",
  51. width : 120.0,
  52. xtype : ""
  53. },
  54. {
  55. text : "类型",
  56. dataIndex : "em_class",
  57. width : 0,
  58. xtype : ""
  59. },
  60. {
  61. text : "电话",
  62. dataIndex : "em_mobile",
  63. width : 120.0,
  64. xtype : "",
  65. }]
  66. },
  67. refresh:function(){
  68. this.items.items[0].store.load()
  69. }
  70. });