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;
}
}
.explore {
.el-icon-arrow-down{
.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::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';
}

View File

@@ -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'

View File

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

View File

@@ -34,7 +34,7 @@
<span class="operation-label">Result:</span>
<span class="operation-length">{{tableData.length}}</span>
</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>
</div>
</div>
@@ -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