diff --git a/nezha-fronted/src/assets/css/components/common/rightBox/panelBox.scss b/nezha-fronted/src/assets/css/components/common/rightBox/panelBox.scss new file mode 100644 index 000000000..27ccfbed3 --- /dev/null +++ b/nezha-fronted/src/assets/css/components/common/rightBox/panelBox.scss @@ -0,0 +1,153 @@ +.right-box-panel{ + .item-receivers{ + .el-select.el-select--small{ + width: 100%; + } + .item-receivers-text{ + color: $--color-text-secondary; + } + } + .el-input--suffix.el-date-editor--datetime .el-input__inner{ + padding-left: 15px; + } + .form-items--half-width-group{ + .item-receivers{ + width: 100%; + .el-select.el-select--small{ + width: 100%; + } + } + .form-item--half-width{ + .el-date-editor.el-date-editor--datetime{ + width: 100%; + .el-input__inner{ + height: 32px; + } + } + } + .check-month_box{ + .el-checkbox-group{ + display: flex; + justify-content: start; + align-items: center; + flex-wrap: wrap; + .el-checkbox-button{ + display: flex; + justify-content: center; + align-items: center; + width: calc(100% / 7); + margin-right: -2px; + margin-bottom: -1px; + border: 1px solid $--border-color-light; + .el-checkbox-button__inner{ + border: 0px; + border-left: 0px !important; + border-bottom: 0px !important; + display: block; + width: 100%; + height: 100%; + background-color: $--background-color-empty; + border-radius: 0; + } + } + } + + .el-checkbox-button.is-checked .el-checkbox-button__inner { + color: #fff; + border-radius: 0; + background-color: $--color-primary !important; + } + } + .range-time{ + width: 100%; + .el-form-item__content{ + height: 41px; + .el-radio-group{ + height: 100%; + border-left: 1px solid $--border-color-light; + .el-radio-button__inner{ + height: 100%; + line-height: 1.5; + font-size: 14px; + color: $--color-text-primary; + } + } + .el-checkbox-group{ + height: 100%; + .el-checkbox-button{ + margin-right: -2px; + .el-checkbox-button__inner{ + background-color: $--background-color-empty; + border:1px solid $--border-color-light; + } + } + } + } + .el-radio-group{ + display: flex; + border-left: 0; + .el-radio-button{ + flex: 1; + } + } + + .el-checkbox-button.is-checked .el-checkbox-button__inner { + color: #fff; + border-radius: 0; + background-color: $--color-primary !important; + border: 1px solid $--color-primary !important; + // margin-right: -1px; + } + } + .form-tabs{ + width: 100%; + .el-tabs__nav{ + display: flex; + .el-tabs__item{ + flex: 1; + } + .el-checkbox-button.is-checked .el-checkbox-button__inner { + color: #fff; + border-radius: 0; + background-color: $--color-primary !important; + border: 1px solid $--color-primary !important; + // margin-right: -1px; + } + } + } + .form-day-week{ + width: 100%; + .el-input-group__append{ + border: 1px solid $--border-color-light; + background-color: $--right-box-sub-title-background-color; + } + } + } + } + + .el-form-item__content{ + text-align: unset !important; + .el-checkbox-button{ + width: calc(100% / 7) !important; + .el-checkbox-button__inner{ + width: 100%; + padding: 11px 3px; + } + + } + .el-checkbox-button.is-focus .el-checkbox-button__inner{ + border-color: $--border-color-base; + } + + .el-tabs__item.is-top.is-active{ + color: #fff !important; + background-color: $--color-primary !important; + } + .el-radio-button.el-radio-button--small.is-active{ + .el-radio-button__inner{ + color: #fff !important; + } + } + } + + \ No newline at end of file diff --git a/nezha-fronted/src/assets/css/components/index.scss b/nezha-fronted/src/assets/css/components/index.scss index 1f13dcb64..17add18bb 100644 --- a/nezha-fronted/src/assets/css/components/index.scss +++ b/nezha-fronted/src/assets/css/components/index.scss @@ -51,6 +51,7 @@ @import './common/rightBox/chartRightBox/chartRightBox.scss'; @import './common/rightBox/mibBox.scss'; @import './common/rightBox/assetBactchEditBox.scss'; +@import './common/rightBox/panelBox.scss'; @import './common/table/alert/alertMessageTable.scss'; @import './common/table/alert/alertRuleTable.scss'; @import './common/table/alert/alertSilenceTable.scss'; diff --git a/nezha-fronted/src/components/common/rightBox/panelBox.vue b/nezha-fronted/src/components/common/rightBox/panelBox.vue index 721426ec2..0094a6c81 100644 --- a/nezha-fronted/src/components/common/rightBox/panelBox.vue +++ b/nezha-fronted/src/components/common/rightBox/panelBox.vue @@ -14,6 +14,148 @@ + + + + + + + + + {{$t('config.assetLabel.default')}} + + + {{$t('dashboard.panel.crosshair')}} + + + {{$t('dashboard.panel.shareTooltip')}} + + +
{{$t('dashboard.panel.chartTooltipText')}}
+
+ +
+ +
+ {{$t('dashboard.panel.report')}} + +
+
+
+ +
+ + + + + + + + + + + {{ $t("dashboard.panel.prevDay") }} + {{ $t("dashboard.panel.prevWeek") }} + {{ $t("dashboard.panel.prevMonth") }} + + + + + + + + + + + + + + + + + + + + {{item}} + + + + + {{ item }} + + + + + + {{item.name}} + + + +
+
+
+
+ @@ -32,6 +174,7 @@