OperateLog.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/school/messagelog/list',
  9. initComponent: function () {
  10. var me = this;
  11. Ext.apply(this, {
  12. searchField: [{
  13. columnWidth: 0.5,
  14. name: 'createTime',
  15. xtype: 'condatefield',
  16. fieldLabel : '时间',
  17. labelWidth: 50
  18. }, {
  19. width: 110,
  20. name: 'ml_man',
  21. xtype: 'textfield',
  22. emptyText : '操作人员',
  23. }],
  24. gridConfig: {
  25. dataUrl: me.dataUrl,
  26. actionColumn: [],
  27. selModel: {
  28. type: 'cellmodel'
  29. },
  30. hiddenTools: true,
  31. data: [],
  32. columns: [{
  33. text : "id",
  34. width : 0,
  35. dataIndex : "id",
  36. xtype : "numbercolumn",
  37. }, {
  38. text:'单据类型',
  39. dataIndex : "ml_name",
  40. width : 110.0,
  41. }, {
  42. text : "操作",
  43. dataIndex : "ml_content",
  44. width : 200.0,
  45. }, {
  46. xtype:'datecolumn',
  47. format:'Y-m-d H:i:s',
  48. text : "操作时间",
  49. dataIndex : "createTime",
  50. width : 150.0,
  51. }, {
  52. text : "结果",
  53. dataIndex : "ml_result",
  54. width : 150.0,
  55. }, {
  56. text : "操作人员",
  57. dataIndex : "ml_man",
  58. width : 110,
  59. }]
  60. },
  61. });
  62. this.callParent(arguments);
  63. }
  64. });