CompanyAnalysis.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. listeners: {
  34. click: function(tableView, td, rowIdx, colIdx, e, model, tr) {
  35. var data = model.data;
  36. saas.util.BaseUtil.openTab('companyinfo', data.ca_company , data.ca_id, {
  37. initId: data.ca_companyid
  38. });
  39. }
  40. }
  41. }, {
  42. text: '企业地址',
  43. dataIndex: 'ca_address',
  44. width: 200
  45. }, {
  46. text: '管理员',
  47. dataIndex: 'ca_admin'
  48. }, {
  49. text: '注册时间',
  50. dataIndex: 'ca_createtime',
  51. xtype: 'datecolumn',
  52. format: 'Y-m-d H:i:s',
  53. width: 150
  54. }, {
  55. text: '最近操作时间',
  56. dataIndex: 'ca_newestlogtime',
  57. xtype: 'datecolumn',
  58. format: 'Y-m-d H:i:s',
  59. width: 150
  60. }, {
  61. text: '目前阶段',
  62. dataIndex: 'ca_phase'
  63. }, {
  64. text: '使用状态',
  65. dataIndex: 'ca_status'
  66. }]
  67. },
  68. });
  69. this.callParent(arguments);
  70. }
  71. });