From f0dfb4d266178b62bd04e951604fbfd7ffb31059 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Mon, 20 Jul 2020 14:18:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(sessions=5Fcmd=5Fstorage):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=88=9B=E5=BB=BA=E5=91=BD=E4=BB=A4=E5=AD=98=E5=82=A8?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.json | 6 +++++- src/i18n/langs/en.json | 6 +++++- src/views/sessions/CommandStorageCreateUpdate.vue | 6 ++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index eb7dc2080..bd4662de5 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -555,7 +555,11 @@ }, "Monitor": "监控", "sessionMonitor": "监控", - "TerminateTaskSendSuccessMsg": "终断任务已下发,请稍后刷新查看" + "TerminateTaskSendSuccessMsg": "终断任务已下发,请稍后刷新查看", + "helpText": { + "esUrl": "提示:不需要写 http/https(例如:jumpserver.abc.com:9200)", + "esIndex": "提示:填写es服务器上已经创建好的索引" + } }, "setting": { "ApiKeyList": "API Key 列表", diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index d6c5a8390..fd87b6fd5 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -554,7 +554,11 @@ }, "Monitor": "Monitor", "sessionMonitor": "Session Monitor", - "TerminateTaskSendSuccessMsg": "Terminate task has been send, Please check later" + "TerminateTaskSendSuccessMsg": "Terminate task has been send, Please check later", + "helpText": { + "esUrl": "Tip: You don't need to write HTTP/HTTPS (for example, Jumpserver.abc.com :9200)", + "esIndex":"Tip: Fill in the index that has been created on the ES server" + } }, "setting": { "ApiKeyList": "Api key list", diff --git a/src/views/sessions/CommandStorageCreateUpdate.vue b/src/views/sessions/CommandStorageCreateUpdate.vue index c8b860843..0cf0957b3 100644 --- a/src/views/sessions/CommandStorageCreateUpdate.vue +++ b/src/views/sessions/CommandStorageCreateUpdate.vue @@ -51,13 +51,15 @@ export default { label: this.$t('sessions.hosts'), rules: [ { required: true, message: this.$t('common.fieldRequiredError') } - ] + ], + helpText: this.$t('sessions.helpText.esUrl') }, index: { label: this.$t('sessions.index'), rules: [ { required: true, message: this.$t('common.fieldRequiredError') } - ] + ], + helpText: this.$t('sessions.helpText.esIndex') }, doc_type: { label: this.$t('sessions.docType'),