diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue index c6c3060ea..196ede057 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue @@ -133,7 +133,7 @@ - + @@ -325,6 +325,7 @@ export default { data () { return { chartLoading: false, + logTabNoData: false, rightBox: { // 面板弹出框相关 show: false }, @@ -492,6 +493,11 @@ export default { } if (res.length > 0) { const logData = res.map(r => r.data) + if (logData[0].result.length > 0) { + this.logTabNoData = false + } else { + this.logTabNoData = true + } const hasGraph = logData.some(d => d.resultType === 'matrix') const hasLog = logData.some(d => d.resultType === 'streamsFormat') const graphTabIndex = this.showTab.indexOf('1') diff --git a/nezha-fronted/src/components/page/dashboard/explore/logTab.vue b/nezha-fronted/src/components/page/dashboard/explore/logTab.vue index 859273158..0ae4d23cb 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/logTab.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/logTab.vue @@ -83,11 +83,11 @@ @@ -96,7 +96,7 @@ -
No results found2
+
No results found
 
@@ -116,8 +116,8 @@ export default { type: Boolean, default: true }, - loadingExplore: Boolean, loadingBottom: Boolean, + exploreLogTable: Boolean, exploreItem: Boolean }, computed: {