tableData.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 A2tableC = [
  17. ['txt', '分类名称', 'name'],
  18. ['txt', '排序值', 'sort'],
  19. ['txt', '编辑人', 'creatorName'],
  20. ['txt', '编辑时间', 'updateTime']
  21. ]
  22. export const Z1tableC = [
  23. ['txt', '用户名', 'userName'],
  24. ['txtChange', '角色', 'isAdmin', { 1: '管理员', 0: '普通成员' }],
  25. ['txt', '真实姓名', 'realName'],
  26. ['txt', '创建日期', 'createTime']
  27. ]
  28. export const Z2tableC = [
  29. ['index', '序号'],
  30. ['txt', '账号', 'userName'],
  31. ['txt', '操作日期', 'createTime'],
  32. ['txt', 'IP记录', 'ip'],
  33. ['txt', '操作模块', 'type'],
  34. ['txt', '操作事件', 'description']
  35. ]