CompanyAnalysis.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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/getCompanyAnalyze',
  20. columns: [{
  21. text: 'ID',
  22. dataIndex: 'ca_id',
  23. hidden: true
  24. }, {
  25. text: '企业ID',
  26. dataIndex: 'ca_companyid',
  27. hidden: true
  28. }, {
  29. text: '企业名称',
  30. dataIndex: 'ca_company',
  31. width: 200,
  32. renderer: function(v, m, r) {
  33. return '<span style="cursor: pointer; color: #3e80f6;">' + v + '</span>';
  34. },
  35. listeners: {
  36. click: function(tableView, td, rowIdx, colIdx, e, model, tr) {
  37. var data = model.data;
  38. saas.util.BaseUtil.openTab('companyinfo', data.ca_company , data.ca_id, {
  39. initId: data.ca_companyid
  40. });
  41. }
  42. }
  43. }, {
  44. text: '企业地址',
  45. dataIndex: 'ca_address',
  46. width: 200
  47. }, {
  48. text: '管理员',
  49. dataIndex: 'ca_admin'
  50. }, {
  51. text: '注册时间',
  52. dataIndex: 'ca_createtime',
  53. xtype: 'datecolumn',
  54. format: 'Y-m-d H:i:s',
  55. width: 150
  56. }, {
  57. text: '最近操作时间',
  58. dataIndex: 'ca_newestlogtime',
  59. xtype: 'datecolumn',
  60. format: 'Y-m-d H:i:s',
  61. width: 150
  62. }, {
  63. text: '目前阶段',
  64. dataIndex: 'ca_phase'
  65. }, {
  66. text: '使用状态',
  67. dataIndex: 'ca_status'
  68. }]
  69. },
  70. });
  71. this.callParent(arguments);
  72. }
  73. });