From b4d8749fff24bd3132e39c65573cd77bbb07de4a Mon Sep 17 00:00:00 2001 From: zhang1106 <849185023@qq.com> Date: Fri, 30 Jan 2026 20:05:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=BA=E6=88=BF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=92=8C=E6=9C=BA=E6=9F=9C=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=87=8D=E5=A4=8D=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=A1=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除RoomManagement中手动定义的Checkbox选择列 - 删除RackManagement中手动定义的Checkbox选择列 - 保留rowSelection属性,使用Ant Design内置的选择功能 --- frontend/src/pages/RackManagement.jsx | 29 --------------------------- frontend/src/pages/RoomManagement.jsx | 29 --------------------------- 2 files changed, 58 deletions(-) diff --git a/frontend/src/pages/RackManagement.jsx b/frontend/src/pages/RackManagement.jsx index ea269b2..2ebba04 100644 --- a/frontend/src/pages/RackManagement.jsx +++ b/frontend/src/pages/RackManagement.jsx @@ -462,35 +462,6 @@ function RackManagement() { }), [racks]); const tableColumns = [ - { - title: ( - 0} - indeterminate={selectedRackIds.length > 0 && selectedRackIds.length < filteredRacks.length} - onChange={(e) => { - if (e.target.checked) { - setSelectedRackIds(filteredRacks.map(r => r.rackId)); - } else { - setSelectedRackIds([]); - } - }} - /> - ), - key: 'selection', - width: 50, - render: (_, record) => ( - { - if (e.target.checked) { - setSelectedRackIds([...selectedRackIds, record.rackId]); - } else { - setSelectedRackIds(selectedRackIds.filter(id => id !== record.rackId)); - } - }} - /> - ) - }, { title: '机柜信息', key: 'rackInfo', diff --git a/frontend/src/pages/RoomManagement.jsx b/frontend/src/pages/RoomManagement.jsx index 1d8b54d..bfe8bff 100644 --- a/frontend/src/pages/RoomManagement.jsx +++ b/frontend/src/pages/RoomManagement.jsx @@ -378,35 +378,6 @@ function RoomManagement() { }), [rooms]); const tableColumns = [ - { - title: ( - 0} - indeterminate={selectedRoomIds.length > 0 && selectedRoomIds.length < filteredRooms.length} - onChange={(e) => { - if (e.target.checked) { - setSelectedRoomIds(filteredRooms.map(r => r.roomId)); - } else { - setSelectedRoomIds([]); - } - }} - /> - ), - key: 'selection', - width: 50, - render: (_, record) => ( - { - if (e.target.checked) { - setSelectedRoomIds([...selectedRoomIds, record.roomId]); - } else { - setSelectedRoomIds(selectedRoomIds.filter(id => id !== record.roomId)); - } - }} - /> - ) - }, { title: '机房信息', key: 'roomInfo',