feat:新增功能

1.图表预览国际化
2.图表预览多图展示的创建面板和选择已有面板
3.图表预览创建或者选择面板保存成功后跳转到panel界面
(说明:曲线图tip信息显示还未调整及legend滚动条显示还未实现)
This commit is contained in:
hanyuxia
2020-01-15 17:17:08 +08:00
parent 84f8791021
commit fb46c00683
11 changed files with 169 additions and 88 deletions

View File

@@ -31,7 +31,7 @@
:before-close="handleClose"
@opened="initDialog">
<el-row class="element-top-border" >
<div class="float-right" style="padding-top:10px;">
<div class="float-right pt10" >
<el-date-picker size="small" ref="calendar"
format="yyyy/MM/dd HH:mm"
@change="dateChange"
@@ -242,7 +242,8 @@ export default {
],
tooltip: {
trigger: 'axis',
confine:true
confine:true,
//formatter:"{a}<br/>"+"<div style='display:block;word-break:break-all;word-wrap:break-word;white-space:pre-wrap'>"+"{b}"+"</div>"+"<br/>{c}",
},
legend: {
type:'scroll',
@@ -371,9 +372,6 @@ export default {
return `${parseFloat(kbNum.toFixed(2))}K`;
}
return parseFloat(num.toFixed(2));
//alert(1);
//return value;
//return this.getNumStr(value);
},
},
//boundaryGap:[0,0.2]