tableData.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /**
  2. * index:序号
  3. * txt:正常数据
  4. * img:图片
  5. * txtChange:判断显示不同字段
  6. * text:文字比较多的情况、获取使用其他标签(没有的需要自己配置)
  7. */
  8. // export const A1tableCFu = (type: "video" | "poster") => {
  9. // return [
  10. // ["index", "序号"],
  11. // ["txt", "标题", "name"]
  12. // ["img", type === "video" ? "视频封面" : "海报", "thumb"],
  13. // ["txtChange", "自动播放", "display", { 0: "否", 1: "是" }],
  14. // ["text", "创建日期",'description', 50,A],
  15. // ];
  16. export const A1tableC = [
  17. ['txt', '轮播图标题', 'title', 'titleB'],
  18. ['img', '轮播图封面', 'imgTh', 'imgThB'],
  19. ['txt', '链接', 'url', 'urlB'],
  20. ['txt', '发布日期', 'publish', 'publishB'],
  21. ['txtChange', '状态', 'status', { 0: '预发布', 1: '发布' }],
  22. ['sort', '排序', 'sort']
  23. ]
  24. export const A4tableC = [
  25. ['txt', '标题', 'title', 'titleB'],
  26. ['img', '封面', 'indexImgTh', 'indexImgThB'],
  27. ['txt', '摘要', 'remark', 'remarkB'],
  28. ['txt', '发布日期', 'publish', 'publishB'],
  29. ['txtChange', '状态', 'status', { 0: '预发布', 1: '发布' }]
  30. ]
  31. export const A6tableC = [
  32. ['txt', '展览标题', 'title', 'titleB'],
  33. ['txtChange', '展览类型', 'type', { 1: '室内展览', 2: '室外展览' }],
  34. ['img', '展览封面', 'imgTh', 'imgThB'],
  35. ['txt', '摘要', 'remark', 'remarkB'],
  36. ['txt', '发布日期', 'publish', 'publishB'],
  37. ['txtChange', '状态', 'status', { 0: '预发布', 1: '发布' }]
  38. ]
  39. export const A7tableC = [
  40. ['txt', '标题', 'title', 'titleB'],
  41. ['txtChange', '类别', 'type', { 1: '平面纸质类', 2: '棉麻丝绸类', 3: '专业器物类' }],
  42. ['txt', '级别', 'level', 'levelB'],
  43. ['txt', '质地', 'texture', 'textureB'],
  44. ['txt', '年代', 'era', 'eraB'],
  45. ['img', '封面', 'imgTh', 'imgThB'],
  46. ['txt', '简介', 'remark', 'remarkB'],
  47. ['txt', '发布日期', 'publish', 'publishB'],
  48. ['txtChange', '状态', 'status', { 0: '预发布', 1: '发布' }]
  49. ]
  50. export const B1tableC = [
  51. ['txtNormal', '申请时间', 'createTime'],
  52. ['txtNormal', '姓名', 'userName'],
  53. ['txtNormal', '联系电话', 'phone'],
  54. ['txtNormal', '人数', 'pcs'],
  55. ['txtNormal', '预约日期', 'appointmentTime'],
  56. ['txtNormal', '预约时段', 'time']
  57. ]
  58. export const B2tableC = [
  59. ['txtNormal', '申请时间', 'createTime'],
  60. ['txtNormal', '姓名', 'userName'],
  61. ['txtNormal', '活动名称', 'activityTitle'],
  62. ['txtNormal', '联系电话', 'phone'],
  63. ['txtNormal', '身份证', 'idCard'],
  64. ['txtNormal', '预约日期', 'appointmentTime']
  65. ]
  66. export const C1tableC = [
  67. ['txt', '时段', 'time'],
  68. ['txt', '周一', 'monday'],
  69. ['txt', '周二', 'tuesday'],
  70. ['txt', '周三', 'wednesday'],
  71. ['txt', '周四', 'thursday'],
  72. ['txt', '周五', 'friday'],
  73. ['txt', '周六', 'saturday'],
  74. ['txt', '周日', 'sunday']
  75. ]
  76. export const D1tableC = [
  77. ['txt', '提交时间', 'createTime'],
  78. ['txt', '姓名', 'name'],
  79. ['txt', '邮箱', 'email'],
  80. ['txt', '标题', 'title'],
  81. ['txt', '内容', 'content']
  82. ]
  83. export const Z1tableC = [
  84. ['txt', '用户名', 'userName'],
  85. ['txt', '角色', 'roleNames'],
  86. ['txt', '创建日期', 'createTime']
  87. ]
  88. export const Z2tableC = [
  89. ['index', '序号'],
  90. ['txt', '账号', 'userName'],
  91. ['txt', '操作日期', 'createTime'],
  92. ['txt', 'IP记录', 'ip'],
  93. ['txt', '操作模块', 'type'],
  94. ['txt', '操作事件', 'description']
  95. ]