update 修复设置datazoom后鼠标滚动无法滚动页面的问题

This commit is contained in:
2026-01-20 16:35:47 +08:00
parent dfabbf0e88
commit 7d5e18d74e
2 changed files with 12 additions and 10 deletions

View File

@@ -108,15 +108,15 @@ const zoomRule = [
zoomLock: false, // 允许缩放
showDetail: false,
},
{
type: 'inside',
xAxisIndex: [0],
start: 0,
end: 2,
zoomOnMouseWheel: false, // 鼠标滚轮缩放
moveOnMouseMove: true, // 鼠标拖动
moveOnMouseWheel: false, // 按住Ctrl+滚轮移动
},
// {
// type: 'inside',
// xAxisIndex: [0],
// start: 0,
// end: 2,
// zoomOnMouseWheel: false, // 鼠标滚轮缩放
// moveOnMouseMove: true, // 鼠标拖动
// moveOnMouseWheel: false, // 按住Ctrl+滚轮移动
// },
];
// 深层对象的合并
const deepMerge = (target: any, source: any) => {

View File

@@ -353,7 +353,9 @@ const initStatisticsOfSubjectStorageSpaceFun = async () => {
const datas: any = [];
const beforeData: any = [];
const incrementData: any = [];
statisticsOfSubjectStorageSpaceFormData.nodeId = DISCIPLINE_TYPE.value.A.map(
(item: any) => item.label
);
const res: any = await getNodeSizeByNodeTypeApi({
queryNodeType: 'discipline',
queryNodeNames: statisticsOfSubjectStorageSpaceFormData.nodeId?.join(','),