tableData.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * index:序号
  3. * txt:正常数据
  4. * img:图片
  5. * txtChange:判断显示不同字段
  6. * text:文字比较多的情况
  7. */
  8. export const A1tableCFu = (type: "video" | "poster") => {
  9. return [
  10. ["txt", "标题", "name"],
  11. ["img", type === "video" ? "视频封面" : "海报", "thumb"],
  12. ["txtChange", "自动播放", "display", { 0: "否", 1: "是" }],
  13. ["txt", "创建日期", "createTime"],
  14. ];
  15. };
  16. export const A4tableC = [
  17. ["txt", "名称", "name"],
  18. ["img", "封面", "thumb"],
  19. ["text", "简介", "description", 50],
  20. ["txt", "发布日期", "releaseDate"],
  21. ["txt", "点赞数", "pcs"],
  22. ];
  23. export const A5tableC = [
  24. ["txt", "名称", "name"],
  25. ["img", "封面", "thumb"],
  26. ["txt", "分类", "dictType"],
  27. ["txt", "时代", "dictAge"],
  28. ["txt", "级别", "dictLevel"],
  29. ["txt", "尺寸", "dictSize"],
  30. ["txt", "点赞", "pcs"],
  31. ["txt", "发布日期", "releaseDate"],
  32. ];
  33. export const A7tableC = [
  34. ["txt", "用户名", "userName"],
  35. ["txtChange", "角色", "isAdmin", { 1: "管理员", 0: "普通成员" }],
  36. ["txt", "真实姓名", "realName"],
  37. ["txt", "创建日期", "createTime"],
  38. ];
  39. export const A8tableC = [
  40. ["index", "序号"],
  41. ["txt", "操作日期", "createTime"],
  42. ["txt", "IP记录", "ip"],
  43. ["txt", "操作模块", "type"],
  44. ["txt", "操作事件", "description"],
  45. ];