mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
Merge pull request #440 from jumpserver/pr@dev@asset_disabled_style
fix: 调整未激活资产展示样式
This commit is contained in:
@@ -59,6 +59,10 @@ export default {
|
||||
key: this.$t('assets.Platform'),
|
||||
value: row.platform
|
||||
},
|
||||
{
|
||||
key: this.$t('common.Activate'),
|
||||
value: row.is_active
|
||||
},
|
||||
{
|
||||
key: this.$t('assets.Comment'),
|
||||
value: row.comment
|
||||
@@ -130,7 +134,12 @@ export default {
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
tableAttrs: {
|
||||
rowClassName({ row }) {
|
||||
return !row.is_active ? 'row_disabled' : ''
|
||||
}
|
||||
}
|
||||
},
|
||||
headerActions: {
|
||||
hasExport: false,
|
||||
@@ -184,4 +193,8 @@ export default {
|
||||
.el-card {
|
||||
border: 0 !important;
|
||||
}
|
||||
.row_disabled,.row_disabled:hover,.row_disabled:hover > td{
|
||||
cursor: not-allowed;
|
||||
background-color:rgba(192,196,204,0.28) !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user