tables.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. export const TABLE_OPTIONS = {
  2. emptyText: '暂无数据',
  3. loading: true,
  4. maxHeight: 'calc(70vh - 150px)',
  5. };
  6. export const ACCESS_TABLE_COLUMNS = [
  7. {
  8. label: '序号',
  9. align: 'center',
  10. width: '80px',
  11. type: 'index',
  12. },
  13. {
  14. prop: 'eventDescription',
  15. label: '事件',
  16. align: 'left',
  17. minWidth: '120px',
  18. },
  19. {
  20. prop: 'eventLocation',
  21. label: '地点',
  22. align: 'left',
  23. minWidth: '120px',
  24. },
  25. {
  26. prop: 'images',
  27. label: '抓拍图片',
  28. slot: 'images',
  29. align: 'center',
  30. minWidth: '120px',
  31. },
  32. {
  33. prop: 'eventTime',
  34. label: '时间',
  35. align: 'left',
  36. minWidth: '120px',
  37. },
  38. {
  39. prop: 'actions',
  40. label: '操作',
  41. slot: 'actions',
  42. align: 'left',
  43. minWidth: '120px',
  44. },
  45. ];
  46. export const ACCESS_TABLE_COLUMNS_CHECKONLY = [
  47. {
  48. label: '序号',
  49. align: 'center',
  50. minWidth: '120px',
  51. type: 'index',
  52. },
  53. {
  54. prop: 'eventDescription',
  55. label: '事件',
  56. align: 'center',
  57. minWidth: '120px',
  58. },
  59. {
  60. prop: 'eventLocation',
  61. label: '地点',
  62. align: 'center',
  63. minWidth: '120px',
  64. },
  65. {
  66. prop: 'images',
  67. label: '抓拍图片',
  68. slot: 'images',
  69. align: 'center',
  70. minWidth: '120px',
  71. },
  72. {
  73. prop: 'eventTime',
  74. label: '时间',
  75. align: 'center',
  76. minWidth: '120px',
  77. },
  78. ];