fix : 修复 explore 快照 部分图标不显示的问题

This commit is contained in:
zhangyu
2022-09-15 18:26:24 +08:00
parent edf723d784
commit aaaf007385
4 changed files with 28 additions and 20 deletions

View File

@@ -561,17 +561,21 @@ textarea {
border-radius: 3px; border-radius: 3px;
} }
} }
.explore { .el-icon-arrow-down{
.el-icon-arrow-down{ font-family: nz-icon!important;
font-family: nz-icon!important; }
} .el-icon-arrow-down::before{
.el-icon-arrow-down::before{ content: '\e6b0';
content: '\e6b0'; }
} .el-icon-check{
.el-icon-check{ font-family: nz-icon!important;
font-family: nz-icon!important; }
} .el-icon-check::before{
.el-icon-check::before{ content: '\e689';
content: '\e689'; }
} .el-icon-arrow-left{
font-family: nz-icon!important;
}
.el-icon-check::before{
content: '\e778';
} }

View File

@@ -1686,6 +1686,9 @@ export default {
unit: this.chartUnit, unit: this.chartUnit,
expressions: this.expressions.map(item => encodeURIComponent(item)) 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 => { this.$get('/visual/explore/snapshot', params, 'blob').then(res => {
const self = this const self = this
let fileName = this.showMetrics ? 'Metrics explore' : 'Logs explore' let fileName = this.showMetrics ? 'Metrics explore' : 'Logs explore'

View File

@@ -28,12 +28,12 @@
<el-collapse-item class="el-collapse-item__height" name="2" title="Table"> <el-collapse-item class="el-collapse-item__height" name="2" title="Table">
<div slot="title" class="explore-table-title"> <div slot="title" class="explore-table-title">
{{$t('dashboard.panel.chartForm.typeVal.table.label')}} {{$t('dashboard.panel.chartForm.typeVal.table.label')}}
<i <!-- <i-->
class="nz-icon-gear nz-icon" <!-- class="nz-icon-gear nz-icon"-->
style="position: absolute;right: 10px;top: 8px" <!-- style="position: absolute;right: 10px;top: 8px"-->
@click.stop="tools.showCustomTableTitle = true" <!-- @click.stop="tools.showCustomTableTitle = true"-->
:title="$t('overall.selectColumns')" <!-- :title="$t('overall.selectColumns')"-->
></i> <!-- ></i>-->
<!-- 自定义table列 --> <!-- 自定义table列 -->
<transition name="el-zoom-in-top"> <transition name="el-zoom-in-top">
<element-set <element-set

View File

@@ -34,7 +34,7 @@
<span class="operation-label">Result:</span> <span class="operation-label">Result:</span>
<span class="operation-length">{{tableData.length}}</span> <span class="operation-length">{{tableData.length}}</span>
</div> </div>
<div class="log-operation log-operation--right"> <div class="log-operation log-operation--right" v-if=" dataJson && dataJson.type">
<button class="top-tool-btn" style="cursor: pointer;z-index: 2;" type="button" @click="exportLog" :title="$t('overall.download')"><i class="nz-icon nz-icon-download"></i></button> <button class="top-tool-btn" style="cursor: pointer;z-index: 2;" type="button" @click="exportLog" :title="$t('overall.download')"><i class="nz-icon nz-icon-download"></i></button>
</div> </div>
</div> </div>
@@ -130,6 +130,7 @@ export default {
const theme = localStorage.getItem(`nz-user-${localStorage.getItem('nz-user-id')}-theme`) || 'light' const theme = localStorage.getItem(`nz-user-${localStorage.getItem('nz-user-id')}-theme`) || 'light'
return { return {
theme, theme,
dataJson: window.dataJson,
operations: { operations: {
levels: [0, 1, 2, 3, 4, 5, 6], levels: [0, 1, 2, 3, 4, 5, 6],
descending: true descending: true