| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /**
- * 登录日志
- */
- Ext.define('saas.view.statistical.LoginLog', {
- extend: 'saas.view.core.base.BasePanel',
- xtype: 'statistical-loginlog',
- initComponent: function () {
- Ext.apply(this, {
- searchField: [{
- xtype: "textfield",
- name: "username",
- emptyText: '用户名/手机号',
- getCondition: function (v) {
- return "(upper(CONCAT(username, '#', mobile) like '%" + v.toUpperCase() + "%' ))";
- },
- }],
- gridConfig: {
- dataUrl: '/api/operation/data/getLogin',
- // dataUrl: 'http://10.1.80.35:9040/data/getLogin',
- columns: [{
- text: 'id',
- dataIndex: 'account_id',
- hidden: true
- }, {
- text: '用户名',
- dataIndex: 'username',
- width: 120
- }, {
- text: '手机号',
- dataIndex: 'mobile',
- width: 120
- }, {
- text: '近三月登录次数',
- dataIndex: 'login_num',
- width: 120
- }, {
- text: '最后登录时间',
- dataIndex: 'lastesttime',
- width: 180,
- xtype: 'datecolumn',
- renderer: function(v, m, r) {
- return Ext.Date.format(new Date(v), 'Y-m-d H:i:s');
- }
- }]
- },
- });
- this.callParent(arguments);
- }
- });
|