mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
perf: 文件加密表单显示文字
This commit is contained in:
committed by
Jiangjie.Bai
parent
b40e6bb412
commit
74df2dc164
36
src/components/FormFields/TextReadonly.vue
Normal file
36
src/components/FormFields/TextReadonly.vue
Normal 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>
|
||||
@@ -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",
|
||||
|
||||
@@ -1712,7 +1712,9 @@
|
||||
"UpdateNodeAssetHardwareInfo": "ノード資産ハードウェア情報の更新"
|
||||
},
|
||||
"users": {
|
||||
"SetStatus": "ステータスの設定",
|
||||
"Set": "設定",
|
||||
"NotSet": "未設定",
|
||||
"Login": "ユーザー登録",
|
||||
"InviteSuccess": "成功招待",
|
||||
"inputPhone": "携帯電話の番号をお願いします",
|
||||
|
||||
@@ -1708,7 +1708,9 @@
|
||||
"UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息"
|
||||
},
|
||||
"users": {
|
||||
"SetStatus": "设置状态",
|
||||
"Set": "已设置",
|
||||
"NotSet": "未设置",
|
||||
"Login": "用户登录",
|
||||
"InviteSuccess": "邀请成功",
|
||||
"inputPhone": "请输入手机号码",
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user