index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <avue-crud
  3. :option="option">
  4. <template slot="menuLeft">
  5. <el-button type="primary"
  6. size="small"
  7. icon="el-icon-plus"
  8. @click="handleAdd"
  9. >
  10. 提交反馈
  11. </el-button>
  12. </template>
  13. <template slot="menu">
  14. <el-button type="text">回复</el-button>
  15. </template>
  16. </avue-crud>
  17. </template>
  18. <script>
  19. const TYPE_DICTS = [{
  20. label: '建议意见',
  21. value: 1
  22. }, {
  23. label: '技术服务问题',
  24. value: 2
  25. }, {
  26. label: '系统应用问题',
  27. value: 3
  28. }, {
  29. label: '其他',
  30. value: 4
  31. }];
  32. export default {
  33. name: "SystemFeedback",
  34. data() {
  35. return {
  36. option: {
  37. addBtn: false,
  38. border: true,
  39. index: true,
  40. menuWidth: 90,
  41. headerAlign: "center",
  42. column: [
  43. {
  44. label: "反馈类型",
  45. prop: "type",
  46. type: "select",
  47. width: 110,
  48. align: "center",
  49. search: true,
  50. dicData: TYPE_DICTS
  51. },
  52. {
  53. label: "详细描述",
  54. minWidth: 360,
  55. prop: "desc",
  56. overHidden: true
  57. },
  58. {
  59. label: "截图证明",
  60. prop: "message",
  61. minWidth: 300
  62. },
  63. {
  64. label: "反馈用户",
  65. prop: "createUser",
  66. search: true,
  67. width: 120,
  68. },
  69. {
  70. label: "反馈公司",
  71. prop: "createUser",
  72. search: true,
  73. width: 190,
  74. },
  75. {
  76. label: "反馈时间",
  77. align: "center",
  78. type: "date",
  79. prop: "createDate",
  80. search: true,
  81. width: 160
  82. },
  83. {
  84. label: "状态",
  85. align: "center",
  86. type: 'select',
  87. search: true,
  88. width: 120
  89. }
  90. ]
  91. }
  92. };
  93. },
  94. methods: {
  95. }
  96. };
  97. </script>
  98. <style lang="scss" scoped>
  99. .code {
  100. font-size: 12px;
  101. display: block;
  102. font-family: monospace;
  103. white-space: pre;
  104. margin: 1em 0px;
  105. }
  106. </style>