perf: ticket translate

This commit is contained in:
feng
2024-05-27 10:58:39 +08:00
parent 68fa8f30c0
commit 4143c2c32d

View File

@@ -79,14 +79,12 @@ export default {
}, },
type: { type: {
label: this.$t('Type'), label: this.$t('Type'),
width: '160px',
formatter: row => { formatter: row => {
return row.type.label return row.type.label
} }
}, },
status: { status: {
align: 'center', align: 'center',
width: '90px',
sortable: 'custom', sortable: 'custom',
formatter: TagChoicesFormatter, formatter: TagChoicesFormatter,
formatterArgs: { formatterArgs: {
@@ -105,7 +103,6 @@ export default {
state: { state: {
label: this.$t('Action'), label: this.$t('Action'),
align: 'center', align: 'center',
width: '90px',
sortable: 'custom', sortable: 'custom',
formatter: TagChoicesFormatter, formatter: TagChoicesFormatter,
formatterArgs: { formatterArgs: {
@@ -126,8 +123,7 @@ export default {
date_created: { date_created: {
label: this.$t('Date'), label: this.$t('Date'),
sortable: 'custom', sortable: 'custom',
formatter: (row) => toSafeLocalDateStr(row.date_created), formatter: (row) => toSafeLocalDateStr(row.date_created)
width: '160px'
} }
} }
}, },