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
f600b71f
Commit
f600b71f
authored
Jun 13, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采集
parent
fe5436ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
Task.jsx
src/view/Manage/MetadataHarvester/Component/Task.jsx
+5
-4
TaskReport.jsx
src/view/Manage/MetadataHarvester/Component/TaskReport.jsx
+12
-4
No files found.
src/view/Manage/MetadataHarvester/Component/Task.jsx
View file @
f600b71f
...
...
@@ -7,10 +7,10 @@ import { paginate, showMessage } from '../../../../util';
import
Table
from
'../../ResizeableTable'
;
import
UpdateTask
from
'./UpdateTask'
;
import
ColConfig
,
{
menuName
}
from
'./ColConfig'
;
import
env
from
'../../../../service/samples/env.json'
;
//
import env from '../../../../service/samples/env.json';
const
FC
=
(
props
)
=>
{
//
const { env } = useContext(AppContext);
const
{
env
}
=
useContext
(
AppContext
);
const
[
loadingTasks
,
setLoadingTasks
]
=
useState
(
false
);
const
[
tasks
,
setTasks
]
=
useState
(
undefined
);
const
[
pagination
,
setPagination
]
=
useState
({
pageNum
:
1
,
pageSize
:
20
});
...
...
@@ -426,11 +426,12 @@ const FC = (props) => {
dataSource=
{
_tasks
||
[]
}
pagination=
{
false
}
onChange=
{
onTableChange
}
scroll=
{
{
y
:
'calc(100vh - 320px)'
}
}
sticky
/>
<
Pagination
size=
"small"
className=
"text-center m-3"
className=
"text-center m
t
-3"
showSizeChanger
showQuickJumper
onChange=
{
onPaginationChange
}
...
...
@@ -481,7 +482,7 @@ export const reducer = (prevState, action) => {
}
export
function
Config
({
onState
,
autoSelect
,
setTargetTypes
})
{
//
const { env } = useContext(AppContext);
const
{
env
}
=
useContext
(
AppContext
);
const
[
treeData
,
setTreeData
]
=
useState
([]);
const
[
treeExpandKeys
,
setTreeExpandKeys
]
=
useState
([]);
const
[
loadingSupportedTargetTypes
,
setLoadingSupportedTargetTypes
]
=
useState
(
false
);
...
...
src/view/Manage/MetadataHarvester/Component/TaskReport.jsx
View file @
f600b71f
import
React
,
{
useState
,
useEffect
,
useContext
,
useMemo
}
from
'react'
;
import
{
Space
,
DatePicker
,
Row
,
Col
,
Card
,
Spin
,
Empty
,
Typography
,
Pagination
,
Input
,
Select
}
from
'antd'
;
import
{
Space
,
DatePicker
,
Row
,
Col
,
Card
,
Spin
,
Empty
,
Typography
,
Pagination
,
Input
,
Select
,
Tooltip
}
from
'antd'
;
import
'moment/locale/zh-cn'
;
import
locale
from
'antd/es/date-picker/locale/zh_CN'
;
...
...
@@ -7,7 +7,7 @@ import { AppContext } from '../../../../App';
import
{
dispatch
}
from
'../../../../model'
;
import
{
paginate
}
from
'../../../../util'
;
import
Table
from
'../../ResizeableTable'
;
import
env
from
'../../../../service/samples/env.json'
;
//
import env from '../../../../service/samples/env.json';
const
{
RangePicker
}
=
DatePicker
;
const
{
Meta
}
=
Card
;
...
...
@@ -25,7 +25,7 @@ const reportStates = [
]
const
FC
=
(
props
)
=>
{
//
const { env } = useContext(AppContext);
const
{
env
}
=
useContext
(
AppContext
);
const
[
rangeValue
,
setRangeValue
]
=
useState
(
undefined
);
const
[
summaryData
,
setSummaryData
]
=
useState
(
undefined
);
const
[
reportData
,
setReportData
]
=
useState
(
undefined
);
...
...
@@ -54,6 +54,13 @@ const FC = (props) => {
item
.
title
=
item
.
value
||
''
;
item
.
dataIndex
=
item
.
name
||
''
;
item
.
ellipsis
=
true
;
item
.
render
=
(
text
,
record
)
=>
{
return
(
<
Tooltip
title=
{
text
||
''
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
{
text
||
''
}
</
Typography
.
Text
>
</
Tooltip
>
);
}
});
newColumns
=
[{
...
...
@@ -369,11 +376,12 @@ const FC = (props) => {
},
}
}
pagination=
{
false
}
scroll=
{
{
y
:
'calc(100vh - 400px)'
}
}
sticky
/>
<
Pagination
size=
"small"
className=
"text-center m-3"
className=
"text-center m
t
-3"
showSizeChanger
showQuickJumper
onChange=
{
onPaginationChange
}
...
...
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