tableData.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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', 'openId', 'openId'],
  18. ['txt', '姓名', 'nickName'],
  19. ['txt', '联系方式', 'phone'],
  20. ['text', '单位名称', 'unit', 50],
  21. ['txtChange', '团体认证', 'isAuth', { 0: '未认证', 1: '已认证' }],
  22. // [
  23. // 'txtChange',
  24. // '认证单位',
  25. // 'authType',
  26. // { neighbour: '澳门街坊会联合总会广东办事处', live: '横琴粤澳深度合作区民生事务局' }
  27. // ],
  28. ['txt', '注册时间', 'createTime']
  29. ]
  30. export const A3tableC = [
  31. ['txt', '课程类别', 'dictTypeName'],
  32. ['txt', '课程名称', 'name'],
  33. ['txt', '排序值', 'sort']
  34. ]
  35. export const A3tableCtype = [
  36. ['txt', '课程类别名称', 'name'],
  37. ['txt', '排序值', 'sort']
  38. ]
  39. export const A4tableC = [
  40. ['txt', '负责人姓名', 'name'],
  41. ['txt', '联系方式', 'phone'],
  42. ['txt', '单位名称', 'unit'],
  43. [
  44. 'txtChange',
  45. '审核状态',
  46. 'status',
  47. { 0: '待审核 ', 1: '审核通过', 2: '已拒绝', 3: '已失效' }
  48. ],
  49. ['txt', '申请时间', 'createTime']
  50. ]
  51. export const A61tableC = [
  52. ['txt', '邀请码', 'code'],
  53. ['txt', '邀请对象', 'invitationName'],
  54. ['txtChange', '使用状态', 'status', { 0: '未使用 ', 1: '已使用' }],
  55. ['txt', '认证用户openId', 'openId'],
  56. ['txt', '姓名', 'name'],
  57. ['txt', '联系方式', 'phone'],
  58. ['txt', '单位名称', 'unit']
  59. ]
  60. export const A6tableC = [
  61. ['txt', '预约日期', 'bookDate'],
  62. [
  63. 'txt',
  64. '预约时段',
  65. 'bookTime'
  66. // { am: '上午', pm: '下午', 2: '已拒绝', 3: '已失效' }
  67. ],
  68. ['txt', '预约课程', 'subjectName'],
  69. ['txt', ' 负责人姓名', 'name'],
  70. ['txt', ' 联系方式', 'phone'],
  71. ['txt', ' 证件号码', 'myIdNum'],
  72. ['txt', ' 来自地区', 'cityStr'],
  73. ['txt', ' 参团学生人数', 'pcsStudent'],
  74. ['txt', ' 随堂老师人数', 'pcsTeacher'],
  75. ['txt', ' 所属机构', 'unit'],
  76. ['text', '团体描述', 'remark', 50],
  77. [
  78. 'txtChange',
  79. '审核状态',
  80. 'status',
  81. { 0: '待审核', 1: '审核通过', 2: '已拒绝', 3: '已失效' }
  82. ],
  83. ['txt', '申请时间', 'createTime']
  84. ]
  85. export const B1tableC = [
  86. ['txt', '时段', 'time'],
  87. ['txt', '周一', 'monday'],
  88. ['txt', '周二', 'tuesday'],
  89. ['txt', '周三', 'wednesday'],
  90. ['txt', '周四', 'thursday'],
  91. ['txt', '周五', 'friday'],
  92. ['txt', '周六', 'saturday'],
  93. ['txt', '周日', 'sunday']
  94. ]
  95. export const B2tableC = [
  96. ['txt', '申请时间', 'createTime'],
  97. ['txtChange', '预约类型', 'type', { person: '个人预约', team: '团队预约' }],
  98. ['txt', '姓名', 'name'],
  99. ['txt', '联系方式', 'phone'],
  100. ['txt', '人数', 'pcs'],
  101. ['txt', ' 来自地区', 'cityStr'],
  102. ['txt', '预约日期', 'bookDate'],
  103. ['txt', '预约时段', 'time']
  104. // ['txtChange', '核销状态', 'status', { 0: '未核销', 1: '已核销' }]
  105. ]
  106. export const Z1tableC = [
  107. ['txt', '用户名', 'userName'],
  108. ['txtChange', '角色', 'isAdmin', { 1: '管理员', 0: '普通成员' }],
  109. ['txt', '真实姓名', 'realName'],
  110. ['txt', '手机号', 'phone'],
  111. ['txt', '创建日期', 'createTime']
  112. ]
  113. export const Z2tableC = [
  114. ['index', '序号'],
  115. ['txt', '账号', 'userName'],
  116. ['txt', '操作日期', 'createTime'],
  117. ['txt', 'IP记录', 'ip'],
  118. ['txt', '操作模块', 'type'],
  119. ['txt', '操作事件', 'description']
  120. ]