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
8fb6e69d
Commit
8fb6e69d
authored
Oct 18, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务管理跳转
parent
6774c726
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
index.jsx
src/view/Manage/AssetResourceManage/index.jsx
+2
-1
table.jsx
src/view/Manage/AssetResourceManage/table.jsx
+10
-1
index.jsx
src/view/Manage/AssetTask/index.jsx
+5
-0
No files found.
src/view/Manage/AssetResourceManage/index.jsx
View file @
8fb6e69d
...
...
@@ -57,7 +57,7 @@ const FC = (props) => {
minConstraints=
{
[
230
,
Infinity
]
}
maxConstraints=
{
[
Infinity
,
Infinity
]
}
>
<
Tree
onClick=
{
onTreeClick
}
/>
<
Tree
onClick=
{
onTreeClick
}
{
...
props
}
/>
</
ResizableBox
>
{
!
collapseTree
&&
<
Separate
width=
{
15
}
/>
...
...
@@ -74,6 +74,7 @@ const FC = (props) => {
node=
{
node
}
onClick=
{
onResourceListClick
}
onFullScreenChange=
{
onResourceListFullScreenChange
}
{
...
props
}
/>
<
div
className=
'tree-toggle'
onClick=
{
treeToggleClick
}
>
{
!
collapseTree
?
<
CaretLeftOutlined
/>
:
<
CaretRightOutlined
/>
}
...
...
src/view/Manage/AssetResourceManage/table.jsx
View file @
8fb6e69d
...
...
@@ -121,6 +121,7 @@ const FC = (props) => {
const
locationIdRef
=
React
.
useRef
(
getQueryParam
(
'id'
,
props
?.
location
?.
search
))
const
locationDidRef
=
React
.
useRef
(
getQueryParam
(
'did'
,
props
?.
location
?.
search
))
const
taskIdRef
=
React
.
useRef
(
getQueryParam
(
'taskId'
,
props
?.
location
?.
search
))
const
setArgsAndPage
=
React
.
useCallback
((
params
)
=>
{
// 设置查询参数时将分页置为1
...
...
@@ -195,6 +196,12 @@ const FC = (props) => {
setSelectedRows
([])
if
(
locationIdRef
.
current
&&
locationDidRef
.
current
)
{
getDataAssetLocation
()
}
else
if
(
taskIdRef
.
current
)
{
setKeyword
(
taskIdRef
.
current
)
setArgsAndPage
({
catalogType
:
'fullSearch'
,
keyword
:
taskIdRef
.
current
,
})
}
else
{
setPageAndArgs
({
pageNum
:
1
,
pageSize
:
page
.
pageSize
})
}
...
...
@@ -517,12 +524,15 @@ const FC = (props) => {
return
prevRow
})
taskIdRef
.
current
=
null
}
},
error
:
()
=>
{
setLoading
(
false
)
locationIdRef
.
current
=
null
locationDidRef
.
current
=
null
taskIdRef
.
current
=
null
}
})
}
...
...
@@ -1116,7 +1126,6 @@ const FC = (props) => {
id={record.id}
columns={columns}
onRowClick={(event, value) => {
event.stopPropagation()
setRow(value)
onClick?.(value)
}}
...
...
src/view/Manage/AssetTask/index.jsx
View file @
8fb6e69d
...
...
@@ -82,6 +82,11 @@ const FC = (props) => {
{
title
:
'任务编号'
,
dataIndex
:
'taskNO'
,
render
:
(
_
,
record
)
=>
<
a
onClick=
{
()
=>
{
window
.
open
(
`/center-home/menu/asset-resource-manage?taskId=${record.taskNO}`
)
}
}
>
{
record
.
taskNO
}
</
a
>
},
{
title
:
'数量'
,
...
...
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