UPF图细节调整
This commit is contained in:
@@ -57,10 +57,15 @@ function fnDesign(container: HTMLElement | undefined, option: EChartsOption) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
option && upfFlowChart.value.setOption(option);
|
option && upfFlowChart.value.setOption(option);
|
||||||
window.onresize = function () {
|
|
||||||
// echarts 窗口缩放自适应 随着div--echarts-records的大小来适应
|
// 创建 ResizeObserver 实例
|
||||||
upfFlowChart.value.resize();
|
var observer = new ResizeObserver(entries => {
|
||||||
};
|
if (upfFlowChart.value) {
|
||||||
|
upfFlowChart.value.resize();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// 监听元素大小变化
|
||||||
|
observer.observe(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
//渲染速率图
|
//渲染速率图
|
||||||
@@ -193,6 +198,10 @@ function initPicture() {
|
|||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
name: charts.unit,
|
name: charts.unit,
|
||||||
|
nameTextStyle: {
|
||||||
|
fontSize: 12, // 设置文字距离x轴的距离
|
||||||
|
padding: [0, -10, -1, 0], // 设置名称在x轴方向上的偏移
|
||||||
|
},
|
||||||
type: 'value',
|
type: 'value',
|
||||||
// splitNumber: 4,
|
// splitNumber: 4,
|
||||||
min: 0,
|
min: 0,
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ onBeforeUnmount(() => {
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="item toRouter"
|
class="item toRouter"
|
||||||
@click="fnToRouter('Ims_2080')"
|
@click="fnToRouter('Ue_2081')"
|
||||||
:title="t('views.dashboard.overview.toRouter')"
|
:title="t('views.dashboard.overview.toRouter')"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user