OperateLog.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. * 操作日志
  3. */
  4. Ext.define('school.view.setting.operatelog.OperateLog', {
  5. extend: 'school.view.core.base.BasePanel',
  6. xtype: 'setting-operatelog-operatelog',
  7. viewName: 'setting-operatelog-operatelog',
  8. dataUrl: '/api/commons/operatelog/list',
  9. initComponent: function () {
  10. var me = this;
  11. Ext.apply(this, {
  12. searchField: [{
  13. width: 110,
  14. name: 'obj',
  15. xtype: 'textfield',
  16. emptyText : '对象',
  17. }, {
  18. columnWidth: 0.5,
  19. name: 'time',
  20. xtype: 'condatefield',
  21. fieldLabel : '时间',
  22. labelWidth: 50
  23. }, {
  24. width: 110,
  25. name: 'man',
  26. xtype: 'textfield',
  27. emptyText : '操作人员',
  28. }],
  29. gridConfig: {
  30. dataUrl: me.dataUrl,
  31. actionColumn: [],
  32. selModel: {
  33. type: 'cellmodel'
  34. },
  35. hiddenTools: true,
  36. data: [],
  37. columns: [{
  38. text : "id",
  39. width : 0,
  40. dataIndex : "id",
  41. xtype : "numbercolumn",
  42. }, {
  43. text:'单据类型',
  44. dataIndex : "ml_name",
  45. width : 110.0,
  46. }, {
  47. text : "单据编号",
  48. width : 150.0,
  49. dataIndex : "ml_code",
  50. }, {
  51. text : "操作",
  52. dataIndex : "ml_content",
  53. width : 200.0,
  54. }, {
  55. xtype:'datecolumn',
  56. format:'Y-m-d H:i:s',
  57. text : "操作时间",
  58. dataIndex : "createTime",
  59. width : 150.0,
  60. }, {
  61. text : "结果",
  62. dataIndex : "ml_result",
  63. width : 150.0,
  64. }, {
  65. text : "操作人员",
  66. dataIndex : "ml_man",
  67. width : 110,
  68. }]
  69. },
  70. });
  71. this.callParent(arguments);
  72. }
  73. });