perf: 工单页面去掉一些筛选字段

This commit is contained in:
wangruidong
2024-03-28 18:28:11 +08:00
committed by w940853815
parent 28062f5d60
commit bf0d19ac0b

View File

@@ -71,7 +71,7 @@ export default {
} }
}, },
applicant: { applicant: {
label: this.$t('tickets.user'), label: this.$t('tickets.Applicant'),
sortable: 'custom', sortable: 'custom',
formatter: row => { formatter: row => {
return row['rel_snapshot'].applicant return row['rel_snapshot'].applicant
@@ -137,8 +137,16 @@ export default {
canCreate: this.$hasPerm('tickets.view_ticket'), canCreate: this.$hasPerm('tickets.view_ticket'),
hasBulkDelete: false, hasBulkDelete: false,
searchConfig: { searchConfig: {
exclude: ['id', 'title', 'type'], exclude: ['id', 'title', 'type', 'applicant'],
options: [ options: [
{
value: 'id',
label: 'ID'
},
{
value: 'title',
label: this.$t('tickets.title')
},
{ {
value: 'type', value: 'type',
label: this.$t('assets.Type'), label: this.$t('assets.Type'),
@@ -163,25 +171,13 @@ export default {
] ]
}, },
{ {
value: 'id', value: 'applicant',
label: 'ID' label: this.$t('tickets.Applicant')
},
{
value: 'title',
label: this.$t('tickets.title')
},
{
value: 'relevant_app',
label: this.$t('tickets.RelevantApp')
}, },
{ {
value: 'relevant_asset', value: 'relevant_asset',
label: this.$t('tickets.RelevantAsset') label: this.$t('tickets.RelevantAsset')
}, },
{
value: 'relevant_system_user',
label: this.$t('tickets.RelevantCommand')
},
{ {
value: 'relevant_command', value: 'relevant_command',
label: this.$t('tickets.RelevantSystemUser') label: this.$t('tickets.RelevantSystemUser')