12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /**
- * 企业分析
- */
- 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 '<span style="cursor: pointer; color: #3e80f6;">' + v + '</span>';
- },
- 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);
- }
- });
|