mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-16 15:19:25 +00:00
fix: 修改列表中字段跳转权限判断
This commit is contained in:
committed by
Jiangjie.Bai
parent
ebbc5ceb3e
commit
6461a66bc1
@@ -70,8 +70,9 @@ export default {
|
||||
prop: 'hostname',
|
||||
label: this.$t('assets.Hostname'),
|
||||
showOverflowTooltip: true,
|
||||
formatter: this.$hasPerm('assets.view_asset') ? DetailFormatter : (row) => row.hostname,
|
||||
formatter: DetailFormatter,
|
||||
formatterArgs: {
|
||||
can: this.$hasPerm('assets.view_asset'),
|
||||
getRoute({ row }) {
|
||||
return {
|
||||
name: 'AssetDetail',
|
||||
|
@@ -82,8 +82,9 @@ export default {
|
||||
},
|
||||
systemuser: {
|
||||
showOverflowTooltip: true,
|
||||
formatter: this.$hasPerm('assets.view_systemuser') ? DetailFormatter : (row) => row.systemuser_display,
|
||||
formatter: DetailFormatter,
|
||||
formatterArgs: {
|
||||
can: this.$hasPerm('assets.view_systemuser'),
|
||||
getTitle({ row }) {
|
||||
return row.systemuser_display
|
||||
},
|
||||
|
Reference in New Issue
Block a user