diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue
index 6304e2303..682553449 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue
@@ -159,11 +159,11 @@
{{$t("project.endpoint.dialogTitle")}}
-
+
@@ -214,6 +214,7 @@
panelData: [], //chart-box的panel下拉框数据,
hideSameLabels: true,
sameLabels:['instance','module','project','asset','endpoint','datacenter'],
+ chartUnit:5
}
},
methods: {
@@ -236,6 +237,7 @@
metricInfo.elements.push({expression: this.selectedEndpoints[i].element, type: type});
}
this.$refs.addChartModal.createData(-1, metricInfo);
+ this.$refs.addChartModal.setUnit(this.chartUnit)
},
dropdownHandler(show) {
if (show) {
@@ -434,6 +436,12 @@
dialogClose:function(){
this.graphShow=false;
},
+ chartUnitChange:function(unit){
+ this.chartUnit=unit;
+ this.$nextTick(()=>{
+ this.queryChartDate()
+ })
+ },
queryChartDate:function(){
let start = this.searchTime[0]?this.searchTime[0]:this.getTime(-1, 'h');
let end = this.searchTime[1]?this.searchTime[1]:this.getTime(0, 'h')