From 87bb6df35f801b33836f5ba5c3b87409c13127f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Tue, 16 Apr 2024 15:58:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtag=E5=B1=95=E5=BC=80?= =?UTF-8?q?=E6=97=B6=E9=87=8D=E7=BD=AE=E6=97=B6=E9=97=B4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E6=97=B6=E9=97=B4=E7=BB=84=E4=BB=B6=E7=9A=84=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/TimeRange/DateTimeRange.vue | 3 --- src/components/table/tag/TagTable.vue | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) 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) {