tableData.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. // ["txt", "创建日期", "createTime"],
  15. // ];
  16. // };
  17. export const A1tableC = [
  18. ["txt", "ID", "id"],
  19. // ["txt", "手机号", "phone"],
  20. ["txt", "昵称", "nickName"],
  21. ["txt", "注册日期", "createTime"],
  22. ["txt", "爱心币", "score"],
  23. ];
  24. export const A1tableClook = [
  25. ["txt", "时间", "createTime"],
  26. ["txt", "类型", "type"],
  27. ["txt", "爱心币", "score"],
  28. ["text", "说明", "description", 50],
  29. ];
  30. export const A2tableC1 = [
  31. ["txt", "行为", "name"],
  32. ["txt", "奖励爱心币", "score"],
  33. ["txt", "说明", "description"],
  34. ];
  35. export const A2tableC2 = [
  36. ["txt", "动植物", "name"],
  37. ["txt", "成熟周期(天)", "cycle"],
  38. ["txt", "奖励爱心币", "score"],
  39. ["txt", "说明", "description"],
  40. ];
  41. export const A2tableC3 = [
  42. ["txt", "游戏名称", "name"],
  43. ["txt", "时限(秒)", "cycle"],
  44. ["txt", "奖励爱心币", "score"],
  45. ["txt", "单日奖励上限", "dayLimit"],
  46. ["txt", "奖励说明", "description"],
  47. ];
  48. export const A3tableC = [
  49. ["txt", "时间", "createTime"],
  50. ["txt", "用户名", "creatorName"],
  51. ["txt", "类型", "type"],
  52. ["txt", "爱心币", "score"],
  53. ["text", "说明", "description", 50],
  54. ];
  55. export const A4tableC = [
  56. ["txt", "奖品名称", "name"],
  57. ["img", "封面", "thumb"],
  58. ["txt", "所需爱心币", "score"],
  59. ["txt", "库存", "stock"],
  60. ["txt", "登记日期", "recordDate"],
  61. ["txtChange", "状态", "isEnabled", { 0: "下架", 1: "上架" }],
  62. ];
  63. export const A5tableC = [
  64. ["txt", "时间", "createTime"],
  65. ["txt", "用户名", "creatorName"],
  66. ["txt", "兑换奖品", "prizeName"],
  67. ["txt", "爱心币记录", "score"],
  68. ["txt", "称呼", "name"],
  69. ["text", "联系方式", "phone", 50],
  70. ["text", "地址和留言", "description", 50],
  71. ];
  72. export const A6tableC = [
  73. ["txt", "时间", "createTime"],
  74. ["txt", "称呼", "name"],
  75. ["txt", "联系方式", "phone"],
  76. ["text", "反馈内容", "content", 50],
  77. ];
  78. export const A7tableC1 = [
  79. ["txt", "人物姓名", "name"],
  80. ["text", "人物简介", "description",50],
  81. ["img", "人物肖像", "thumb"],
  82. ["txt", "采访主题", "dictName"],
  83. ["txt", "排序值", "sort"],
  84. ];
  85. export const A7tableC2 = [
  86. ["txt", "刊物标题", "name"],
  87. ["img", "刊物封面", "thumb"],
  88. ["txt", "发布日期", "publishDate"],
  89. ];
  90. export const A7tableCtheme = [["txt", "采访主题", "name"]];
  91. export const Z1tableC = [
  92. ["txt", "用户名", "userName"],
  93. ["txtChange", "角色", "isAdmin", { 1: "管理员", 0: "普通成员" }],
  94. ["txt", "真实姓名", "realName"],
  95. ["txt", "创建日期", "createTime"],
  96. ];
  97. export const Z2tableC = [
  98. ["index", "序号"],
  99. ["txt", "账号", "userName"],
  100. ["txt", "操作日期", "createTime"],
  101. ["txt", "IP记录", "ip"],
  102. ["txt", "操作模块", "type"],
  103. ["txt", "操作事件", "description"],
  104. ];