Feedback.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /**
  2. * 在线反馈
  3. */
  4. Ext.define('saas.view.cuservice.Feedback', {
  5. extend: 'saas.view.core.base.BasePanel',
  6. xtype: 'cuservice-feedback',
  7. initComponent: function () {
  8. Ext.apply(this, {
  9. searchField: [{
  10. xtype: "textfield",
  11. name: "cf_name",
  12. width: 300,
  13. emptyText: '反馈人/反馈内容',
  14. getCondition: function (v) {
  15. return "(upper(CONCAT(cf_name, '#', cf_content) like '%" + v.toUpperCase() + "%' ))";
  16. },
  17. }, {
  18. xtype: 'condatefield',
  19. name: 'cf_creatime',
  20. columnWidth: 0.4
  21. }],
  22. gridConfig: {
  23. dataUrl: '/api/operation/customerFeedBack/list',
  24. // dataUrl: 'http://10.1.80.35:9040/customerFeedBack/list',
  25. columns: [{
  26. text: 'id',
  27. dataIndex: 'cf_id',
  28. hidden: true
  29. }, {
  30. text: '反馈人',
  31. dataIndex: 'cf_name',
  32. width: 120
  33. }, {
  34. text: '反馈时间',
  35. dataIndex: 'cf_creatime',
  36. width: 180,
  37. renderer: function(v, m, r) {
  38. return Ext.Date.format(new Date(v), 'Y-m-d H:i:s');
  39. }
  40. }, {
  41. text: '反馈内容',
  42. width: 250,
  43. dataIndex: 'cf_content'
  44. }, {
  45. text: '状态',
  46. dataIndex: 'cf_status',
  47. width: 80
  48. }, {
  49. text: '企业id',
  50. dataIndex: 'cf_companyid',
  51. hidden: true
  52. }, {
  53. text: '企业名',
  54. dataIndex: 'cf_company',
  55. width: 120
  56. }, {
  57. text: '联系电话',
  58. dataIndex: 'cf_mobile',
  59. width: 120
  60. }, {
  61. text: 'QQ',
  62. dataIndex: 'cf_qq',
  63. width: 120
  64. }, {
  65. text: '微信',
  66. dataIndex: 'cf_wechat',
  67. width: 120
  68. }, {
  69. text: '备注',
  70. dataIndex: 'cf_remark',
  71. width: 250
  72. }]
  73. },
  74. });
  75. this.callParent(arguments);
  76. }
  77. });