pr@dev@perm

This commit is contained in:
feng
2023-02-16 19:37:13 +08:00
parent 44ca4e7620
commit 7671c7ec72
2 changed files with 8 additions and 2 deletions

View File

@@ -40,7 +40,14 @@
<span>{{ account['date_updated'] | date }}</span>
</el-form-item>
<el-form-item v-if="showPasswordRecord" :label="$tc('accounts.PasswordRecord')">
<el-button type="text" @click="onShowPasswordHistory">{{ secretInfo.version }}</el-button>
<el-button
v-perms="'accounts.view_historyaccountsecret'"
type="text"
@click="onShowPasswordHistory"
>
{{ secretInfo.version }}
</el-button>
</el-form-item>
</el-form>
</Dialog>

View File

@@ -107,7 +107,6 @@ export default {
'assets.change_asset': ['assets.view_platform'],
'accounts.view_account': ['assets.view_node'],
'accounts.view_accountsecret': ['accounts.view_account'],
'accounts.change_accountsecret': ['accounts.view_account'],
'accounts.view_historyaccount': ['accounts.view_account'],
'accounts.view_accounttemplatesecret': ['accounts.view_accounttemplate'],
'accounts.change_accounttemplatesecret': ['accounts.view_accounttemplate'],