diff --git a/src/pages/Employee/index.tsx b/src/pages/Employee/index.tsx index dcbdaee..11987db 100644 --- a/src/pages/Employee/index.tsx +++ b/src/pages/Employee/index.tsx @@ -438,6 +438,14 @@ const UserList: React.FC<{}> = () => { scroll={{ y: 'calc(100vh - 500px)' }} + onRow={(record) => { + return { + onClick: (event) => { + handleUpdateModalVisible(true); + setCurrentRow(record); + }, // 点击行 + } + }} pagination={{ defaultPageSize: 10, showSizeChanger: true,