From 83c00039c52cb74f8f1bb2ce7eb41810ee1723e5 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 31 Oct 2023 18:22:57 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3302=20fix=EF=BC=9Aalert=20message=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/css/common.scss | 20 +++++++++++++++++++ .../src/components/common/js/constants.js | 6 +++++- .../common/rightBox/chart/chartConfig.vue | 1 - .../rightBox/chart/systemChartConfig.vue | 1 - .../common/rightBox/editEndpointBoxNew.vue | 4 ---- .../components/common/rightBox/moduleBox.vue | 4 ---- .../rightBox/software/softwareTypeBox.vue | 1 - .../components/page/alert/alertMessage.vue | 2 +- .../src/components/page/config/monitor.vue | 1 - 9 files changed, 26 insertions(+), 14 deletions(-) diff --git a/nezha-fronted/src/assets/css/common.scss b/nezha-fronted/src/assets/css/common.scss index 65fb76be4..40b79648d 100644 --- a/nezha-fronted/src/assets/css/common.scss +++ b/nezha-fronted/src/assets/css/common.scss @@ -746,3 +746,23 @@ i.nz-icon-override{ input::placeholder{ text-transform:capitalize; } +.vue-tags-input { + .ti-tag.ti-valid { + max-width: 100%; + .ti-content { + max-width: 90%; + flex-shrink: 0; + .ti-tag-center { + max-width: 100%; + flex-shrink: 0; + > span { + max-width: 100%; + display: inline-block; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + } + } + } +} diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js index 7299860ce..9093fb8ce 100644 --- a/nezha-fronted/src/components/common/js/constants.js +++ b/nezha-fronted/src/components/common/js/constants.js @@ -363,11 +363,15 @@ export const chart = { export const intervalList = [ { value: 0, label: i18n.t('dashboard.dashboard.chartForm.lockList.off') }, + { value: 5, label: '5s' }, + { value: 10, label: '10s' }, { value: 30, label: '30s' }, { value: 60, label: '1m' }, { value: 300, label: '5m' }, { value: 900, label: '15m' }, - { value: 1800, label: '30m' } + { value: 1800, label: '30m' }, + { value: 3600, label: '1h' }, + { value: 7200, label: '2h' } ] export const setting = { diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue index 7da534753..20dea23cf 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -181,7 +181,6 @@ > --> - + diff --git a/nezha-fronted/src/components/page/config/monitor.vue b/nezha-fronted/src/components/page/config/monitor.vue index 1c131cbd7..b59463ffc 100644 --- a/nezha-fronted/src/components/page/config/monitor.vue +++ b/nezha-fronted/src/components/page/config/monitor.vue @@ -30,7 +30,6 @@