perf: 账号模版查看不显示密码记录

This commit is contained in:
“huailei000”
2023-02-09 14:19:50 +08:00
committed by huailei
parent a18520276a
commit 9e9dea6e57
2 changed files with 12 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
<el-form-item :label="$tc('common.DateUpdated')">
<span>{{ account['date_updated'] | date }}</span>
</el-form-item>
<el-form-item :label="$tc('accounts.PasswordRecord')">
<el-form-item v-if="showPasswordRecord" :label="$tc('accounts.PasswordRecord')">
<el-button type="text" @click="onShowPasswordHistory">{{ secretInfo.version }}</el-button>
</el-form-item>
</el-form>
@@ -78,6 +78,10 @@ export default {
url: {
type: String,
default: ''
},
showPasswordRecord: {
type: Boolean,
default: true
}
},
data() {

View File

@@ -1,7 +1,13 @@
<template>
<div>
<GenericListPage :table-config="tableConfig" :header-actions="headerActions" />
<ViewSecret v-if="showViewSecretDialog" :visible.sync="showViewSecretDialog" :account="account" :url="secretUrl" />
<ViewSecret
v-if="showViewSecretDialog"
:visible.sync="showViewSecretDialog"
:url="secretUrl"
:account="account"
:show-password-record="false"
/>
</div>
</template>