perf: 文件加密表单显示文字

This commit is contained in:
“huailei000”
2023-04-20 15:10:00 +08:00
committed by Jiangjie.Bai
parent b40e6bb412
commit 74df2dc164
5 changed files with 49 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
<template>
<div>
{{ value? trueText : falseText }}
</div>
</template>
<script>
export default {
props: {
value: {
type: [String, Boolean],
default: () => false
},
trueText: {
type: String,
default: function() {
return this.$t('common.Yes')
}
},
falseText: {
type: String,
default: function() {
return this.$t('common.No')
}
}
},
data() {
return {}
}
}
</script>
<style scoped>
</style>

View File

@@ -1720,7 +1720,9 @@
"UpdateNodeAssetHardwareInfo": "Update node asset hardware information"
},
"users": {
"SetStatus": "Set status",
"Set": "Set",
"NotSet": "Not set",
"Login": "Users login",
"InviteSuccess": "Invite success",
"inputPhone": "Please enter your mobile phone number",

View File

@@ -1712,7 +1712,9 @@
"UpdateNodeAssetHardwareInfo": "ノード資産ハードウェア情報の更新"
},
"users": {
"SetStatus": "ステータスの設定",
"Set": "設定",
"NotSet": "未設定",
"Login": "ユーザー登録",
"InviteSuccess": "成功招待",
"inputPhone": "携帯電話の番号をお願いします",

View File

@@ -1708,7 +1708,9 @@
"UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息"
},
"users": {
"SetStatus": "设置状态",
"Set": "已设置",
"NotSet": "未设置",
"Login": "用户登录",
"InviteSuccess": "邀请成功",
"inputPhone": "请输入手机号码",

View File

@@ -15,6 +15,7 @@
<script>
import GenericCreateUpdateForm from '@/layout/components/GenericCreateUpdateForm'
import { IBox } from '@/components'
import TextReadonly from '@/components/FormFields/TextReadonly.vue'
export default {
name: 'SecretKeyUpdate',
@@ -34,8 +35,12 @@ export default {
fields: ['has_secret_key', 'new_secret_key', 'new_secret_key_again'],
fieldsMeta: {
has_secret_key: {
label: this.$t('users.Set'),
type: 'switch',
label: this.$t('users.SetStatus'),
component: TextReadonly,
el: {
trueText: this.$t('users.Set'),
falseText: this.$t('users.NotSet')
},
disabled: true
},
new_secret_key: {