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
3c4bc51d
Commit
3c4bc51d
authored
Feb 21, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产浏览调整
parent
bf66e0c5
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
116 additions
and
47 deletions
+116
-47
constant.js
src/util/constant.js
+8
-2
index.jsx
src/view/Manage/AssetBrowse/index.jsx
+6
-5
index.less
src/view/Manage/AssetBrowse/index.less
+50
-0
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+36
-27
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+4
-4
index.jsx
src/view/Manage/AssetManage/index.jsx
+3
-1
index.js
src/view/Manage/AssetManage/util/index.js
+1
-2
AssetMount.jsx
src/view/Manage/AssetRecycle/Component/AssetMount.jsx
+5
-3
index.jsx
src/view/Manage/AssetRecycle/index.jsx
+3
-3
No files found.
src/util/constant.js
View file @
3c4bc51d
...
@@ -13,4 +13,10 @@ export const PermitCheckOut = 'permitCheckOut';
...
@@ -13,4 +13,10 @@ export const PermitCheckOut = 'permitCheckOut';
export
const
StateId
=
'sid'
;
export
const
StateId
=
'sid'
;
export
const
VersionId
=
'vid'
;
export
const
VersionId
=
'vid'
;
export
const
TemplateId
=
'tid'
;
export
const
TemplateId
=
'tid'
;
export
const
Holder
=
'holder'
;
export
const
Holder
=
'holder'
;
\ No newline at end of file
//资产
export
const
AssetManageReference
=
'asset-manage'
;
export
const
AssetBrowseReference
=
'asset-browse'
;
export
const
ResourceBrowseReference
=
'resource-browse'
;
export
const
AssetRecycleReference
=
'asset-recycle'
;
\ No newline at end of file
src/view/Manage/AssetBrowse/index.jsx
View file @
3c4bc51d
...
@@ -4,8 +4,9 @@ import { CaretLeftOutlined, CaretRightOutlined } from '@ant-design/icons';
...
@@ -4,8 +4,9 @@ import { CaretLeftOutlined, CaretRightOutlined } from '@ant-design/icons';
import
AssetTable
from
"../AssetManage/Component/AssetTable"
;
import
AssetTable
from
"../AssetManage/Component/AssetTable"
;
import
AssetTree
from
'../AssetManage/Component/AssetTree'
;
import
AssetTree
from
'../AssetManage/Component/AssetTree'
;
import
{
AssetBrowseReference
}
from
'../../../util/constant'
;
import
'.
./AssetManage
/index.less'
;
import
'./index.less'
;
const
AssetBrowse
=
(
props
)
=>
{
const
AssetBrowse
=
(
props
)
=>
{
...
@@ -22,14 +23,14 @@ const AssetBrowse = (props) => {
...
@@ -22,14 +23,14 @@ const AssetBrowse = (props) => {
setExpandTree
(
!
expandTree
);
setExpandTree
(
!
expandTree
);
}
}
const
classes
=
classNames
(
'asset-
manag
e'
,
{
const
classes
=
classNames
(
'asset-
brows
e'
,
{
'asset-
manag
e-collapse'
:
!
expandTree
'asset-
brows
e-collapse'
:
!
expandTree
});
});
return
(
return
(
<
div
className=
{
classes
}
>
<
div
className=
{
classes
}
>
<
div
className=
'left'
>
<
div
className=
'left'
>
<
AssetTree
onSelect=
{
onTreeSelect
}
re
adOnly
{
...
props
}
/>
<
AssetTree
onSelect=
{
onTreeSelect
}
re
ference=
{
AssetBrowseReference
}
{
...
props
}
/>
</
div
>
</
div
>
<
div
className=
'tree-toggle-wrap'
>
<
div
className=
'tree-toggle-wrap'
>
<
div
className=
'tree-toggle'
onClick=
{
treeToggleClick
}
>
<
div
className=
'tree-toggle'
onClick=
{
treeToggleClick
}
>
...
@@ -37,7 +38,7 @@ const AssetBrowse = (props) => {
...
@@ -37,7 +38,7 @@ const AssetBrowse = (props) => {
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
'right'
>
<
div
className=
'right'
>
<
AssetTable
nodeId=
{
nodeId
}
nodeType=
{
nodeType
}
readOnly
{
...
props
}
/>
<
AssetTable
nodeId=
{
nodeId
}
reference=
{
AssetBrowseReference
}
reference=
'asset-browse'
{
...
props
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
)
)
...
...
src/view/Manage/AssetBrowse/index.less
0 → 100644
View file @
3c4bc51d
.asset-browse {
display: flex;
position: relative;
background-color: #fff;
height: 100%;
.left {
width: 230px;
border-right: 1px solid #EFEFEF;
overflow: hidden;
}
.tree-toggle-wrap {
position: relative;
width: 20px;
height: calc(100vh - 94px);
.tree-toggle {
display: flex;
justify-content: center;
align-items: center;
left: 0;
right: 0;
background: #f2f5fc;
position: absolute;
top: calc(50% - 40px);
width: 12px;
height: 80px;
border-radius: 0 12px 12px 0;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
cursor: pointer;
}
}
.right {
width: calc(100% - 250px);
}
}
.asset-browse-collapse {
.left {
width: 0;
}
.right {
width: calc(100% - 20px);
}
}
\ No newline at end of file
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
3c4bc51d
...
@@ -9,14 +9,13 @@ import ImportAsset from './ImportAsset';
...
@@ -9,14 +9,13 @@ import ImportAsset from './ImportAsset';
import
AssetEdit
from
'./AssetEdit'
;
import
AssetEdit
from
'./AssetEdit'
;
import
{
dispatch
,
dispatchLatestHomepage
}
from
'../../../../model'
;
import
{
dispatch
,
dispatchLatestHomepage
}
from
'../../../../model'
;
import
{
showMessage
,
showNotifaction
,
getQueryParam
,
inputWidth
,
isSzseEnv
}
from
'../../../../util'
;
import
{
showMessage
,
showNotifaction
,
getQueryParam
,
inputWidth
,
isSzseEnv
}
from
'../../../../util'
;
import
{
AnchorId
,
AnchorTimestamp
}
from
'../../../../util/constant'
;
import
{
AnchorId
,
AnchorTimestamp
,
AssetBrowseReference
,
AssetManageReference
,
AssetRecycleReference
,
ResourceBrowseReference
}
from
'../../../../util/constant'
;
import
"./AssetTable.less"
;
import
"./AssetTable.less"
;
import
{
select
}
from
"redux-saga/effects"
;
const
AssetTable
=
(
props
)
=>
{
const
AssetTable
=
(
props
)
=>
{
const
{
readOnly
=
false
,
className
,
nodeId
,
nodeType
,
elementsChanged
,
assetActionChanged
,
onSelect
,
onCountChang
e
}
=
props
;
const
{
className
,
nodeId
,
nodeType
,
elementsChanged
,
assetActionChanged
,
onSelect
,
onCountChange
,
reference
=
AssetManageReferenc
e
}
=
props
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
columns
,
setColumns
]
=
useState
([]);
const
[
columns
,
setColumns
]
=
useState
([]);
const
[
assets
,
setAssets
]
=
useState
([]);
const
[
assets
,
setAssets
]
=
useState
([]);
...
@@ -71,7 +70,7 @@ const AssetTable = (props) => {
...
@@ -71,7 +70,7 @@ const AssetTable = (props) => {
},
[
timestamp
])
},
[
timestamp
])
useEffect
(()
=>
{
useEffect
(()
=>
{
if
((
nodeId
||
''
)
!==
''
||
nodeType
===
'RecycleBin'
)
{
if
((
nodeId
||
''
)
!==
''
||
reference
===
AssetRecycleReference
)
{
getFilterElementsGroupThenGetDataAssets
();
getFilterElementsGroupThenGetDataAssets
();
}
}
//eslint-disable-next-line react-hooks/exhaustive-deps
//eslint-disable-next-line react-hooks/exhaustive-deps
...
@@ -194,7 +193,6 @@ const AssetTable = (props) => {
...
@@ -194,7 +193,6 @@ const AssetTable = (props) => {
metadataIndexRef
.
current
=
_metadataIndex
;
metadataIndexRef
.
current
=
_metadataIndex
;
getDataAssets
(
_metadataIndex
);
getDataAssets
(
_metadataIndex
);
},
},
error
:
()
=>
{
error
:
()
=>
{
setLoading
(
false
)
setLoading
(
false
)
...
@@ -205,7 +203,7 @@ const AssetTable = (props) => {
...
@@ -205,7 +203,7 @@ const AssetTable = (props) => {
const
getDataAssets
=
(
projectIndex
=
metadataIndexRef
.
current
)
=>
{
const
getDataAssets
=
(
projectIndex
=
metadataIndexRef
.
current
)
=>
{
setLoading
(
true
);
setLoading
(
true
);
dispatchLatestHomepage
({
dispatchLatestHomepage
({
type
:
(
nodeType
===
'RecycleBin'
)?
'assetmanage.listRecycleBinDataAssetsByPage'
:
'assetmanage.listDataAssetsByPage'
,
type
:
(
reference
===
AssetRecycleReference
)?
'assetmanage.listRecycleBinDataAssetsByPage'
:
'assetmanage.listDataAssetsByPage'
,
payload
:
{
payload
:
{
dirId
:
nodeId
,
dirId
:
nodeId
,
pageNum
,
pageNum
,
...
@@ -314,20 +312,20 @@ const AssetTable = (props) => {
...
@@ -314,20 +312,20 @@ const AssetTable = (props) => {
if
((
checkedKeys
||
[]).
length
>
0
)
{
if
((
checkedKeys
||
[]).
length
>
0
)
{
modal
.
confirm
({
modal
.
confirm
({
title
:
'提示'
,
title
:
'提示'
,
content
:
(
nodeType
!==
'RecycleBin'
)?
'这些资产在所有目录上唯一存在,移除后,你可以前往“未挂载资产”重新挂载。'
:
'您确定要永久删除这些资产吗?'
,
content
:
(
reference
!==
AssetRecycleReference
)?
'这些资产在所有目录上唯一存在,移除后,你可以前往“未挂载资产”重新挂载。'
:
'您确定要永久删除这些资产吗?'
,
onOk
:
()
=>
{
onOk
:
()
=>
{
let
payload
=
{
let
payload
=
{
data
:
checkedKeys
data
:
checkedKeys
}
}
if
(
nodeType
!==
'RecycleBin'
)
{
if
(
reference
!==
AssetRecycleReference
)
{
payload
.
params
=
{
payload
.
params
=
{
dirId
:
nodeId
dirId
:
nodeId
}
}
}
}
dispatch
({
dispatch
({
type
:
(
nodeType
!==
'RecycleBin'
)?
'assetmanage.unloadDataAssets'
:
'assetmanage.deleteDataAssets'
,
type
:
(
reference
!==
AssetRecycleReference
)?
'assetmanage.unloadDataAssets'
:
'assetmanage.deleteDataAssets'
,
payload
,
payload
,
callback
:
()
=>
{
callback
:
()
=>
{
showMessage
(
"success"
,
"删除成功"
);
showMessage
(
"success"
,
"删除成功"
);
...
@@ -376,10 +374,22 @@ const AssetTable = (props) => {
...
@@ -376,10 +374,22 @@ const AssetTable = (props) => {
};
};
const
classes
=
classNames
(
'asset-list'
,
className
,
{
const
classes
=
classNames
(
'asset-list'
,
className
,
{
'asset-list-read-only'
:
readOnly
,
'asset-list-fullscreen'
:
fullScreen
,
'asset-list-fullscreen'
:
fullScreen
,
});
});
let
scrollY
=
null
;
if
((
assets
||
[]).
length
>
0
)
{
if
(
fullScreen
)
{
scrollY
=
'calc(100vh - 182px - 52px - 12px)'
;
}
else
if
(
reference
===
AssetManageReference
)
{
scrollY
=
'calc(100vh - 182px - 52px - 52px - 84px - 12px)'
;
}
else
if
(
reference
===
AssetBrowseReference
||
reference
===
ResourceBrowseReference
)
{
scrollY
=
'calc(100vh - 182px - 52px - 12px)'
;
}
else
if
(
reference
===
AssetRecycleReference
)
{
scrollY
=
'calc(100vh - 182px - 52px - 12px)'
;
}
}
return
(
return
(
<
div
className=
{
classes
}
>
<
div
className=
{
classes
}
>
<
div
<
div
...
@@ -394,26 +404,25 @@ const AssetTable = (props) => {
...
@@ -394,26 +404,25 @@ const AssetTable = (props) => {
>
>
<
Space
>
<
Space
>
{
{
(
!
readOnly
&&
(
nodeType
!==
'RecycleBin'
)
)
&&
<
Button
onClick=
{
addAsset
}
>
新增
</
Button
>
(
reference
===
AssetManageReference
)
&&
<
Button
onClick=
{
addAsset
}
>
新增
</
Button
>
}
}
{
{
(
!
readOnly
&&
(
nodeType
!==
'RecycleBin'
)
)
&&
<
Button
onClick=
{
importAsset
}
>
导入
</
Button
>
(
reference
===
AssetManageReference
)
&&
<
Button
onClick=
{
importAsset
}
>
导入
</
Button
>
}
}
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
onClick=
{
exportAsset
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
导出
</
Button
>
</
Tooltip
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
onClick=
{
onBatchCatalogChangeBtnClick
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
变更目录
</
Button
>
</
Tooltip
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
onClick=
{
deleteAssets
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
删除
</
Button
>
</
Tooltip
>
<
Button
onClick=
{
onFilterElementClick
}
>
要素设置
</
Button
>
{
{
(
nodeType
===
'RecycleBin'
)
&&
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
(
reference
===
AssetManageReference
||
reference
===
AssetRecycleReference
)
&&
<
React
.
Fragment
>
<
Button
onClick=
{
onBatchCatalogChangeBtnClick
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
挂载
</
Button
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
</
Tooltip
>
<
Button
onClick=
{
exportAsset
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
导出
</
Button
>
</
Tooltip
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
onClick=
{
onBatchCatalogChangeBtnClick
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
{
(
reference
===
AssetRecycleReference
)?
'挂载'
:
'变更目录'
}
</
Button
>
</
Tooltip
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
onClick=
{
deleteAssets
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
删除
</
Button
>
</
Tooltip
>
</
React
.
Fragment
>
}
}
<
Button
onClick=
{
onFilterElementClick
}
>
要素设置
</
Button
>
</
Space
>
</
Space
>
<
Space
>
<
Space
>
<
Input
<
Input
...
@@ -455,7 +464,7 @@ const AssetTable = (props) => {
...
@@ -455,7 +464,7 @@ const AssetTable = (props) => {
dataSource=
{
assets
}
dataSource=
{
assets
}
pagination=
{
false
}
pagination=
{
false
}
size=
'default'
size=
'default'
scroll=
{
{
x
:
1000
,
y
:
(
assets
||
[]).
length
>
0
?(
fullScreen
?
'calc(100vh - 182px - 12px - 50px)'
:
'calc(100vh - 182px - 52px - 52px - 84px - 12px)'
):
null
}
}
scroll=
{
{
x
:
1000
,
y
:
scrollY
}
}
/>
/>
</
div
>
</
div
>
<
Pagination
<
Pagination
...
@@ -486,7 +495,7 @@ const AssetTable = (props) => {
...
@@ -486,7 +495,7 @@ const AssetTable = (props) => {
/>
/>
<
AssetMount
<
AssetMount
visible=
{
assetMountVisible
}
visible=
{
assetMountVisible
}
nodeType=
{
nodeTyp
e
}
reference=
{
referenc
e
}
ids=
{
batchCatalogChange
?
checkedKeys
:[
currentAssetId
]
}
ids=
{
batchCatalogChange
?
checkedKeys
:[
currentAssetId
]
}
onCancel=
{
onAssetMountCancel
}
onCancel=
{
onAssetMountCancel
}
{
...
props
}
{
...
props
}
...
...
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
3c4bc51d
...
@@ -8,12 +8,12 @@ import ImportDirectory from './ImportDirectory';
...
@@ -8,12 +8,12 @@ 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
}
from
'../../../../util/constant'
;
import
{
AnchorTimestamp
,
AnchorId
,
AssetManageReference
,
AssetBrowseReference
,
ResourceBrowseReference
}
from
'../../../../util/constant'
;
import
'./AssetTree.less'
;
import
'./AssetTree.less'
;
const
AssetTree
=
(
props
)
=>
{
const
AssetTree
=
(
props
)
=>
{
const
{
readOnly
=
false
,
checkable
=
false
,
onSelect
,
className
,
onCheck
,
tableId
,
reference
=
''
,
showCustom
=
true
,
onDirectoryChange
}
=
props
;
const
{
checkable
=
false
,
onSelect
,
className
,
onCheck
,
tableId
,
reference
=
AssetManageReference
,
showCustom
=
true
,
onDirectoryChange
}
=
props
;
const
[
keyword
,
setKeyword
]
=
useState
(
''
);
const
[
keyword
,
setKeyword
]
=
useState
(
''
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
treeData
,
setTreeData
]
=
useState
([]);
const
[
treeData
,
setTreeData
]
=
useState
([]);
...
@@ -448,7 +448,7 @@ const AssetTree = (props) => {
...
@@ -448,7 +448,7 @@ const AssetTree = (props) => {
});
});
const
classes
=
classNames
(
'asset-tree'
,
className
,
{
const
classes
=
classNames
(
'asset-tree'
,
className
,
{
'asset-tree-read-only'
:
readOnly
,
'asset-tree-read-only'
:
(
reference
===
AssetBrowseReference
||
reference
===
ResourceBrowseReference
)
,
'asset-tree-metadata-reference'
:
reference
===
'metadata'
,
'asset-tree-metadata-reference'
:
reference
===
'metadata'
,
'asset-tree-asset-mount-reference'
:
reference
===
'mount'
,
'asset-tree-asset-mount-reference'
:
reference
===
'mount'
,
});
});
...
@@ -456,7 +456,7 @@ const AssetTree = (props) => {
...
@@ -456,7 +456,7 @@ const AssetTree = (props) => {
return
(
return
(
<
Card
<
Card
className=
{
classes
}
className=
{
classes
}
title=
{
readOnly
?
null
:
(
title=
{
(
reference
===
AssetBrowseReference
||
reference
===
ResourceBrowseReference
)
?
null
:
(
<
div
<
div
className=
'p-3'
className=
'p-3'
style=
{
{
style=
{
{
...
...
src/view/Manage/AssetManage/index.jsx
View file @
3c4bc51d
...
@@ -8,6 +8,8 @@ import AssetDirectory from './Component/AssetDirectory';
...
@@ -8,6 +8,8 @@ import AssetDirectory from './Component/AssetDirectory';
import
AssetTable
from
'./Component/AssetTable'
;
import
AssetTable
from
'./Component/AssetTable'
;
import
AssetAction
from
'./Component/AssetAction'
;
import
AssetAction
from
'./Component/AssetAction'
;
import
{
AssetManageReference
}
from
'../../../util/constant'
;
import
'./index.less'
;
import
'./index.less'
;
const
AssetManage
=
(
props
)
=>
{
const
AssetManage
=
(
props
)
=>
{
...
@@ -69,7 +71,7 @@ const AssetManage = (props) => {
...
@@ -69,7 +71,7 @@ const AssetManage = (props) => {
<
div
className=
'middle'
>
<
div
className=
'middle'
>
<
ElementManage
onChange=
{
onElementsChange
}
/>
<
ElementManage
onChange=
{
onElementsChange
}
/>
<
AssetDirectory
id=
{
nodeId
}
assetCount=
{
assetCount
}
directoryChanged=
{
directoryChanged
}
/>
<
AssetDirectory
id=
{
nodeId
}
assetCount=
{
assetCount
}
directoryChanged=
{
directoryChanged
}
/>
<
AssetTable
nodeId=
{
nodeId
}
nodeType=
{
nodeTyp
e
}
elementsChanged=
{
elementsChanged
}
assetActionChanged=
{
assetActionChanged
}
onSelect=
{
onTableSelect
}
onCountChange=
{
onAssetCountChange
}
{
...
props
}
/>
<
AssetTable
nodeId=
{
nodeId
}
reference=
{
AssetManageReferenc
e
}
elementsChanged=
{
elementsChanged
}
assetActionChanged=
{
assetActionChanged
}
onSelect=
{
onTableSelect
}
onCountChange=
{
onAssetCountChange
}
{
...
props
}
/>
</
div
>
</
div
>
<
div
className=
'right'
>
<
div
className=
'right'
>
<
AssetAction
id=
{
assetId
}
dirId=
{
nodeId
}
action=
'detail'
onChange=
{
onAssetActionChange
}
/>
<
AssetAction
id=
{
assetId
}
dirId=
{
nodeId
}
action=
'detail'
onChange=
{
onAssetActionChange
}
/>
...
...
src/view/Manage/AssetManage/util/index.js
View file @
3c4bc51d
export
const
requireElements
=
[
'中文名称'
,
'资产项'
,
'使用方'
,
'信息安全等级'
];
export
const
requireElements
=
[
'中文名称'
,
'资产项'
,
'使用方'
,
'信息安全等级'
];
export
const
unfoldedElements
=
[
'编号'
,
'中文名称'
,
'英文名称'
,
'描述'
,
'表现形式'
,
'数据类型'
,
'来源系统'
,
'资产项'
,
'使用方'
,
'标签'
,
'共享级别'
,
'信息安全等级'
,
'来源单位'
,
'状态'
,
'所属部门'
,
'维护方'
,
'所属层次'
,
'更新频度'
,
'数据规模'
,
'数据大小'
,
'质量情况'
];
export
const
unfoldedElements
=
[
'编号'
,
'中文名称'
,
'英文名称'
,
'描述'
,
'表现形式'
,
'数据类型'
,
'来源系统'
,
'资产项'
,
'使用方'
,
'标签'
,
'共享级别'
,
'信息安全等级'
,
'来源单位'
,
'状态'
,
'所属部门'
,
'维护方'
,
'所属层次'
,
'更新频度'
,
'数据规模'
,
'数据大小'
,
'质量情况'
];
\ No newline at end of file
src/view/Manage/AssetRecycle/Component/AssetMount.jsx
View file @
3c4bc51d
...
@@ -5,9 +5,11 @@ import { dispatch } from '../../../../model';
...
@@ -5,9 +5,11 @@ import { dispatch } from '../../../../model';
import
AssetTree
from
'../../AssetManage/Component/AssetTree'
;
import
AssetTree
from
'../../AssetManage/Component/AssetTree'
;
import
{
showMessage
}
from
'../../../../util'
;
import
{
showMessage
}
from
'../../../../util'
;
import
{
AssetManageReference
,
AssetRecycleReference
}
from
"../../../../util/constant"
;
const
AssetMount
=
(
props
)
=>
{
const
AssetMount
=
(
props
)
=>
{
const
{
onCancel
,
visible
,
ids
,
ref
rence
=
'asset-manage'
,
nodeTyp
e
}
=
props
;
const
{
onCancel
,
visible
,
ids
,
ref
erence
=
AssetManageReferenc
e
}
=
props
;
const
[
dirIds
,
setDirIds
]
=
useState
([]);
const
[
dirIds
,
setDirIds
]
=
useState
([]);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
...
@@ -48,7 +50,7 @@ const AssetMount = (props) => {
...
@@ -48,7 +50,7 @@ const AssetMount = (props) => {
return
(
return
(
<
Modal
<
Modal
title=
{
(
nodeType
===
'RecycleBin'
)?
'挂载目录详情'
:
'变更目录详情'
}
title=
{
(
reference
===
AssetRecycleReference
)?
'挂载目录详情'
:
'变更目录详情'
}
visible=
{
visible
}
visible=
{
visible
}
width=
{
400
}
width=
{
400
}
confirmLoading=
{
confirmLoading
}
confirmLoading=
{
confirmLoading
}
...
@@ -63,7 +65,7 @@ const AssetMount = (props) => {
...
@@ -63,7 +65,7 @@ const AssetMount = (props) => {
checkable=
{
true
}
checkable=
{
true
}
showCustom=
{
false
}
showCustom=
{
false
}
onCheck=
{
onCheck
}
onCheck=
{
onCheck
}
tableId=
{
(
ref
rence
===
'asset-manage'
&&
(
ids
||
[].
length
>
0
))?
ids
[
0
]:
''
}
tableId=
{
(
ref
erence
===
AssetManageReference
&&
(
ids
||
[].
length
>
0
))?
ids
[
0
]:
''
}
reference=
'mount'
reference=
'mount'
{
...
props
}
{
...
props
}
/>
/>
...
...
src/view/Manage/AssetRecycle/index.jsx
View file @
3c4bc51d
import
React
from
'react'
;
import
React
from
'react'
;
import
AssetTable
from
'../AssetManage/Component/AssetTable'
;
import
AssetTable
from
'../AssetManage/Component/AssetTable'
;
import
{
AssetRecycleReference
}
from
'../../../util/constant'
;
const
AssetRecycle
=
(
props
)
=>
{
const
AssetRecycle
=
(
props
)
=>
{
return
(
return
(
<
div
className=
'asset-recycle'
style=
{
{
backgroundColor
:
'#fff
'
}
}
>
<
div
style=
{
{
backgroundColor
:
'#fff'
,
height
:
'100%
'
}
}
>
<
AssetTable
nodeType=
'RecycleBin'
{
...
props
}
/>
<
AssetTable
reference=
{
AssetRecycleReference
}
{
...
props
}
/>
</
div
>
</
div
>
);
);
}
}
...
...
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