columns.js 348 B

123456789101112131415161718
  1. import i18n from '@/locales'
  2. import {
  3. ROBOT_TYPE,
  4. } from '../constants'
  5. export const getTypeTableColumn = () => {
  6. return {
  7. title: i18n.t('system.text_48'),
  8. field: 'type',
  9. showOverflow: 'ellipsis',
  10. minWidth: 100,
  11. slots: {
  12. default: ({ row }) => {
  13. return ROBOT_TYPE[row.type]?.label || '-'
  14. },
  15. },
  16. }
  17. }