fix: 暂时去掉promql联想;删除几个console.log

This commit is contained in:
陈劲松
2020-11-20 14:44:44 +08:00
committed by chenjinsong
parent 246eafc57c
commit e058fd1b58
3 changed files with 7 additions and 5 deletions

View File

@@ -1396,8 +1396,10 @@
this.clearChart();
//const addChartBox = document.querySelector('.right-box-add-chart');
//addChartBox.style.cssText = this.oldChartBoxCss;
try {
this.echartModalStore.off('magictypechanged');
this.$refs.screenLegendArea._ps_.destroy();
} finally {}
this.$refs.screenLegendArea._ps_ && this.$refs.screenLegendArea._ps_.destroy();
},
};

View File

@@ -2,7 +2,7 @@
<div class="metric-editor" v-clickoutside="clickout" :class="{'metric-editor-rb': styleType == 2}">
<div :id="id" class="editor-core" ref="editor" :style="{height: styleType == 2 ? 'auto' : ''}"></div>
<span class="nz-input-append editor-clear" style="display: none" @click="clearContent"><i class="nz-icon nz-icon-circle-close"></i></span>
<div class="metric-editor-popper" :style="{left:popperPos.left+'px'}">
<div class="metric-editor-popper" :style="{left:popperPos.left+'px'}" v-show="false">
<div class="metric-popper-main" v-show="showType">
<el-scrollbar style="height: 100%;width:100%" class="el-scrollbar-small" ref="scroll">
<div v-for="(key, index) in orders" >

View File

@@ -343,7 +343,7 @@ instance_cpu_time_ns{app="fox", proc="widget", rev="4d3a513", env="prod", job="c
this.$refs['promql-'+promqlIndex][0].setError('')
}else{
console.log(response)
//console.log(response)
this.$refs['promql-'+promqlIndex][0].setError(response.error)
}
})
@@ -425,7 +425,7 @@ instance_cpu_time_ns{app="fox", proc="widget", rev="4d3a513", env="prod", job="c
},
expressionChange: function () {
let nowTimeType=this.$refs.pickTime.$refs.timePicker.nowTimeType;
console.log(this.filterTime,nowTimeType);
//console.log(this.filterTime,nowTimeType);
this.setSearchTime(nowTimeType.type,nowTimeType.value);
if (this.expressions && this.expressions.length >= 1) {
this.queryTableData();