perf: 优化字段

This commit is contained in:
jiangweidong 2022-05-09 15:27:19 +08:00 committed by Eric_Lee
parent d6c3cce161
commit 92a23c6e69
4 changed files with 5 additions and 9 deletions

View File

@ -894,7 +894,7 @@
"TerminateTaskSendSuccessMsg": "Terminate task has been send, Please check later",
"helpText": {
"esUrl": "Tip: If you have multiple hosts, use comma (, ) to split (eg: http://www.jumpserver.a.com, http://www.jumpserver.b.com)",
"esIndex":"Es provides the default index: jumpserver",
"esIndex":"Es provides the default index: jumpserver. If you choose to build an index by date, this blank is the index prefix",
"esDocType": "Es provides the default document type: command"
}
},

View File

@ -915,7 +915,7 @@
"TerminateTaskSendSuccessMsg": "最終タスクが発行されました。後で更新して確認してください。",
"helpText": {
"esUrl": "ヒント: 複数のホストがある場合は、カンマ ( , ) で分割します。 (Eg: http://www.jumpserver.a.com:3000、http://www.jumpserver.b.com:3000)",
"esIndex": "Esはデフォルトindexを提供します。",
"esIndex": "Esはデフォルトindexを提供します。日付による索引の作成を選択した場合、この空は索引接頭辞です。",
"esDocType": "Esデフォルトのドキュメントタイプ: command"
}
},

View File

@ -916,7 +916,7 @@
"TerminateTaskSendSuccessMsg": "终断任务已下发,请稍后刷新查看",
"helpText": {
"esUrl": "提示:如果有多台主机,请使用逗号 ( , ) 进行分割。eg: http://www.jumpserver.a.com:3000,http://www.jumpserver.b.com:3000",
"esIndex": "es提供默认indexjumpserver",
"esIndex": "es提供默认indexjumpserver。若选择按日期建索引,此空为索引前缀",
"esDocType": "es默认文档类型command"
}
},

View File

@ -31,18 +31,14 @@ export default {
helpText: this.$t('sessions.SetToDefaultStorage')
},
meta: {
fields: ['HOSTS', 'IS_INDEX_BY_DAY', 'INDEX_PREFIX', 'INDEX', 'IGNORE_VERIFY_CERTS'],
fields: ['HOSTS', 'INDEX_BY_DATE', 'INDEX', 'IGNORE_VERIFY_CERTS'],
fieldsMeta: {
HOSTS: {
helpText: this.$t('sessions.helpText.esUrl')
},
INDEX_PREFIX: {
hidden: (formValue) => !formValue.IS_INDEX_BY_DAY
},
INDEX: {
rules: [Required],
helpText: this.$t('sessions.helpText.esIndex'),
hidden: (formValue) => formValue.IS_INDEX_BY_DAY
helpText: this.$t('sessions.helpText.esIndex')
}
}
}