perf: 命令存储ES可根据日期动态建立索引

This commit is contained in:
jiangweidong
2022-05-01 20:28:15 +08:00
committed by Eric_Lee
parent fe5649fbd2
commit d6c3cce161

View File

@@ -31,14 +31,18 @@ export default {
helpText: this.$t('sessions.SetToDefaultStorage')
},
meta: {
fields: ['HOSTS', 'INDEX', 'IGNORE_VERIFY_CERTS'],
fields: ['HOSTS', 'IS_INDEX_BY_DAY', 'INDEX_PREFIX', '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')
helpText: this.$t('sessions.helpText.esIndex'),
hidden: (formValue) => formValue.IS_INDEX_BY_DAY
}
}
}