UPF图细节调整

This commit is contained in:
lai
2024-02-22 19:35:16 +08:00
parent 0937efc6e6
commit d2507e4706
2 changed files with 14 additions and 5 deletions

View File

@@ -57,10 +57,15 @@ function fnDesign(container: HTMLElement | undefined, option: EChartsOption) {
}
option && upfFlowChart.value.setOption(option);
window.onresize = function () {
// echarts 窗口缩放自适应 随着div--echarts-records的大小来适应
upfFlowChart.value.resize();
};
// 创建 ResizeObserver 实例
var observer = new ResizeObserver(entries => {
if (upfFlowChart.value) {
upfFlowChart.value.resize();
}
});
// 监听元素大小变化
observer.observe(container);
}
//渲染速率图
@@ -193,6 +198,10 @@ function initPicture() {
yAxis: [
{
name: charts.unit,
nameTextStyle: {
fontSize: 12, // 设置文字距离x轴的距离
padding: [0, -10, -1, 0], // 设置名称在x轴方向上的偏移
},
type: 'value',
// splitNumber: 4,
min: 0,

View File

@@ -251,7 +251,7 @@ onBeforeUnmount(() => {
</div>
<div
class="item toRouter"
@click="fnToRouter('Ims_2080')"
@click="fnToRouter('Ue_2081')"
:title="t('views.dashboard.overview.toRouter')"
>
<div>