mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
perf: 账号模版查看不显示密码记录
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user