diff --git a/src/components/common/TimeRange/DateTimeRange.vue b/src/components/common/TimeRange/DateTimeRange.vue index 19c2b105..89969c06 100644 --- a/src/components/common/TimeRange/DateTimeRange.vue +++ b/src/components/common/TimeRange/DateTimeRange.vue @@ -219,9 +219,6 @@ export default { returnValue() } }) - watch(() => props.startTime, (newVal) => { - console.info(newVal) - }) /** * 监测下拉框,一旦隐藏,则设置其位置靠最左边 diff --git a/src/components/table/tag/TagTable.vue b/src/components/table/tag/TagTable.vue index e25eafb9..9c982cf9 100644 --- a/src/components/table/tag/TagTable.vue +++ b/src/components/table/tag/TagTable.vue @@ -460,7 +460,7 @@ export default { document.getElementById('tagDropdown' + item.id).click() }) // 重置时间条件 - this.$refs.dateTimeRange.quickChange(DEFAULT_TIME_FILTER_RANGE.tag.activeEntity || 60) + this.$refs.dateTimeRange && this.$refs.dateTimeRange.quickChange(DEFAULT_TIME_FILTER_RANGE.tag.activeEntity || 60) // this.init(item, api.tagTrafficEntityTrend, api.tagTrafficEntityStatistics) }, @@ -679,7 +679,7 @@ export default { } this.$nextTick(() => { // 重置时间条件 - this.$refs.dateTimeRange.quickChange(DEFAULT_TIME_FILTER_RANGE.tag.activeEntity || 60) + this.$refs.dateTimeRange && this.$refs.dateTimeRange.quickChange(DEFAULT_TIME_FILTER_RANGE.tag.activeEntity || 60) }) }, getIsBuiltIn (isBuiltIn) {