diff --git a/nezha-fronted/src/components/charts/line-chart-block.vue b/nezha-fronted/src/components/charts/line-chart-block.vue index 23a131d4e..5ebe40687 100644 --- a/nezha-fronted/src/components/charts/line-chart-block.vue +++ b/nezha-fronted/src/components/charts/line-chart-block.vue @@ -445,6 +445,8 @@ export default { if (!maxValueCopies.copies) { option.yAxis.min = 0 option.yAxis.max = 1 + } else { + option.yAxis.max = undefined } if (unit.type == 'Time' || option.yAxis.maxInterval === 1) { delete option.yAxis.maxInterval @@ -559,6 +561,8 @@ export default { if (!maxValueCopies.copies) { option.yAxis.min = 0 option.yAxis.max = 1 + } else { + option.yAxis.max = undefined } if (unit.type == 'Time' || option.yAxis.maxInterval === 1) { delete option.yAxis.maxInterval @@ -1000,9 +1004,11 @@ export default { series: dataArg } if (!maxValueCopies.copies) { - option.yAxis.min = 0 - option.yAxis.max = 1 - } + option.yAxis.min = 0 + option.yAxis.max = 1 + } else { + option.yAxis.max = undefined + } if (unit.type == 'Time') { delete option.yAxis.maxInterval } @@ -1912,9 +1918,11 @@ export default { } } if (!maxValueCopies.copies) { - option.yAxis.min = 0 - option.yAxis.max = 1 - } + option.yAxis.min = 0 + option.yAxis.max = 1 + } else { + option.yAxis.max = undefined + } if (unit.type == 'Time' || option.yAxis.maxInterval === 1) { delete option.yAxis.maxInterval } @@ -1957,9 +1965,11 @@ export default { } } if (!maxValueCopies.copies) { - option.yAxis.min = 0 - option.yAxis.max = 1 - } + option.yAxis.min = 0 + option.yAxis.max = 1 + } else { + option.yAxis.max = undefined + } if (unit.type == 'Time' || option.yAxis.maxInterval === 1) { delete option.yAxis.maxInterval } diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue index ae7af9a8f..6ec821419 100644 --- a/nezha-fronted/src/components/page/alert/alertMessage.vue +++ b/nezha-fronted/src/components/page/alert/alertMessage.vue @@ -191,7 +191,7 @@ export default { dialogText: '', url: 'alert/message', // 导出相关 - importBox: { show: false, title: this.$t('overall.importExcel'), type: 1, record: 'all', format: 1 }, + importBox: { show: false, title: this.$t('overall.exportExcel'), type: 1, record: 'all', format: 1 }, deleteBox: { show: false, ids: '', remark: '', state: 2 }, // 详情相关 graphShow: false,