log.data.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
  2. // CrudSchema
  3. const crudSchemas = reactive<VxeCrudSchema>({
  4. primaryKey: 'id',
  5. primaryTitle: '编号',
  6. primaryType: 'id',
  7. action: true,
  8. actionWidth: '70',
  9. columns: [
  10. {
  11. title: '发送时间',
  12. field: 'sendTime',
  13. table: {
  14. width: 180
  15. },
  16. formatter: 'formatDate',
  17. search: {
  18. show: true,
  19. itemRender: {
  20. name: 'XDataTimePicker'
  21. }
  22. }
  23. },
  24. {
  25. title: '接收邮箱',
  26. field: 'toMail',
  27. isSearch: true,
  28. table: {
  29. width: 180,
  30. slots: {
  31. default: 'toMail_default'
  32. }
  33. }
  34. },
  35. {
  36. title: '用户编号',
  37. field: 'userId',
  38. isSearch: true,
  39. isTable: false
  40. },
  41. {
  42. title: '用户类型',
  43. field: 'userType',
  44. dictType: DICT_TYPE.USER_TYPE,
  45. dictClass: 'number',
  46. isSearch: true,
  47. isTable: false
  48. },
  49. {
  50. title: '邮件标题',
  51. field: 'templateTitle'
  52. },
  53. {
  54. title: '邮件内容',
  55. field: 'templateContent',
  56. isTable: false
  57. },
  58. {
  59. title: '邮箱参数',
  60. field: 'templateParams',
  61. isTable: false
  62. },
  63. {
  64. title: '发送状态',
  65. field: 'sendStatus',
  66. dictType: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS,
  67. dictClass: 'string',
  68. isSearch: true
  69. },
  70. {
  71. title: '邮箱账号',
  72. field: 'accountId',
  73. isSearch: true,
  74. isTable: false,
  75. search: {
  76. slots: {
  77. default: 'accountId_search'
  78. }
  79. }
  80. },
  81. {
  82. title: '发送邮箱地址',
  83. field: 'fromMail',
  84. table: {
  85. title: '邮箱账号'
  86. }
  87. },
  88. {
  89. title: '模板编号',
  90. field: 'templateId',
  91. isSearch: true
  92. },
  93. {
  94. title: '模板编码',
  95. field: 'templateCode',
  96. isTable: false
  97. },
  98. {
  99. title: '模版发送人名称',
  100. field: 'templateNickname',
  101. isTable: false
  102. },
  103. {
  104. title: '发送返回的消息编号',
  105. field: 'sendMessageId',
  106. isTable: false
  107. },
  108. {
  109. title: '发送异常',
  110. field: 'sendException',
  111. isTable: false
  112. },
  113. {
  114. title: '创建时间',
  115. field: 'createTime',
  116. isTable: false
  117. }
  118. ]
  119. })
  120. export const { allSchemas } = useVxeCrudSchemas(crudSchemas)