Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
41e9e4d2
Commit
41e9e4d2
authored
Jun 13, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采集
parent
f600b71f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
Task.jsx
src/view/Manage/MetadataHarvester/Component/Task.jsx
+2
-2
TaskReport.jsx
src/view/Manage/MetadataHarvester/Component/TaskReport.jsx
+3
-2
index.less
src/view/Manage/MetadataHarvester/index.less
+3
-2
index.jsx
src/view/Manage/ResizeableTable/index.jsx
+4
-5
No files found.
src/view/Manage/MetadataHarvester/Component/Task.jsx
View file @
41e9e4d2
...
@@ -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 - 32
0
px)'
}
}
scroll=
{
{
y
:
'calc(100vh - 32
5
px)'
}
}
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
}
...
...
src/view/Manage/MetadataHarvester/Component/TaskReport.jsx
View file @
41e9e4d2
...
@@ -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 - 4
0
0px)'
}
}
scroll=
{
{
y
:
'calc(100vh - 4
1
0px)'
}
}
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
}
...
...
src/view/Manage/MetadataHarvester/index.less
View file @
41e9e4d2
.metadata-harvester {
.metadata-harvester {
height: calc(100vh -
64px - 30
px);
height: calc(100vh -
124
px);
padding:
2
0px;
padding:
1
0px;
background: #fff;
background: #fff;
overflow: auto;
overflow: auto;
}
}
\ No newline at end of file
src/view/Manage/ResizeableTable/index.jsx
View file @
41e9e4d2
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment