perf: 优化资产平台详情显示ID字段;优化组件监控显示Video-Worker名称

This commit is contained in:
Bai
2023-05-19 15:37:02 +08:00
committed by Jiangjie.Bai
parent 2434e434b7
commit 021eb1fd5b
2 changed files with 5 additions and 4 deletions

View File

@@ -61,14 +61,14 @@ export default {
quickActions: [],
url: `/api/v1/assets/platforms/${this.object.id}`,
detailFields: [
'name', 'charset', 'internal',
'id', 'name', 'charset', 'internal',
{
key: this.$t('assets.Type'),
value: `${this.object.category?.label}/${this.object.type?.label}`
},
'su_method',
'comment'
'su_method', 'comment'
],
protocolChoices: null,
constraints: {}
}

View File

@@ -93,7 +93,8 @@ export default {
core: 'Core',
celery: 'Celery',
magnus: 'Magnus',
tinker: 'Tinker'
tinker: 'Tinker',
video_worker: 'Video-Worker'
}
return nameMapper[this.componentMetric.type]
}