/** * 企业分析 */ Ext.define('saas.view.statistical.CompanyAnalysis', { extend: 'saas.view.core.base.BasePanel', xtype: 'statistical-companyanalysis', initComponent: function () { Ext.apply(this, { searchField: [{ xtype: "textfield", name: "ca_company", emptyText: '企业名称' }, { xtype: 'textfield', name: 'ca_admin', emptyText: '管理员' }], gridConfig: { dataUrl: '/api/operation/data/getCompanyAnalyze', columns: [{ text: 'ID', dataIndex: 'ca_id', hidden: true }, { text: '企业ID', dataIndex: 'ca_companyid', hidden: true }, { text: '企业名称', dataIndex: 'ca_company', width: 200, renderer: function(v, m, r) { return '' + v + ''; }, listeners: { click: function(tableView, td, rowIdx, colIdx, e, model, tr) { var data = model.data; saas.util.BaseUtil.openTab('companyinfo', data.ca_company , data.ca_id, { initId: data.ca_companyid }); } } }, { text: '企业地址', dataIndex: 'ca_address', width: 200 }, { text: '管理员', dataIndex: 'ca_admin' }, { text: '注册时间', dataIndex: 'ca_createtime', xtype: 'datecolumn', format: 'Y-m-d H:i:s', width: 150 }, { text: '最近操作时间', dataIndex: 'ca_newestlogtime', xtype: 'datecolumn', format: 'Y-m-d H:i:s', width: 150 }, { text: '目前阶段', dataIndex: 'ca_phase' }, { text: '使用状态', dataIndex: 'ca_status' }] }, }); this.callParent(arguments); } });