mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
fix: 整理统一 Lina List
This commit is contained in:
@@ -55,6 +55,7 @@ export default {
|
||||
case 'name':
|
||||
col.formatter = DetailFormatter
|
||||
col.sortable = 'custom'
|
||||
col.showOverflowTooltip = true
|
||||
break
|
||||
case 'actions':
|
||||
col = {
|
||||
|
||||
@@ -19,6 +19,9 @@ export default {
|
||||
columnsMeta: {
|
||||
get_type_display: {
|
||||
label: this.$t('applications.type')
|
||||
},
|
||||
database: {
|
||||
showOverflowTooltip: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -24,6 +24,7 @@ export default {
|
||||
displayKey: 'get_type_display'
|
||||
},
|
||||
asset: {
|
||||
showOverflowTooltip: true,
|
||||
formatter: function(row, column, cellValue, index) {
|
||||
const route = { to: { name: 'AssetDetail', params: { id: cellValue }}}
|
||||
return <router-link{...{ attrs: route }} >{ row.asset_info.hostname }</router-link>
|
||||
|
||||
@@ -19,6 +19,7 @@ export default {
|
||||
prop: 'name',
|
||||
label: this.$t('common.Name'),
|
||||
formatter: DetailFormatter,
|
||||
showOverflowTooltip: true,
|
||||
sortable: true,
|
||||
formatterArgs: {
|
||||
route: 'AdminUserDetail'
|
||||
@@ -27,6 +28,7 @@ export default {
|
||||
{
|
||||
prop: 'username',
|
||||
label: this.$t('common.Username'),
|
||||
showOverflowTooltip: true,
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ export default {
|
||||
prop: 'name',
|
||||
label: this.$t('assets.Name'),
|
||||
formatter: DetailFormatter,
|
||||
showOverflowTooltip: true,
|
||||
sortable: true,
|
||||
formatterArgs: {
|
||||
route: 'CommandFilterDetail'
|
||||
|
||||
@@ -18,11 +18,13 @@ export default {
|
||||
{
|
||||
prop: 'name',
|
||||
label: this.$t('assets.Name'),
|
||||
showOverflowTooltip: true,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
prop: 'value',
|
||||
label: this.$t('assets.Value'),
|
||||
showOverflowTooltip: true,
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ export default {
|
||||
prop: 'name',
|
||||
label: this.$t('assets.Name'),
|
||||
formatter: DetailFormatter,
|
||||
showOverflowTooltip: true,
|
||||
sortable: true,
|
||||
formatterArgs: {
|
||||
route: 'PlatformDetail'
|
||||
|
||||
@@ -19,6 +19,7 @@ export default {
|
||||
prop: 'name',
|
||||
label: this.$t('common.Name'),
|
||||
formatter: DetailFormatter,
|
||||
showOverflowTooltip: true,
|
||||
sortable: true,
|
||||
formatterArgs: {
|
||||
route: 'SystemUserDetail'
|
||||
@@ -27,6 +28,7 @@ export default {
|
||||
{
|
||||
prop: 'username',
|
||||
label: this.$t('common.Username'),
|
||||
showOverflowTooltip: true,
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -47,13 +47,16 @@ export default {
|
||||
}
|
||||
},
|
||||
user: {
|
||||
width: '140px'
|
||||
width: '140px',
|
||||
showOverflowTooltip: true
|
||||
},
|
||||
asset: {
|
||||
width: '140px'
|
||||
width: '140px',
|
||||
showOverflowTooltip: true
|
||||
},
|
||||
system_user: {
|
||||
width: '140px'
|
||||
width: '140px',
|
||||
showOverflowTooltip: true
|
||||
},
|
||||
session: {
|
||||
label: this.$t('sessions.session'),
|
||||
|
||||
@@ -29,6 +29,9 @@ export default {
|
||||
'name', 'username', 'groups_display', 'role', 'source', 'is_valid', 'actions'
|
||||
],
|
||||
columnsMeta: {
|
||||
username: {
|
||||
showOverflowTooltip: true
|
||||
},
|
||||
source: {
|
||||
width: '120px'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user