LoginLog.js 832 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * 登录日志
  3. */
  4. Ext.define('saas.view.statistical.LoginLog', {
  5. extend: 'saas.view.core.List',
  6. xtype: 'statistical-loginlog',
  7. viewModel: 'statistical',
  8. id: 'loginlog',
  9. columns: [{
  10. text: 'id',
  11. dataIndex: 'account_id',
  12. hidden: true
  13. }, {
  14. text: '用户名',
  15. dataIndex: 'username',
  16. width: 120
  17. }, {
  18. text: '手机号',
  19. dataIndex: 'mobile',
  20. width: 120
  21. }, {
  22. text: '近三月登录次数',
  23. dataIndex: 'login_num'
  24. }, {
  25. text: '最后登录时间',
  26. dataIndex: 'lastesttime',
  27. width: 180,
  28. xtype: 'datecolumn',
  29. renderer: function(v, m, r) {
  30. return Ext.Date.format(new Date(v), 'Y-m-d H:i:s');
  31. }
  32. }],
  33. bind: {
  34. store: '{loginlog}'
  35. }
  36. });