From 74706dcc37c22ddb5e5656d8b4a950c253f71424 Mon Sep 17 00:00:00 2001 From: Caozhenhui <823914102@qq.com> Date: Fri, 29 Oct 2021 16:14:16 +0800 Subject: [PATCH] added new period type 'weekly' to meterenergy in WEB UI --- web/src/components/MyEMS/common/PeriodTypeOptions.js | 1 + web/src/i18n.js | 1 + 2 files changed, 2 insertions(+) diff --git a/web/src/components/MyEMS/common/PeriodTypeOptions.js b/web/src/components/MyEMS/common/PeriodTypeOptions.js index 707262de..bf2ac204 100644 --- a/web/src/components/MyEMS/common/PeriodTypeOptions.js +++ b/web/src/components/MyEMS/common/PeriodTypeOptions.js @@ -1,5 +1,6 @@ export const periodTypeOptions = [ { value: 'yearly', label: 'Yearly' }, { value: 'monthly', label: 'Monthly' }, + { value: 'weekly', label: 'Weekly' }, { value: 'daily', label: 'Daily' }, { value: 'hourly', label: 'Hourly' }]; \ No newline at end of file diff --git a/web/src/i18n.js b/web/src/i18n.js index 428f5439..35ac6409 100644 --- a/web/src/i18n.js +++ b/web/src/i18n.js @@ -1614,6 +1614,7 @@ const resources = { "Period Types": "时间尺度", "Yearly": "年", "Monthly": "月", + "Weekly": "周", "Daily": "日", "Hourly": "时", "Submit": "提交",