diff --git a/nezha-fronted/src/components/common/rightBox/panelBox.vue b/nezha-fronted/src/components/common/rightBox/panelBox.vue
index e00bb1062..4407300e2 100644
--- a/nezha-fronted/src/components/common/rightBox/panelBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/panelBox.vue
@@ -189,29 +189,31 @@
class="form-item--half-width"
prop="param.report.schedule.stime"
>
-
-
-
+
+
+
-
-
-
+ :label="$t('dashboard.panel.endAt')"
+ class="form-item--half-width"
+ prop="param.report.schedule.etime"
+ >
+
+
+
{{ $t("dashboard.panel.prevDay") }}
@@ -577,7 +579,24 @@ export default {
}).catch(() => {
this.prevent_opt.save = false
})
- }
+ },
+ changeData (flag) {
+ if (flag) {
+ if (this.editPanel.param.report.schedule.etime) {
+ if (this.editPanel.param.report.schedule.stime > this.editPanel.param.report.schedule.etime) {
+ this.editPanel.param.report.schedule.stime = ''
+ this.$message.error(this.$t('alert.silence.timeError'))
+ }
+ }
+ } else {
+ if (this.editPanel.param.report.schedule.stime) {
+ if (this.editPanel.param.report.schedule.stime > this.editPanel.param.report.schedule.etime) {
+ this.editPanel.param.report.schedule.etime = ''
+ this.$message.error(this.$t('alert.silence.timeError'))
+ }
+ }
+ }
+ }
},
watch: {
obj: {