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
f6304f91
Commit
f6304f91
authored
Apr 13, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1104资产管理
parent
89a52121
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
25 deletions
+34
-25
constant.js
src/util/constant.js
+1
-0
index.jsx
src/view/Manage/Asset1104Manage/index.jsx
+13
-7
index.less
src/view/Manage/Asset1104Manage/index.less
+0
-16
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+20
-2
No files found.
src/util/constant.js
View file @
f6304f91
...
@@ -19,6 +19,7 @@ export const Holder = 'holder';
...
@@ -19,6 +19,7 @@ export const Holder = 'holder';
//资产
//资产
export
const
AssetManageReference
=
'asset-manage'
;
export
const
AssetManageReference
=
'asset-manage'
;
export
const
Asset1104ManageReference
=
'asset-1104-manage'
;
export
const
AssetBrowseReference
=
'asset-browse'
;
export
const
AssetBrowseReference
=
'asset-browse'
;
export
const
ResourceBrowseReference
=
'resource-browse'
;
export
const
ResourceBrowseReference
=
'resource-browse'
;
export
const
AssetRecycleReference
=
'asset-recycle'
;
export
const
AssetRecycleReference
=
'asset-recycle'
;
...
...
src/view/Manage/Asset1104Manage/index.jsx
View file @
f6304f91
...
@@ -9,16 +9,13 @@ import AssetTable from '../AssetManage/Component/AssetTable';
...
@@ -9,16 +9,13 @@ import AssetTable from '../AssetManage/Component/AssetTable';
import
AssetAction
from
'../AssetManage/Component/AssetAction'
;
import
AssetAction
from
'../AssetManage/Component/AssetAction'
;
import
Separate
from
'../AssetManage/Component/Separate'
;
import
Separate
from
'../AssetManage/Component/Separate'
;
import
{
getQueryParam
}
from
'../../../util'
;
import
{
Asset1104ManageReference
,
AssetManageReference
}
from
'../../../util/constant'
;
import
{
AssetManageReference
,
AnchorDirId
}
from
'../../../util/constant'
;
import
'./index.less'
;
import
'.
./AssetManage
/index.less'
;
const
Asset1104Manage
=
(
props
)
=>
{
const
Asset1104Manage
=
(
props
)
=>
{
const
did
=
getQueryParam
(
AnchorDirId
,
props
?.
location
?.
search
);
const
[
nodeId
,
setNodeId
]
=
useState
(
''
);
const
[
nodeId
,
setNodeId
]
=
useState
(
did
||
''
);
const
[
nodeType
,
setNodeType
]
=
useState
(
''
);
const
[
nodeType
,
setNodeType
]
=
useState
(
''
);
const
[
assetParams
,
setAssetParams
]
=
useState
({
assetId
:
''
,
assetDirId
:
''
})
const
[
assetParams
,
setAssetParams
]
=
useState
({
assetId
:
''
,
assetDirId
:
''
})
const
[
expandTree
,
setExpandTree
]
=
useState
(
true
);
const
[
expandTree
,
setExpandTree
]
=
useState
(
true
);
...
@@ -60,12 +57,18 @@ const Asset1104Manage = (props) => {
...
@@ -60,12 +57,18 @@ const Asset1104Manage = (props) => {
setAssetCount
(
count
);
setAssetCount
(
count
);
}
}
const
classes
=
classNames
(
'asset-
1104-
manage'
,
{
const
classes
=
classNames
(
'asset-manage'
,
{
'asset-manage-collapse'
:
!
expandTree
'asset-manage-collapse'
:
!
expandTree
});
});
return
(
return
(
<
div
className=
{
classes
}
>
<
div
className=
{
classes
}
>
<
div
className=
'left'
>
<
AssetTree
reference=
{
Asset1104ManageReference
}
onSelect=
{
onTreeSelect
}
onDirectoryChange=
{
onDirectoryChange
}
{
...
props
}
/>
</
div
>
{
expandTree
&&
<
Separate
width=
{
15
}
/>
}
<
div
className=
'middle'
>
<
div
className=
'middle'
>
<
AssetDirectory
id=
{
nodeId
}
assetCount=
{
assetCount
}
directoryChanged=
{
directoryChanged
}
onElementsChange=
{
onElementsChange
}
/>
<
AssetDirectory
id=
{
nodeId
}
assetCount=
{
assetCount
}
directoryChanged=
{
directoryChanged
}
onElementsChange=
{
onElementsChange
}
/>
<
Separate
height=
{
15
}
/>
<
Separate
height=
{
15
}
/>
...
@@ -75,6 +78,9 @@ const Asset1104Manage = (props) => {
...
@@ -75,6 +78,9 @@ const Asset1104Manage = (props) => {
<
div
className=
'right'
>
<
div
className=
'right'
>
<
AssetAction
form=
{
form
}
id=
{
assetId
}
dirId=
{
assetDirId
}
action=
'detail'
onChange=
{
onAssetActionChange
}
/>
<
AssetAction
form=
{
form
}
id=
{
assetId
}
dirId=
{
assetDirId
}
action=
'detail'
onChange=
{
onAssetActionChange
}
/>
</
div
>
</
div
>
<
div
className=
'tree-toggle'
onClick=
{
treeToggleClick
}
>
{
expandTree
?
<
CaretLeftOutlined
/>
:
<
CaretRightOutlined
/>
}
</
div
>
</
div
>
</
div
>
)
)
}
}
...
...
src/view/Manage/Asset1104Manage/index.less
deleted
100644 → 0
View file @
89a52121
.asset-1104-manage {
display: flex;
position: relative;
background-color: #fff;
height: 100%;
.middle {
width: calc(100% - 400px - 30px);
}
.right {
width: 400px;
border-left: 1px solid #EFEFEF;
}
}
\ No newline at end of file
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
f6304f91
...
@@ -10,7 +10,7 @@ import ImportDirectory from './ImportDirectory';
...
@@ -10,7 +10,7 @@ import ImportDirectory from './ImportDirectory';
import
UpdateDirectoryModal
from
'./UpdateDirectoryModal'
;
import
UpdateDirectoryModal
from
'./UpdateDirectoryModal'
;
import
CustomDirectoryModal
from
'./CustomDirectoryModal'
;
import
CustomDirectoryModal
from
'./CustomDirectoryModal'
;
import
{
showMessage
,
getQueryParam
}
from
'../../../../util'
;
import
{
showMessage
,
getQueryParam
}
from
'../../../../util'
;
import
{
AnchorTimestamp
,
AnchorId
,
AssetManageReference
,
AssetBrowseReference
,
ResourceBrowseReference
,
AssetMountReference
,
AnchorDirId
}
from
'../../../../util/constant'
;
import
{
AnchorTimestamp
,
AnchorId
,
AssetManageReference
,
AssetBrowseReference
,
ResourceBrowseReference
,
AssetMountReference
,
AnchorDirId
,
Asset1104ManageReference
}
from
'../../../../util/constant'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../util'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../util'
;
import
'./AssetTree.less'
;
import
'./AssetTree.less'
;
...
@@ -135,7 +135,7 @@ const AssetTree = (props) => {
...
@@ -135,7 +135,7 @@ const AssetTree = (props) => {
}
}
let
url
=
''
;
let
url
=
''
;
if
(
reference
===
AssetManageReference
||
reference
===
AssetMountReference
)
{
if
(
reference
===
AssetManageReference
||
reference
===
AssetMountReference
||
reference
===
Asset1104ManageReference
)
{
url
=
'assetmanage.queryAllDirectoryAsTree'
;
url
=
'assetmanage.queryAllDirectoryAsTree'
;
}
else
if
(
reference
===
AssetBrowseReference
)
{
}
else
if
(
reference
===
AssetBrowseReference
)
{
url
=
'assetmanage.queryAssetDirectoryAsTree'
;
url
=
'assetmanage.queryAssetDirectoryAsTree'
;
...
@@ -150,6 +150,24 @@ const AssetTree = (props) => {
...
@@ -150,6 +150,24 @@ const AssetTree = (props) => {
let
newData
=
[...
data
];
let
newData
=
[...
data
];
if
(
reference
===
Asset1104ManageReference
)
{
function
recursion1104
(
subCatalogs
)
{
if
((
subCatalogs
||
[]).
length
===
0
)
return
;
(
subCatalogs
||
[]).
forEach
(
catalog
=>
{
if
(
catalog
.
text
===
'合规数据'
)
{
newData
=
[
catalog
];
return
;
}
recursion1104
(
catalog
.
children
);
})
}
recursion1104
(
data
);
}
if
(
reference
===
AssetMountReference
)
{
if
(
reference
===
AssetMountReference
)
{
newData
=
newData
.
filter
(
item
=>
item
.
type
!==
'custom'
);
newData
=
newData
.
filter
(
item
=>
item
.
type
!==
'custom'
);
}
}
...
...
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