perf: 优化 ops 任务名称,支持 i18n

This commit is contained in:
ibuler
2022-01-13 14:17:13 +08:00
committed by Jiangjie.Bai
parent 2aad1110d0
commit 4e1c921451

View File

@@ -15,10 +15,18 @@ export default {
return {
tableConfig: {
url: '/api/v1/ops/tasks/',
columns: ['name', 'runtimes', 'host_amount', 'is_success', 'date_start', 'time', 'actions'],
columns: [
'name', 'runtimes', 'host_amount', 'is_success',
'date_start', 'time', 'actions'
],
columnsMeta: {
name: {
showOverflowTooltip: true
showOverflowTooltip: true,
formatterArgs: {
getTitle({ row }) {
return row['display_name']
}
}
},
runtimes: {
label: this.$t('ops.runTimes'),