diff --git a/nezha-fronted/src/assets/css/common.scss b/nezha-fronted/src/assets/css/common.scss index 91f2cac0a..dd8744f0c 100644 --- a/nezha-fronted/src/assets/css/common.scss +++ b/nezha-fronted/src/assets/css/common.scss @@ -561,17 +561,21 @@ textarea { border-radius: 3px; } } -.explore { - .el-icon-arrow-down{ - font-family: nz-icon!important; - } - .el-icon-arrow-down::before{ - content: '\e6b0'; - } - .el-icon-check{ - font-family: nz-icon!important; - } - .el-icon-check::before{ - content: '\e689'; - } +.el-icon-arrow-down{ + font-family: nz-icon!important; +} +.el-icon-arrow-down::before{ + content: '\e6b0'; +} +.el-icon-check{ + font-family: nz-icon!important; +} +.el-icon-check::before{ + content: '\e689'; +} +.el-icon-arrow-left{ + font-family: nz-icon!important; +} +.el-icon-check::before{ + content: '\e778'; } diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue index 4679db3e4..5a26831e6 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue @@ -1686,6 +1686,9 @@ export default { unit: this.chartUnit, expressions: this.expressions.map(item => encodeURIComponent(item)) } + if (!this.showMetrics) { + params.limit = this.$refs.logDetail ? this.$refs.logDetail.getLimit() : 100 + } this.$get('/visual/explore/snapshot', params, 'blob').then(res => { const self = this let fileName = this.showMetrics ? 'Metrics explore' : 'Logs explore' diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItemHtml.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItemHtml.vue index 68e247d64..7835306b5 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItemHtml.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItemHtml.vue @@ -28,12 +28,12 @@
{{$t('dashboard.panel.chartForm.typeVal.table.label')}} - + + + + + + Result: {{tableData.length}}
-
+
@@ -130,6 +130,7 @@ export default { const theme = localStorage.getItem(`nz-user-${localStorage.getItem('nz-user-id')}-theme`) || 'light' return { theme, + dataJson: window.dataJson, operations: { levels: [0, 1, 2, 3, 4, 5, 6], descending: true