[Update] 修改字段排序问题

This commit is contained in:
jym503558564 2020-04-07 16:09:01 +08:00
parent 9739306a9e
commit fba0a4f7b6
15 changed files with 77 additions and 44 deletions

View File

@ -24,23 +24,28 @@ export default {
},
{
prop: 'get_type_display',
label: this.$t('applications.appType')
label: this.$t('applications.appType'),
sortable: 'custom'
},
{
prop: 'host',
label: this.$t('applications.host')
label: this.$t('applications.host'),
sortable: 'custom'
},
{
prop: 'port',
label: this.$t('applications.port')
label: this.$t('applications.port'),
sortable: 'custom'
},
{
prop: 'database',
label: this.$t('applications.database')
label: this.$t('applications.database'),
sortable: 'custom'
},
{
prop: 'comment',
label: this.$t('applications.comment')
label: this.$t('applications.comment'),
sortable: 'custom'
},
{
prop: 'id',

View File

@ -32,7 +32,8 @@ export default {
},
{
prop: 'comment',
label: this.$t('applications.comment')
label: this.$t('applications.comment'),
sortable: 'custom'
},
{
prop: 'id',

View File

@ -24,7 +24,8 @@ export default {
},
{
prop: 'username',
label: this.$t('common.username')
label: this.$t('common.username'),
sortable: 'custom'
},
{
prop: 'assets_amount',
@ -32,7 +33,8 @@ export default {
},
{
prop: 'comment',
label: this.$t('assets.comment')
label: this.$t('assets.comment'),
sortable: 'custom'
},
{
prop: 'id',

View File

@ -24,7 +24,8 @@ export default {
},
{
prop: 'ip',
label: this.$t('assets.ip')
label: this.$t('assets.ip'),
sortable: 'custom'
},
{
prop: 'hardware_info',

View File

@ -32,7 +32,8 @@ export default {
},
{
prop: 'comment',
label: this.$t('assets.comment')
label: this.$t('assets.comment'),
sortable: 'custom'
},
{
prop: 'id',

View File

@ -34,7 +34,8 @@ export default {
},
{
prop: 'comment',
label: this.$t('assets.comment')
label: this.$t('assets.comment'),
sortable: 'custom'
},
{
prop: 'id',

View File

@ -18,17 +18,17 @@ export default {
{
prop: 'name',
label: this.$t('assets.name'),
sortable: true
sortable: 'custom'
},
{
prop: 'ip',
label: this.$t('assets.ip'),
sortable: true
sortable: 'custom'
},
{
prop: 'port',
label: this.$t('assets.port'),
sortable: true
sortable: 'custom'
},
{
prop: 'protocol',
@ -38,12 +38,12 @@ export default {
{
prop: 'username',
label: this.$t('assets.username'),
sortable: true
sortable: 'custom'
},
{
prop: 'comment',
label: this.$t('assets.comment'),
sortable: true
sortable: 'custom'
},
{
prop: 'id',

View File

@ -24,7 +24,8 @@ export default {
},
{
prop: 'value',
label: this.$t('assets.value')
label: this.$t('assets.value'),
sortable: 'custom'
},
{
prop: 'asset_count',

View File

@ -24,11 +24,13 @@ export default {
},
{
prop: 'base',
label: this.$t('assets.BasePlatform')
label: this.$t('assets.BasePlatform'),
sortable: 'custom'
},
{
prop: 'comment',
label: this.$t('assets.comment')
label: this.$t('assets.comment'),
sortable: 'custom'
},
{
prop: 'id',

View File

@ -24,23 +24,28 @@ export default {
},
{
prop: 'username',
label: this.$t('common.username')
label: this.$t('common.username'),
sortable: 'custom'
},
{
prop: 'protocol',
label: this.$t('assets.protocol')
label: this.$t('assets.protocol'),
sortable: 'custom'
},
{
prop: 'login_mode_display',
label: this.$t('assets.loginMode')
label: this.$t('assets.loginMode'),
sortable: 'custom'
},
{
prop: 'assets_amount',
label: this.$t('assets.asset')
label: this.$t('assets.asset'),
sortable: 'custom'
},
{
prop: 'comment',
label: this.$t('assets.comment')
label: this.$t('assets.comment'),
sortable: 'custom'
},
{
prop: 'id',

View File

@ -41,8 +41,7 @@ export default {
},
{
prop: 'latest_execution.timedelta',
label: this.$t('jobcenter.time'),
sortable: 'custom'
label: this.$t('jobcenter.time')
},
{
prop: 'id',

View File

@ -29,23 +29,27 @@ export default {
{
prop: 'user',
label: this.$t('sessions.user'),
sortable: true
sortable: 'custom'
},
{
prop: 'asset',
label: this.$t('sessions.asset')
label: this.$t('sessions.asset'),
sortable: 'custom'
},
{
prop: 'system_user',
label: this.$t('sessions.systemUser')
label: this.$t('sessions.systemUser'),
sortable: 'custom'
},
{
prop: 'remote_addr',
label: this.$t('sessions.remoteAddr')
label: this.$t('sessions.remoteAddr'),
sortable: 'custom'
},
{
prop: 'protocol',
label: this.$t('sessions.protocol')
label: this.$t('sessions.protocol'),
sortable: 'custom'
},
{
prop: 'login_from_display',
@ -57,7 +61,8 @@ export default {
},
{
prop: 'date_start',
label: this.$t('sessions.dateStart')
label: this.$t('sessions.dateStart'),
sortable: 'custom'
},
{
prop: 'duration',

View File

@ -4,7 +4,7 @@
<script>
import { GenericListPage } from '@/layout/components'
// import DetailFormatter from '@/components/DataTable/formatters/DetailFormatter'
import { DetailFormatter } from '@/components/DataTable/formatters/index'
export default {
components: {
@ -29,23 +29,27 @@ export default {
{
prop: 'user',
label: this.$t('sessions.user'),
sortable: true
sortable: 'custom'
},
{
prop: 'asset',
label: this.$t('sessions.asset')
label: this.$t('sessions.asset'),
sortable: 'custom'
},
{
prop: 'system_user',
label: this.$t('sessions.systemUser')
label: this.$t('sessions.systemUser'),
sortable: 'custom'
},
{
prop: 'remote_addr',
label: this.$t('sessions.remoteAddr')
label: this.$t('sessions.remoteAddr'),
sortable: 'custom'
},
{
prop: 'protocol',
label: this.$t('sessions.protocol')
label: this.$t('sessions.protocol'),
sortable: 'custom'
},
{
prop: 'login_from_display',
@ -57,7 +61,8 @@ export default {
},
{
prop: 'date_start',
label: this.$t('sessions.dateStart')
label: this.$t('sessions.dateStart'),
sortable: 'custom'
},
{
prop: 'duration',

View File

@ -32,7 +32,8 @@ export default {
},
{
prop: 'remote_addr',
label: this.$t('sessions.addr')
label: this.$t('sessions.addr'),
sortable: 'custom'
},
{
prop: 'session_online',
@ -45,7 +46,8 @@ export default {
},
{
prop: 'is_alive',
label: this.$t('sessions.alive')
label: this.$t('sessions.alive'),
sortable: 'custom'
}
],
tableActions: {

View File

@ -39,15 +39,18 @@ export default {
},
{
prop: 'user_display',
label: this.$t('tickets.user')
label: this.$t('tickets.user'),
sortable: 'custom'
},
{
prop: 'type_display',
label: this.$t('tickets.type')
label: this.$t('tickets.type'),
sortable: 'custom'
},
{
prop: 'status',
label: this.$t('tickets.status')
label: this.$t('tickets.status'),
sortable: 'custom'
},
{
prop: 'date_created',