fix:修改BUG
dashboard模块图表 1.tooltip去掉指定label功能去掉 2.图表高度调整 3.y轴刻度数值显示不全 4.metric的expert模式进行格式化,去掉空白字符 5.tooltip内容格式调整优化(一行显示,超出显示省略号,提示框显示位置等调整)
This commit is contained in:
@@ -9,12 +9,13 @@
|
||||
}
|
||||
.list-width{
|
||||
width:98%;
|
||||
overflow-x:hidden;/*避免鼠标第一次放到曲线时,x轴出现滚动条后消失*/
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
|
||||
<div class="list-width">
|
||||
<div class="chartBox" v-for="(item, index) in dataList" :key="item.id">
|
||||
<div class="chartBox" v-for="(item, index) in dataList" :key="item.id" :id="item.title+'_'+item.id">
|
||||
|
||||
<line-chart-block v-if="item.type === 'line' || item.type === 'bar' || item.type === 4" :key="'inner' + item.id"
|
||||
ref="editChart"
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
.clearfix:after{
|
||||
display: block;
|
||||
content: "";
|
||||
height:0;
|
||||
visibility:hidden;
|
||||
clear: both;
|
||||
}
|
||||
.clearfix{
|
||||
margin-bottom: 20px;
|
||||
//margin-bottom: 20px;
|
||||
}
|
||||
.legend-shape{
|
||||
display:inline-block;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -275,6 +275,9 @@ export default {
|
||||
if (this.pointer === pointer) {
|
||||
this.$refs.elementInfo.validate((valid) => {
|
||||
if (valid) {//根据设置的rules进行验证,验证通过,则返回,继续进行保存(每个el-form-item都需要验证)
|
||||
if(this.elementInfo.expression){
|
||||
this.elementInfo.expression = this.elementInfo.expression.replace(/\s+| /ig,'');
|
||||
}
|
||||
this.$emit('on-add-target-success', this.elementInfo, pointer);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -304,6 +304,9 @@ export default {
|
||||
saveTarget() {
|
||||
this.$refs.elementInfo.validate((valid) => {
|
||||
if (valid) {
|
||||
if(this.elementInfo.expression){
|
||||
this.elementInfo.expression = this.elementInfo.expression.replace(/\s+| /ig,'');
|
||||
}
|
||||
this.$emit('on-add-target-success', this.elementInfo);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
}
|
||||
.chart-preview-area {
|
||||
height: calc(100% - 180px);
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
position: relative
|
||||
}
|
||||
.common-detail-top-title {
|
||||
|
||||
Reference in New Issue
Block a user