fix: 修改改密计划权限位联动

This commit is contained in:
Jiangjie.Bai
2022-03-17 17:04:35 +08:00
committed by Jiangjie.Bai
parent fc9b09f5fd
commit edf09d3260
2 changed files with 11 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<template>
<GenericDetailPage :object.sync="TaskDetail" :active-menu.sync="config.activeMenu" v-bind="config" v-on="$listeners">
<keep-alive>
<component :is="config.activeMenu" :object="TaskDetail" />
<component :is="config.activeMenu" :object="TaskDetail" @update:activeMenu="handleUpdate" />
</keep-alive>
</GenericDetailPage>
</template>
@@ -55,6 +55,11 @@ export default {
}
}
}
},
methods: {
handleUpdate(data) {
this.config.activeMenu = data
}
}
}
</script>

View File

@@ -125,8 +125,12 @@ export default {
'xpack.view_syncinstancetask': ['xpack.view_account'],
'xpack.view_syncinstancedetail': ['xpack.view_syncinstancetask'],
'xpack.view_syncinstancetaskexecution': ['xpack.view_syncinstancetask'],
'xpack.view_changeauthplan': ['assets.view_asset'],
'xpack.view_changeauthplantask': ['xpack.view_changeauthplan'],
'xpack.view_changeauthplanexecution': ['xpack.view_changeauthplan']
'xpack.view_changeauthplanexecution': ['xpack.view_changeauthplan'],
'xpack.view_applicationchangeauthplan': ['applications.view_application', 'assets.view_systemuser'],
'xpack.view_applicationchangeauthplantask': ['xpack.view_applicationchangeauthplan'],
'xpack.view_applicationchangeauthplanexecution': ['xpack.view_applicationchangeauthplan']
}
}
},