tableData.ts 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 Z1tableC = [
  61. ['txt', '用户名', 'userName'],
  62. ['txtChange', '角色', 'isAdmin', { 1: '管理员', 0: '普通成员' }],
  63. ['txt', '真实姓名', 'realName'],
  64. ['txt', '创建日期', 'createTime']
  65. ]
  66. export const Z2tableC = [
  67. ['index', '序号'],
  68. ['txt', '账号', 'userName'],
  69. ['txt', '操作日期', 'createTime'],
  70. ['txt', 'IP记录', 'ip'],
  71. ['txt', '操作模块', 'type'],
  72. ['txt', '操作事件', 'description']
  73. ]