CompanyAnalysis.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * 企业分析
  3. */
  4. Ext.define('saas.view.statistical.CompanyAnalysis', {
  5. extend: 'saas.view.core.base.BasePanel',
  6. xtype: 'statistical-companyanalysis',
  7. initComponent: function () {
  8. Ext.apply(this, {
  9. searchField: [{
  10. xtype: "textfield",
  11. name: "ca_company",
  12. emptyText: '企业名称'
  13. }, {
  14. xtype: 'textfield',
  15. name: 'ca_admin',
  16. emptyText: '管理员'
  17. }],
  18. gridConfig: {
  19. dataUrl: '/api/operation/data/getConpanyAnalyze',
  20. // dataUrl: 'http://10.1.80.35:9040/data/getConpanyAnalyze',
  21. columns: [{
  22. text: 'ID',
  23. dataIndex: 'ca_id',
  24. hidden: true
  25. }, {
  26. text: '企业ID',
  27. dataIndex: 'ca_companyid',
  28. hidden: true
  29. }, {
  30. text: '企业名称',
  31. dataIndex: 'ca_company',
  32. width: 200,
  33. renderer: function(v, m, r) {
  34. return '<span style="cursor: pointer; color: #3e80f6;">' + v + '</span>';
  35. },
  36. listeners: {
  37. click: function(tableView, td, rowIdx, colIdx, e, model, tr) {
  38. var data = model.data;
  39. saas.util.BaseUtil.openTab('companyinfo', data.ca_company , data.ca_id, {
  40. initId: data.ca_companyid
  41. });
  42. }
  43. }
  44. }, {
  45. text: '企业地址',
  46. dataIndex: 'ca_address',
  47. width: 200
  48. }, {
  49. text: '管理员',
  50. dataIndex: 'ca_admin'
  51. }, {
  52. text: '注册时间',
  53. dataIndex: 'ca_createtime',
  54. xtype: 'datecolumn',
  55. format: 'Y-m-d H:i:s',
  56. width: 150
  57. }, {
  58. text: '最近操作时间',
  59. dataIndex: 'ca_newestlogtime',
  60. xtype: 'datecolumn',
  61. format: 'Y-m-d H:i:s',
  62. width: 150
  63. }, {
  64. text: '目前阶段',
  65. dataIndex: 'ca_phase'
  66. }, {
  67. text: '使用状态',
  68. dataIndex: 'ca_status'
  69. }]
  70. },
  71. });
  72. this.callParent(arguments);
  73. }
  74. });