Merge pull request #440 from jumpserver/pr@dev@asset_disabled_style

fix: 调整未激活资产展示样式
This commit is contained in:
老广
2020-10-14 22:57:10 -05:00
committed by GitHub

View File

@@ -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>