123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- /**
- * 个人注册数据
- */
- Ext.define('saas.view.statistical.PersonRegInfo', {
- extend: 'saas.view.core.base.BasePanel',
- xtype: 'statistical-personreginfo',
- initComponent: function () {
- Ext.apply(this, {
- searchField: [{
- xtype: "textfield",
- name: "username",
- emptyText: '用户名/手机号',
- getCondition: function (v) {
- return "(upper(CONCAT(username, '#', mobile) like '%" + v.toUpperCase() + "%'))";
- },
- }, {
- xtype: 'combobox',
- name: 'bind',
- fieldLabel: '绑定企业',
- queryMode: 'local',
- displayField: 'name',
- valueField: 'value',
- emptyText :'全部',
- editable:false,
- store: Ext.create('Ext.data.ArrayStore', {
- fields: ['value', 'name'],
- data: [
- ["ALL", "全部"],
- ["Y", "是"],
- ["N", "否"]
- ]
- }),
- getCondition: function(value) {
- if(value == 'ALL') {
- return '1=1';
- }else if(value == 'Y') {
- return 'bind > 0';
- }else if(value == 'N') {
- return 'bind = 0';
- }
- }
- }],
- gridConfig: {
- dataUrl: '/api/operation/data/getAccount',
- // dataUrl: 'http://10.1.80.35:9040/data/getAccount',
- columns: [{
- text: 'id',
- dataIndex: 'id',
- hidden: true
- }, {
- text: '账号',
- dataIndex: 'username',
- width: 120
- }, {
- text: '姓名',
- dataIndex: 'realname',
- width: 120
- }, {
- text: '邮箱',
- dataIndex: 'email',
- width: 180
- }, {
- text: '手机号',
- dataIndex: 'mobile',
- width: 120
- }, {
- text: '类型',
- dataIndex: 'type',
- width: 140,
- renderer: function(v, m, r) {
- return v == 1 ? '<span style="font-weight: bold;">管理员</span>' : '普通用户';
- }
- }, {
- text: '状态',
- dataIndex: 'enabled',
- align: 'center',
- width: 80,
- renderer: function(v, m, r) {
- return v == true ? '<span style="color: #81CB31;">启用</span>' : '<span style="color: #DD6550;">未启用</span>';
- }
- }, {
- text: '绑定企业',
- dataIndex: 'bind',
- align: 'center',
- width: 80,
- renderer: function(v, m, r) {
- return v > 0 ? '是' : '否';
- }
- }, {
- text: '注册时间',
- xtype: 'datecolumn',
- dataIndex: 'createTime',
- width: 180,
- renderer: function(v, m, r) {
- return Ext.Date.format(new Date(v), 'Y-m-d H:i:s');
- }
- }, {
- text: 'UU号',
- dataIndex: 'uu',
- width: 120
- }]
- },
- });
- this.callParent(arguments);
- }
- });
|