feat: 优化设备位置冲突检测和前端虚拟滚动

为设备表添加复合索引优化位置冲突检测性能
在设备位置检查中添加悲观锁防止竞态条件
添加 react-window 和 react-virtualized-auto-sizer 支持虚拟滚动
This commit is contained in:
zhangbing
2026-03-29 10:40:33 +08:00
parent 1d815b812e
commit 5d972799f2
6 changed files with 80 additions and 0 deletions
+22
View File
@@ -21,6 +21,8 @@
"react-dom": "^18.2.0",
"react-router-dom": "^6.15.0",
"react-transition-group": "^4.4.5",
"react-virtualized-auto-sizer": "^2.0.3",
"react-window": "^2.2.7",
"reactflow": "^11.11.4",
"styled-components": "^6.3.9",
"swr": "^2.4.0",
@@ -7691,6 +7693,26 @@
}
}
},
"node_modules/react-virtualized-auto-sizer": {
"version": "2.0.3",
"resolved": "https://registry.npmmirror.com/react-virtualized-auto-sizer/-/react-virtualized-auto-sizer-2.0.3.tgz",
"integrity": "sha512-nonmCSUIh5HtbzazGcQ1NhnMFps/ZBu/UKJyhCt0Fhi7ondLAUZNETtRCWM8RWYZDzVlMYOQGgBmIxUutIhqgw==",
"license": "MIT",
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
}
},
"node_modules/react-window": {
"version": "2.2.7",
"resolved": "https://registry.npmmirror.com/react-window/-/react-window-2.2.7.tgz",
"integrity": "sha512-SH5nvfUQwGHYyriDUAOt7wfPsfG9Qxd6OdzQxl5oQ4dsSsUicqQvjV7dR+NqZ4coY0fUn3w1jnC5PwzIUWEg5w==",
"license": "MIT",
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
}
},
"node_modules/reactflow": {
"version": "11.11.4",
"resolved": "https://registry.npmmirror.com/reactflow/-/reactflow-11.11.4.tgz",
+2
View File
@@ -26,6 +26,8 @@
"react-dom": "^18.2.0",
"react-router-dom": "^6.15.0",
"react-transition-group": "^4.4.5",
"react-virtualized-auto-sizer": "^2.0.3",
"react-window": "^2.2.7",
"reactflow": "^11.11.4",
"styled-components": "^6.3.9",
"swr": "^2.4.0",