Commit 41e9e4d2 by zhaochengxiang

采集

parent f600b71f
...@@ -426,12 +426,12 @@ const FC = (props) => { ...@@ -426,12 +426,12 @@ const FC = (props) => {
dataSource={_tasks||[]} dataSource={_tasks||[]}
pagination={false} pagination={false}
onChange={onTableChange} onChange={onTableChange}
scroll={{ y: 'calc(100vh - 320px)' }} scroll={{ y: 'calc(100vh - 325px)' }}
sticky sticky
/> />
<Pagination <Pagination
size="small" size="small"
className="text-center mt-3" className="text-center mt-3 mb-1"
showSizeChanger showSizeChanger
showQuickJumper showQuickJumper
onChange={onPaginationChange} onChange={onPaginationChange}
......
...@@ -331,6 +331,7 @@ const FC = (props) => { ...@@ -331,6 +331,7 @@ const FC = (props) => {
columns={columns||[]} columns={columns||[]}
rowKey='taskStateId' rowKey='taskStateId'
dataSource={tableData||[]} dataSource={tableData||[]}
extraColWidth={48}
expandable={{ expandable={{
onExpand: (expanded, record) => { onExpand: (expanded, record) => {
if (expanded) { if (expanded) {
...@@ -376,12 +377,12 @@ const FC = (props) => { ...@@ -376,12 +377,12 @@ const FC = (props) => {
}, },
}} }}
pagination={false} pagination={false}
scroll={{ y: 'calc(100vh - 400px)' }} scroll={{ y: 'calc(100vh - 410px)' }}
sticky sticky
/> />
<Pagination <Pagination
size="small" size="small"
className="text-center mt-3" className="text-center mt-3 mb-1"
showSizeChanger showSizeChanger
showQuickJumper showQuickJumper
onChange={onPaginationChange} onChange={onPaginationChange}
......
.metadata-harvester { .metadata-harvester {
height: calc(100vh - 64px - 30px); height: calc(100vh - 124px);
padding: 20px; padding: 10px;
background: #fff; background: #fff;
overflow: auto; overflow: auto;
} }
\ No newline at end of file
...@@ -36,7 +36,7 @@ const ResizeableHeaderCell = props => { ...@@ -36,7 +36,7 @@ const ResizeableHeaderCell = props => {
}; };
const ResizeableTable = (props) => { const ResizeableTable = (props) => {
const { columns, ...restProps } = props const { columns, extraColWidth = 0, ...restProps } = props
const [tableWidth, setTableWidth] = useState(0) const [tableWidth, setTableWidth] = useState(0)
...@@ -61,7 +61,7 @@ const ResizeableTable = (props) => { ...@@ -61,7 +61,7 @@ const ResizeableTable = (props) => {
useEffect(() => { useEffect(() => {
if (!!columns && tableWidth > 0) { if (!!columns && tableWidth > 0) {
const contentWidth = getWidth(tableWidth) const contentWidth = getWidth(tableWidth, extraColWidth)
setDefaultWidth(columns, contentWidth) setDefaultWidth(columns, contentWidth)
paddingCol.current.width = 0 paddingCol.current.width = 0
...@@ -105,9 +105,8 @@ const ResizeableTable = (props) => { ...@@ -105,9 +105,8 @@ const ResizeableTable = (props) => {
export default ResizeableTable; export default ResizeableTable;
function getWidth(tableWidth) { function getWidth(tableWidth, extraColWidth) {
// FIXME 判断没有选择列时,32为0 return tableWidth - scrollbarWidth - extraColWidth
return tableWidth - scrollbarWidth - 32 // scrollbar width, checkbox column
} }
function setDefaultWidth(columns, width) { function setDefaultWidth(columns, width) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment