PersonInfo.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * 个人注册数据
  3. */
  4. Ext.define('saas.view.statistical.PersonInfo', {
  5. extend: 'saas.view.core.List',
  6. xtype: 'statistical-personinfo',
  7. viewModel: 'statistical',
  8. id: 'personinfo',
  9. columns: [{
  10. text: 'id',
  11. dataIndex: 'id',
  12. hidden: true
  13. }, {
  14. text: '账号',
  15. dataIndex: 'username',
  16. width: 120
  17. }, {
  18. text: '姓名',
  19. dataIndex: 'realname',
  20. width: 120
  21. }, {
  22. text: '邮箱',
  23. dataIndex: 'email',
  24. width: 180
  25. }, {
  26. text: '手机号',
  27. dataIndex: 'mobile',
  28. width: 120
  29. }, {
  30. text: '类型',
  31. dataIndex: 'type',
  32. width: 140,
  33. renderer: function(v, m, r) {
  34. return v == 1 ? '<span style="font-weight: bold;">管理员</span>' : '普通用户';
  35. }
  36. }, {
  37. text: '状态',
  38. dataIndex: 'enabled',
  39. width: 80,
  40. renderer: function(v, m, r) {
  41. return v == true ? '<span style="color: #81CB31;">正常</span>' : '<span style="color: #DD6550;">禁用</span>';
  42. }
  43. }, {
  44. text: '注册时间',
  45. xtype: 'datecolumn',
  46. dataIndex: 'createTime',
  47. width: 180,
  48. renderer: function(v, m, r) {
  49. return Ext.Date.format(new Date(v), 'Y-m-d h:i:s');
  50. }
  51. }, {
  52. text: 'UU号',
  53. dataIndex: 'uu',
  54. width: 120
  55. }],
  56. bind: {
  57. store: '{personinfo}'
  58. }
  59. });