diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/chartTempPreview.vue b/nezha-fronted/src/components/common/bottomBox/tabs/chartTempPreview.vue index f5fc59a30..6e6c5c070 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/chartTempPreview.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/chartTempPreview.vue @@ -14,7 +14,7 @@
-
@@ -109,7 +109,8 @@ export default { // removeModal: false, // 删除弹出 // deleteObj: {}, // 删除对象 // ---图表相关参数--end - scrollbarWrap: null + scrollbarWrap: null, + nowTimeType: {} } }, components: { @@ -192,6 +193,7 @@ export default { dateChange (val) { // this.searchTime = [...val]; const nowTimeType = this.$refs.pickTime.$refs.timePicker.nowTimeType + this.nowTimeType = this.$refs.pickTime.$refs.timePicker.nowTimeType this.setSearchTime(nowTimeType.type, nowTimeType.value) this.filter.start_time = bus.timeFormate(this.searchTime[0], 'yyyy-MM-dd hh:mm:ss') this.filter.end_time = bus.timeFormate(this.searchTime[1], 'yyyy-MM-dd hh:mm:ss') diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue index 6bcd83060..0b35ad694 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue @@ -100,7 +100,7 @@
-
@@ -220,7 +220,8 @@ export default { // ---图表相关参数--end scrollbarWrap: null, panelDataList: [], - batchDeleteObjs: [] + batchDeleteObjs: [], + nowTimeType: {} } }, components: { @@ -354,6 +355,7 @@ export default { // this.searchTime = [...val]; if (this.$refs.pickTime) { const nowTimeType = this.$refs.pickTime.$refs.timePicker.nowTimeType + this.nowTimeType = this.$refs.pickTime.$refs.timePicker.nowTimeType this.setSearchTime(nowTimeType.type, nowTimeType.value) this.filter.start_time = bus.timeFormate(this.searchTime[0], 'yyyy-MM-dd hh:mm:ss') this.filter.end_time = bus.timeFormate(this.searchTime[1], 'yyyy-MM-dd hh:mm:ss')