PersonRegInfo.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * 个人注册数据
  3. */
  4. Ext.define('saas.view.statistical.PersonRegInfo', {
  5. extend: 'saas.view.core.base.BasePanel',
  6. xtype: 'statistical-personreginfo',
  7. initComponent: function () {
  8. Ext.apply(this, {
  9. searchField: [{
  10. xtype: "textfield",
  11. name: "username",
  12. emptyText: '用户名/手机号',
  13. getCondition: function (v) {
  14. return "(upper(CONCAT(username, '#', mobile) like '%" + v.toUpperCase() + "%'))";
  15. },
  16. }],
  17. gridConfig: {
  18. // dataUrl: '/api/operation/data/getAccount',
  19. dataUrl: 'http://10.1.80.35:9040/data/getAccount',
  20. columns: [{
  21. text: 'id',
  22. dataIndex: 'id',
  23. hidden: true
  24. }, {
  25. text: '账号',
  26. dataIndex: 'username',
  27. width: 120
  28. }, {
  29. text: '姓名',
  30. dataIndex: 'realname',
  31. width: 120
  32. }, {
  33. text: '邮箱',
  34. dataIndex: 'email',
  35. width: 180
  36. }, {
  37. text: '手机号',
  38. dataIndex: 'mobile',
  39. width: 120
  40. }, {
  41. text: '类型',
  42. dataIndex: 'type',
  43. width: 140,
  44. renderer: function(v, m, r) {
  45. return v == 1 ? '<span style="font-weight: bold;">管理员</span>' : '普通用户';
  46. }
  47. }, {
  48. text: '状态',
  49. dataIndex: 'enabled',
  50. width: 80,
  51. renderer: function(v, m, r) {
  52. return v == true ? '<span style="color: #81CB31;">正常</span>' : '<span style="color: #DD6550;">禁用</span>';
  53. }
  54. }, {
  55. text: '注册时间',
  56. xtype: 'datecolumn',
  57. dataIndex: 'createTime',
  58. width: 180,
  59. renderer: function(v, m, r) {
  60. return Ext.Date.format(new Date(v), 'Y-m-d H:i:s');
  61. }
  62. }, {
  63. text: 'UU号',
  64. dataIndex: 'uu',
  65. width: 120
  66. }]
  67. },
  68. });
  69. this.callParent(arguments);
  70. }
  71. });