diff --git a/nezha-fronted/src/components/common/rightBox/panelBox.vue b/nezha-fronted/src/components/common/rightBox/panelBox.vue index ba764591f..c096769ee 100644 --- a/nezha-fronted/src/components/common/rightBox/panelBox.vue +++ b/nezha-fronted/src/components/common/rightBox/panelBox.vue @@ -331,7 +331,7 @@ export default { { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], 'param.report.range.unit': [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: this.$t('validate.required'), trigger: 'change' } ], 'param.report.schedule.type': [ { required: true, message: this.$t('validate.required'), trigger: 'change' } diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index e8e4ae609..92cbf54a1 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -403,10 +403,10 @@ export default { report: { enable: false, range: { - unit: '' + unit: 'day' }, schedule: { - type: '0', + type: '2', repeat: 1, nums: [], stime: '', @@ -451,13 +451,13 @@ export default { report: { enable: false, range: { - unit: '' + unit: 'day' }, schedule: { stime: '', etime: '', nums: [], - type: 0 + '', + type: 2 + '', repeat: 1 } },