tableData.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 A2tableCimg = [
  18. ['txt', '标题', 'name'],
  19. ['img', '图片', 'thumb'],
  20. ['txt', '排序', 'sort']
  21. ]
  22. export const A3tableC = [
  23. ['txt', '发布时间', 'createTime'],
  24. ['txt', '称呼', 'name'],
  25. ['txt', '联系方式', 'phone'],
  26. ['text', '内容', 'content', 50]
  27. ]
  28. export const B1tableC = [
  29. ['txt', '板块', 'type'],
  30. ['txt', '名称', 'name'],
  31. ['img', '图片', 'thumb'],
  32. ['txt', '排序值', 'sort']
  33. ]
  34. export const B2tableC = [
  35. ['txt', '板块', 'type'],
  36. ['img', '图片', 'thumb'],
  37. ['text', '内容', 'content', 100],
  38. ['txt', '排序值', 'sort']
  39. ]
  40. export const B4tableC = [
  41. ['text', '标题', 'name', 50],
  42. ['img', '图片', 'thumb'],
  43. ['txt', '排序值', 'sort']
  44. ]
  45. export const Z1tableC = [
  46. ['txt', '用户名', 'userName'],
  47. ['txtChange', '角色', 'isAdmin', { 1: '管理员', 0: '普通成员' }],
  48. ['txt', '真实姓名', 'realName'],
  49. ['txt', '创建日期', 'createTime']
  50. ]
  51. export const Z2tableC = [
  52. ['index', '序号'],
  53. ['txt', '账号', 'userName'],
  54. ['txt', '操作日期', 'createTime'],
  55. ['txt', 'IP记录', 'ip'],
  56. ['txt', '操作模块', 'type'],
  57. ['txt', '操作事件', 'description']
  58. ]