tableData.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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', '书名', 'name'],
  18. ['img', '封面', 'thumb'],
  19. ['txt', '作者', 'author'],
  20. ['txt', '出版社', 'press'],
  21. ['txt', '中图法分类', 'storageName'],
  22. ['txt', '展示分类', 'exhibitTypeName'],
  23. ['txt', 'ISBN编号', 'num'],
  24. ['txt', '排序值', 'sort'],
  25. ['txt', '编辑人', 'creatorName'],
  26. ['txt', '编辑时间', 'updateTime']
  27. ]
  28. export const A2tableY1 = [
  29. ['img', '封面', 'thumb'],
  30. ['text', '正文', 'description', 50],
  31. ['txt', '排序值', 'sort'],
  32. ['txt', '编辑人', 'creatorName'],
  33. ['txt', '编辑时间', 'updateTime']
  34. ]
  35. export const A2tableY2 = [
  36. ['txt', '标题', 'name'],
  37. ['img', '视频封面', 'thumb'],
  38. ['text', '简介', 'description', 50],
  39. ['txt', '附件', 'fileName'],
  40. ['txt', '排序值', 'sort'],
  41. ['txt', '编辑人', 'creatorName'],
  42. ['txt', '编辑时间', 'updateTime']
  43. ]
  44. export const A2tableC = [
  45. ['txt', '分类名称', 'name'],
  46. ['txt', '排序值', 'sort'],
  47. ['txt', '编辑人', 'creatorName'],
  48. ['txt', '编辑时间', 'updateTime']
  49. ]
  50. export const A3tableC = [
  51. ['txt', '书名', 'name'],
  52. ['img', '封面', 'thumb'],
  53. ['txt', '作者', 'author'],
  54. ['txt', '出版社', 'press'],
  55. ['txt', 'ISBN编号', 'num'],
  56. ['txt', '排序值', 'sort'],
  57. ['txt', '编辑人', 'creatorName'],
  58. ['txt', '编辑时间', 'updateTime']
  59. ]
  60. export const A4tableC = [
  61. ['txt', '用户ID', 'openId'],
  62. ['txt', '用户昵称', 'nickName'],
  63. ['img', '用户头像', 'avatarUrl'],
  64. ['txt', '注册时间', 'createTime'],
  65. ['txt', '最近登录时间', 'lastLoginTime'],
  66. ['txt', '最近登录IP', 'lastIp']
  67. ]
  68. export const A5tableC = [
  69. ['txt', '书名', 'name'],
  70. ['img', '封面', 'thumb'],
  71. ['txt', '作者', 'author'],
  72. ['txt', '出版社', 'press'],
  73. ['txt', 'ISBN编号', 'num'],
  74. ['txt', '提交人', 'wxUserName'],
  75. ['txt', '提交时间', 'createTime'],
  76. ['txtChange', '审核状态', 'auditStatus', { 0: '待审核', 1: '审核通过', 2: '审核驳回' }],
  77. ['text', '审核备注', 'auditDesc', 50]
  78. ]
  79. export const A6tableC = [
  80. ['txt', '书名', 'bookName'],
  81. ['text', '评论内容', 'content', 50],
  82. ['txtChange', '审核状态', 'auditStatus', { 0: '待审核', 1: '审核通过', 2: '审核驳回' }],
  83. ['txt', '提交人', 'createBy'],
  84. ['txt', '提交时间', 'createTime']
  85. ]
  86. export const A7tableC = [
  87. ['txt', '标题', 'name'],
  88. ['txt', '公告类型', 'dictName'],
  89. ['txt', '排序值', 'sort'],
  90. ['txt', '编辑人', 'creatorName']
  91. ]
  92. export const A7tableCtype = [
  93. ['txt', '类型名称', 'name'],
  94. ['txt', '排序值', 'sort']
  95. ]
  96. export const Z1tableC = [
  97. ['txt', '用户名', 'userName'],
  98. ['txtChange', '角色', 'isAdmin', { 1: '管理员', 0: '普通成员' }],
  99. ['txt', '真实姓名', 'realName'],
  100. ['txt', '手机号', 'phone'],
  101. ['txt', '创建日期', 'createTime']
  102. ]
  103. export const Z2tableC = [
  104. ['index', '序号'],
  105. ['txt', '账号', 'userName'],
  106. ['txt', '操作日期', 'createTime'],
  107. ['txt', 'IP记录', 'ip'],
  108. ['txt', '操作模块', 'type'],
  109. ['txt', '操作事件', 'description']
  110. ]