AdwebProduct.data.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { rules } from '/@/utils/helper/validator';
  4. import { render } from '/@/utils/common/renderUtils';
  5. import { getWeekMonthQuarterYear } from '/@/utils';
  6. //列表数据
  7. export const columns: BasicColumn[] = [
  8. {
  9. title: '创建人',
  10. align: 'center',
  11. dataIndex: 'createBy',
  12. },
  13. {
  14. title: '创建日期',
  15. align: 'center',
  16. dataIndex: 'createTime',
  17. },
  18. {
  19. title: '更新人',
  20. align: 'center',
  21. dataIndex: 'updateBy',
  22. },
  23. {
  24. title: '更新日期',
  25. align: 'center',
  26. dataIndex: 'updateTime',
  27. },
  28. {
  29. title: '站点code',
  30. align: 'center',
  31. dataIndex: 'siteCode',
  32. },
  33. {
  34. title: 'mq生产时间',
  35. align: 'center',
  36. dataIndex: 'requestTime',
  37. },
  38. {
  39. title: 'wp产品ID',
  40. align: 'center',
  41. dataIndex: 'productId',
  42. },
  43. {
  44. title: 'wp产品类型,adwebpro or woocommerce',
  45. align: 'center',
  46. dataIndex: 'productType',
  47. },
  48. {
  49. title: 'wp产品操作类型, add, edit, delete',
  50. align: 'center',
  51. dataIndex: 'actionType',
  52. },
  53. {
  54. title: 'wp产品名称',
  55. align: 'center',
  56. dataIndex: 'productName',
  57. },
  58. {
  59. title: 'wp产品中文名称',
  60. align: 'center',
  61. dataIndex: 'productsNameZh',
  62. },
  63. {
  64. title: 'wp产品封面图',
  65. align: 'center',
  66. dataIndex: 'productImage',
  67. },
  68. {
  69. title: 'wp产品图库',
  70. align: 'center',
  71. dataIndex: 'productGalleryImage',
  72. },
  73. {
  74. title: 'wp产品分类',
  75. align: 'center',
  76. dataIndex: 'categoryName',
  77. },
  78. {
  79. title: 'wp产品作者',
  80. align: 'center',
  81. dataIndex: 'authorName',
  82. },
  83. ];
  84. // 高级查询数据
  85. export const superQuerySchema = {
  86. createBy: { title: '创建人', order: 0, view: 'text', type: 'string' },
  87. createTime: { title: '创建日期', order: 1, view: 'datetime', type: 'string' },
  88. updateBy: { title: '更新人', order: 2, view: 'text', type: 'string' },
  89. updateTime: { title: '更新日期', order: 3, view: 'datetime', type: 'string' },
  90. siteCode: { title: '站点code', order: 4, view: 'text', type: 'string' },
  91. requestTime: { title: 'mq生产时间', order: 5, view: 'text', type: 'string' },
  92. productId: { title: 'wp产品ID', order: 6, view: 'number', type: 'number' },
  93. productType: { title: 'wp产品类型,adwebpro or woocommerce', order: 7, view: 'text', type: 'string' },
  94. actionType: { title: 'wp产品操作类型, add, edit, delete', order: 8, view: 'text', type: 'string' },
  95. productName: { title: 'wp产品名称', order: 9, view: 'text', type: 'string' },
  96. productsNameZh: { title: 'wp产品中文名称', order: 10, view: 'text', type: 'string' },
  97. productImage: { title: 'wp产品封面图', order: 11, view: 'text', type: 'string' },
  98. productGalleryImage: { title: 'wp产品图库', order: 12, view: 'text', type: 'string' },
  99. categoryName: { title: 'wp产品分类', order: 13, view: 'text', type: 'string' },
  100. authorName: { title: 'wp产品作者', order: 14, view: 'text', type: 'string' },
  101. };