sizestr(val, 'M', 1024)} totalFormatter={(val) => sizestr(val, 'M', 1024)} />]
},
},
formatter: ({ row }) => {
const title = `${this.$t('common_233')}: ${sizestr(row.used_capacity, 'M', 1024)}\n${this.$t('common_234')}: ${sizestr(row.virtual_capacity, 'M', 1024)}`
return title
},
},
{
field: 'storage_type',
title: i18n.t('storage.text_38'),
width: 100,
formatter: ({ row }) => {
return STORAGE_TYPES[row.storage_type] || row.storage_type
},
},
{
field: 'medium_type',
title: i18n.t('storage.text_39'),
width: 120,
formatter: ({ row }) => {
return MEDIUM_TYPES[row.medium_type] || row.medium_type
},
},
getBrandTableColumn(),
{
field: 'schedtag',
title: i18n.t('storage.text_45'),
width: 120,
slots: {
default: ({ row }) => {
const tags = _.sortBy(row.schedtags, ['default', 'name'])
if (!tags.length) {
return [
{ this.$t('storage.text_171') }
,
]
}
const list = tags.map(tag => {tag.name})
return [
{...list}
]
},
},
},
getPublicScopeTableColumn({ vm: this, resource: 'storages' }),
getProjectDomainTableColumn(),
getRegionTableColumn(),
getTimeTableColumn(),
]
},
}