fix:修改问题

1 dashboard模块prometheus查询接口query内容进行encode
2 panel下拉列表位置左侧菜单收缩后显示异常
3 echarts图表对于返回数据metric为空图表,tooltip无法正常显示修改(列表及全屏,预览及全屏,explore及全屏)
4 图表tooltip中的冒号删掉
5 metric选择,metric及label高度为100%,无滚动条
6 增加网格,取消y轴
7 tooltip内容和legend内容显示不一致
8 tooltip颜色随机产生
This commit is contained in:
hyx
2020-04-17 21:50:26 +08:00
parent 0a35cba5cc
commit 7cafaf12da
7 changed files with 575 additions and 38 deletions

View File

@@ -69,8 +69,7 @@
handle:'.chartTitle',
}" >@clone="clone"
-->
<draggable v-model="dataList" @chang="change" @start="start" @end="end" :move="move" @choose="choose"
@add="add" @update="update" @remove="remove" @sort="sort"
<draggable v-model="dataList" @start="start" @end="end" :move="move"
:scroll-sensitivity="150"
:options="{
group:{name:'chartGroup',pull:'false'},
@@ -501,7 +500,6 @@ export default {
}else {
this.dataList = this.dataTotalList;
}
console.log('0000==========',this.dataList);
this.$nextTick(() => {
if (this.dataList.length > 0 && this.$refs.editChart) {
this.$refs.editChart.forEach((item, i) => {
@@ -636,6 +634,9 @@ export default {
if(!alias || alias===''){
alias = chartItem.elements[innerPos].expression;
}
//if(alias){
//host = alias;
//}
legend.push({name:host,alias:alias});
// 图表中每条线的名字,去掉最后的逗号与空格:metric名称, 标签1=a,标签2=c
seriesItem.theData.name = host;