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
b10d7767
Commit
b10d7767
authored
Oct 19, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加参数
parent
4fbc2dd9
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
30 deletions
+76
-30
assetmanage.js
src/model/assetmanage.js
+2
-2
dataassetmanager.js
src/service/dataassetmanager.js
+2
-2
CustomDirectoryModal.jsx
...iew/Manage/AssetManage/Component/CustomDirectoryModal.jsx
+37
-9
ImportAssetDrawer.jsx
src/view/Manage/AssetManage/Component/ImportAssetDrawer.jsx
+7
-4
ImportDirectory.jsx
src/view/Manage/AssetManage/Component/ImportDirectory.jsx
+9
-5
table.jsx
src/view/Manage/AssetResourceManage/table.jsx
+6
-3
tree.jsx
src/view/Manage/AssetResourceManage/tree.jsx
+13
-5
No files found.
src/model/assetmanage.js
View file @
b10d7767
...
@@ -18,8 +18,8 @@ export function* listUserElements(payload) {
...
@@ -18,8 +18,8 @@ export function* listUserElements(payload) {
return
yield
call
(
service
.
listUserElements
,
payload
);
return
yield
call
(
service
.
listUserElements
,
payload
);
}
}
export
function
*
listCustomElements
()
{
export
function
*
listCustomElements
(
payload
)
{
return
yield
call
(
service
.
listCustomElements
);
return
yield
call
(
service
.
listCustomElements
,
payload
);
}
}
export
function
*
listFilterElementIds
(
payload
)
{
export
function
*
listFilterElementIds
(
payload
)
{
...
...
src/service/dataassetmanager.js
View file @
b10d7767
...
@@ -16,8 +16,8 @@ export function listUserElements(payload) {
...
@@ -16,8 +16,8 @@ export function listUserElements(payload) {
return
PostJSON
(
"/dataassetmanager/elementApi/listSelectedRangeElements"
,
payload
);
return
PostJSON
(
"/dataassetmanager/elementApi/listSelectedRangeElements"
,
payload
);
}
}
export
function
listCustomElements
()
{
export
function
listCustomElements
(
payload
)
{
return
GetJSON
(
"/dataassetmanager/elementApi/listCustomElements"
);
return
GetJSON
(
"/dataassetmanager/elementApi/listCustomElements"
,
payload
);
}
}
export
function
listFilterElementIds
(
payload
)
{
export
function
listFilterElementIds
(
payload
)
{
...
...
src/view/Manage/AssetManage/Component/CustomDirectoryModal.jsx
View file @
b10d7767
...
@@ -7,14 +7,17 @@ import update from 'immutability-helper';
...
@@ -7,14 +7,17 @@ import update from 'immutability-helper';
import
DragTag
from
'./DragTag'
;
import
DragTag
from
'./DragTag'
;
import
PreviewTree
from
'./PreviewTree'
;
import
PreviewTree
from
'./PreviewTree'
;
import
{
dispatch
,
dispatchLatest
}
from
'../../../../model'
;
import
{
dispatch
,
dispatchLatest
}
from
'../../../../model'
;
import
{
AssetManageReference
,
AssetBrowseReference
,
ResourceBrowseReference
}
from
'../../../../util/constant'
;
import
{
AssetManageReference
,
AssetBrowseReference
,
ResourceBrowseReference
,
ResourceManageReference
}
from
'../../../../util/constant'
;
import
{
showMessage
}
from
'../../../../util'
;
import
{
getAssetType
,
showMessage
}
from
'../../../../util'
;
const
resourceTypes
=
[
const
resourceTypes
=
[
{
key
:
'innerSource'
,
name
:
'内部资源'
},
{
key
:
'innerSource'
,
name
:
'内部资源'
},
{
key
:
'outerSource'
,
name
:
'外部资源'
},
{
key
:
'outerSource'
,
name
:
'外部资源'
},
{
key
:
'dataAsset'
,
name
:
'资产'
},
]
const
assetTypes
=
[
{
key
:
'dataAsset'
,
name
:
'资产'
}
]
]
const
CustomDirectoryModal
=
(
props
)
=>
{
const
CustomDirectoryModal
=
(
props
)
=>
{
...
@@ -49,6 +52,9 @@ const CustomDirectoryModal = (props) => {
...
@@ -49,6 +52,9 @@ const CustomDirectoryModal = (props) => {
const
getAllElementsThenGetCurrentDirectory
=
()
=>
{
const
getAllElementsThenGetCurrentDirectory
=
()
=>
{
dispatch
({
dispatch
({
type
:
'assetmanage.listCustomElements'
,
type
:
'assetmanage.listCustomElements'
,
payload
:
{
dataAsset
:
getAssetType
(
reference
)
},
callback
:
elements
=>
{
callback
:
elements
=>
{
setData
(
elements
||
[]);
setData
(
elements
||
[]);
setFilterData
((
elements
||
[]).
filter
(
item
=>
(
item
.
name
||
''
).
indexOf
(
keyword
)
!==-
1
));
setFilterData
((
elements
||
[]).
filter
(
item
=>
(
item
.
name
||
''
).
indexOf
(
keyword
)
!==-
1
));
...
@@ -81,11 +87,15 @@ const CustomDirectoryModal = (props) => {
...
@@ -81,11 +87,15 @@ const CustomDirectoryModal = (props) => {
let
url
=
'assetmanage.previewTreeByCustomElements'
;
let
url
=
'assetmanage.previewTreeByCustomElements'
;
let
payload
=
{
let
payload
=
{
data
:
checkedValues
data
:
checkedValues
,
params
:
{
dataAsset
:
getAssetType
(
reference
)
}
}
}
if
(
reference
===
AssetManageReference
)
{
if
(
reference
===
ResourceManageReference
||
reference
===
AssetManageReference
)
{
payload
.
params
=
{
payload
.
params
=
{
...
payload
.
params
,
resourceTypes
:
(
form
.
getFieldValue
(
'resourceTypes'
)
||
[]).
join
(
','
)
resourceTypes
:
(
form
.
getFieldValue
(
'resourceTypes'
)
||
[]).
join
(
','
)
};
};
}
}
...
@@ -94,6 +104,7 @@ const CustomDirectoryModal = (props) => {
...
@@ -94,6 +104,7 @@ const CustomDirectoryModal = (props) => {
url
=
'assetmanage.previewTreeByCustomElementsAndResourceType'
;
url
=
'assetmanage.previewTreeByCustomElementsAndResourceType'
;
payload
.
params
=
{
payload
.
params
=
{
...
payload
.
params
,
resourceType
:
(
reference
===
ResourceBrowseReference
)?
'resource'
:
'dataAsset'
,
resourceType
:
(
reference
===
ResourceBrowseReference
)?
'resource'
:
'dataAsset'
,
}
}
}
}
...
@@ -155,7 +166,10 @@ const CustomDirectoryModal = (props) => {
...
@@ -155,7 +166,10 @@ const CustomDirectoryModal = (props) => {
let
payload
=
{
let
payload
=
{
data
:
checkedValues
,
data
:
checkedValues
,
params
:
row
params
:
{
...
row
,
dataAsset
:
getAssetType
(
reference
)
}
}
}
if
(
action
===
'edit'
)
{
if
(
action
===
'edit'
)
{
...
@@ -164,10 +178,10 @@ const CustomDirectoryModal = (props) => {
...
@@ -164,10 +178,10 @@ const CustomDirectoryModal = (props) => {
let
url
=
'assetmanage.saveTreeByCustomElements'
;
let
url
=
'assetmanage.saveTreeByCustomElements'
;
if
(
reference
===
AssetManageReference
)
{
if
(
reference
===
ResourceManageReference
||
reference
===
AssetManageReference
)
{
payload
.
params
=
{
payload
.
params
=
{
...
payload
.
params
,
...
payload
.
params
,
resourceTypes
:
(
row
.
resourceTypes
||
[]).
join
(
','
)
resourceTypes
:
(
row
.
resourceTypes
||
[]).
join
(
','
)
,
}
}
}
}
...
@@ -304,7 +318,7 @@ const CustomDirectoryModal = (props) => {
...
@@ -304,7 +318,7 @@ const CustomDirectoryModal = (props) => {
<
Input
/>
<
Input
/>
</
Form
.
Item
>
</
Form
.
Item
>
{
{
reference
===
AssetManageReference
&&
<
Form
.
Item
(
reference
===
ResourceManageReference
)
&&
<
Form
.
Item
label=
'数据范围'
label=
'数据范围'
name=
'resourceTypes'
name=
'resourceTypes'
>
>
...
@@ -317,6 +331,20 @@ const CustomDirectoryModal = (props) => {
...
@@ -317,6 +331,20 @@ const CustomDirectoryModal = (props) => {
</
Select
>
</
Select
>
</
Form
.
Item
>
</
Form
.
Item
>
}
}
{
(
reference
===
AssetManageReference
)
&&
<
Form
.
Item
label=
'数据范围'
name=
'resourceTypes'
>
<
Select
mode=
"multiple"
allowClear
>
{
assetTypes
.
map
((
item
,
index
)
=>
{
return
<
Select
.
Option
key=
{
item
.
key
}
>
{
item
.
name
}
</
Select
.
Option
>
})
}
</
Select
>
</
Form
.
Item
>
}
<
Form
.
Item
<
Form
.
Item
label=
'描述或原因'
label=
'描述或原因'
name=
'desc'
name=
'desc'
...
...
src/view/Manage/AssetManage/Component/ImportAssetDrawer.jsx
View file @
b10d7767
...
@@ -3,10 +3,11 @@ import { Button, Upload, Drawer, Table, Pagination, Divider, Form } from 'antd';
...
@@ -3,10 +3,11 @@ import { Button, Upload, Drawer, Table, Pagination, Divider, Form } from 'antd';
import
{
UploadOutlined
,
DownloadOutlined
}
from
'@ant-design/icons'
;
import
{
UploadOutlined
,
DownloadOutlined
}
from
'@ant-design/icons'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
showMessage
,
formatDate
}
from
'../../../../util'
;
import
{
showMessage
,
formatDate
,
getAssetType
}
from
'../../../../util'
;
import
{
AssetManageReference
}
from
'../../../../util/constant'
;
const
ImportAssetDrawer
=
(
props
)
=>
{
const
ImportAssetDrawer
=
(
props
)
=>
{
const
{
onCancel
,
onSuccess
,
visible
,
nodeId
}
=
props
;
const
{
onCancel
,
onSuccess
,
visible
,
nodeId
,
reference
=
AssetManageReference
}
=
props
;
const
[
fileList
,
setFileList
]
=
useState
([]);
const
[
fileList
,
setFileList
]
=
useState
([]);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
...
@@ -76,7 +77,7 @@ const ImportAssetDrawer = (props) => {
...
@@ -76,7 +77,7 @@ const ImportAssetDrawer = (props) => {
},
[
visible
])
},
[
visible
])
const
downloadTemplate
=
()
=>
{
const
downloadTemplate
=
()
=>
{
window
.
open
(
"/api/dataassetmanager/dataAssetApi/getImportTemplate"
);
window
.
open
(
`/api/dataassetmanager/dataAssetApi/getImportTemplate?dataAsset=
${
getAssetType
(
reference
)}
`
);
}
}
const
getLogs
=
(
p
=
1
,
s
=
20
)
=>
{
const
getLogs
=
(
p
=
1
,
s
=
20
)
=>
{
...
@@ -84,6 +85,7 @@ const ImportAssetDrawer = (props) => {
...
@@ -84,6 +85,7 @@ const ImportAssetDrawer = (props) => {
dispatch
({
dispatch
({
type
:
'assetmanage.importLogs'
,
type
:
'assetmanage.importLogs'
,
payload
:
{
payload
:
{
dataAsset
:
getAssetType
(
reference
),
page
:
p
,
page
:
p
,
pageSize
:
s
pageSize
:
s
},
},
...
@@ -134,7 +136,8 @@ const ImportAssetDrawer = (props) => {
...
@@ -134,7 +136,8 @@ const ImportAssetDrawer = (props) => {
dispatch
({
dispatch
({
type
:
'assetmanage.getDirectoryById'
,
type
:
'assetmanage.getDirectoryById'
,
payload
:
{
payload
:
{
dirId
:
nodeId
dirId
:
nodeId
,
dataAsset
:
getAssetType
(
reference
)
},
},
callback
:
data
=>
{
callback
:
data
=>
{
console
.
log
(
'path'
,
data
.
path
);
console
.
log
(
'path'
,
data
.
path
);
...
...
src/view/Manage/AssetManage/Component/ImportDirectory.jsx
View file @
b10d7767
...
@@ -3,10 +3,11 @@ import { Modal, Form, Upload, Button, Radio, Space } from 'antd';
...
@@ -3,10 +3,11 @@ import { Modal, Form, Upload, Button, Radio, Space } from 'antd';
import
{
UploadOutlined
}
from
'@ant-design/icons'
;
import
{
UploadOutlined
}
from
'@ant-design/icons'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
showNotifaction
}
from
'../../../../util'
;
import
{
getAssetType
,
showNotifaction
}
from
'../../../../util'
;
import
{
AssetManageReference
}
from
'../../../../util/constant'
;
const
ImportDirectory
=
(
props
)
=>
{
const
ImportDirectory
=
(
props
)
=>
{
const
{
visible
,
onCancel
,
dirId
}
=
props
;
const
{
visible
,
onCancel
,
dirId
,
reference
=
AssetManageReference
}
=
props
;
const
[
uploading
,
setUploading
]
=
useState
(
false
);
const
[
uploading
,
setUploading
]
=
useState
(
false
);
const
[
fileList
,
setFileList
]
=
useState
([]);
const
[
fileList
,
setFileList
]
=
useState
([]);
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
...
@@ -32,7 +33,8 @@ const ImportDirectory = (props) => {
...
@@ -32,7 +33,8 @@ const ImportDirectory = (props) => {
dispatch
({
dispatch
({
type
:
'assetmanage.getDirectoryById'
,
type
:
'assetmanage.getDirectoryById'
,
payload
:
{
payload
:
{
dirId
dirId
,
dataAsset
:
getAssetType
(
reference
)
},
},
callback
:
data
=>
{
callback
:
data
=>
{
setDir
(
data
);
setDir
(
data
);
...
@@ -55,7 +57,8 @@ const ImportDirectory = (props) => {
...
@@ -55,7 +57,8 @@ const ImportDirectory = (props) => {
if
(
row
.
type
===
'root'
)
{
if
(
row
.
type
===
'root'
)
{
payload
=
{
payload
=
{
params
:
{
params
:
{
ignoreRepeatPath
ignoreRepeatPath
,
dataAsset
:
getAssetType
(
reference
)
},
},
fileList
:
fileList
,
fileList
:
fileList
,
};
};
...
@@ -63,7 +66,8 @@ const ImportDirectory = (props) => {
...
@@ -63,7 +66,8 @@ const ImportDirectory = (props) => {
payload
=
{
payload
=
{
params
:
{
params
:
{
ignoreRepeatPath
,
ignoreRepeatPath
,
parentPath
:
dir
.
path
parentPath
:
dir
.
path
,
dataAsset
:
getAssetType
(
reference
)
},
},
fileList
:
fileList
fileList
:
fileList
};
};
...
...
src/view/Manage/AssetResourceManage/table.jsx
View file @
b10d7767
...
@@ -10,7 +10,7 @@ import { defaultPage, usePage } from '../../../util/hooks/page'
...
@@ -10,7 +10,7 @@ import { defaultPage, usePage } from '../../../util/hooks/page'
import
Table
from
'../../../util/Component/Table'
import
Table
from
'../../../util/Component/Table'
import
{
dispatch
}
from
'../../../model'
import
{
dispatch
}
from
'../../../model'
import
{
getAssetRange
,
getAssetType
,
getQueryParam
,
IsArr
,
isSzseEnv
,
showMessage
,
showNotifaction
}
from
'../../../util'
import
{
getAssetRange
,
getAssetType
,
getQueryParam
,
IsArr
,
isSzseEnv
,
showMessage
,
showNotifaction
}
from
'../../../util'
import
{
ResourceManageReference
}
from
'../../../util/constant'
import
{
AssetManageReference
,
ResourceManageReference
}
from
'../../../util/constant'
import
PermissionButton
from
'../../../util/Component/PermissionButton'
import
PermissionButton
from
'../../../util/Component/PermissionButton'
import
PermissionMenuItem
from
'../../../util/Component/PermissionMenuItem'
import
PermissionMenuItem
from
'../../../util/Component/PermissionMenuItem'
import
{
FullScreenSvg
,
CancelFullScreenSvg
}
from
'../AssetManage/Component/AssetSvg'
import
{
FullScreenSvg
,
CancelFullScreenSvg
}
from
'../AssetManage/Component/AssetSvg'
...
@@ -85,6 +85,7 @@ const FC = (props) => {
...
@@ -85,6 +85,7 @@ const FC = (props) => {
})
})
const
[
importAssetParams
,
setImportAssetParams
]
=
React
.
useState
({
const
[
importAssetParams
,
setImportAssetParams
]
=
React
.
useState
({
visible
:
false
,
visible
:
false
,
reference
:
undefined
,
nodeId
:
undefined
nodeId
:
undefined
})
})
const
[
changeCatalogParams
,
setChangeCatalogParams
]
=
React
.
useState
({
const
[
changeCatalogParams
,
setChangeCatalogParams
]
=
React
.
useState
({
...
@@ -631,6 +632,7 @@ const FC = (props) => {
...
@@ -631,6 +632,7 @@ const FC = (props) => {
const
onImportClick
=
()
=>
{
const
onImportClick
=
()
=>
{
setImportAssetParams
({
setImportAssetParams
({
visible
:
true
,
visible
:
true
,
reference
:
ResourceManageReference
,
nodeId
:
node
?.
nodeId
nodeId
:
node
?.
nodeId
})
})
}
}
...
@@ -641,11 +643,11 @@ const FC = (props) => {
...
@@ -641,11 +643,11 @@ const FC = (props) => {
title
:
'提示'
,
title
:
'提示'
,
content
:
'是否导出选中目录下的所有资产?'
,
content
:
'是否导出选中目录下的所有资产?'
,
onOk
:
()
=>
{
onOk
:
()
=>
{
window
.
open
(
`/api/dataassetmanager/dataAssetApi/exportByDataAssetIds?dirId=
${
node
?.
nodeId
}
&
recursive
=
$
{
args
.
params
.
catalogType
===
'currentRecursive'
}
`);
window
.
open
(
`/api/dataassetmanager/dataAssetApi/exportByDataAssetIds?dirId=
${
node
?.
nodeId
}
&
recursive
=
$
{
args
.
params
.
catalogType
===
'currentRecursive'
}
&
dataAsset
=
$
{
getAssetRange
(
ResourceManageReference
)}
`);
}
}
})
})
} else {
} else {
window.open(`
/
api
/
dataassetmanager
/
dataAssetApi
/
exportByDataAssetIds
?
dataAssetIds
=
$
{
selectedRows
.
map
(
item
=>
item
.
id
).
join
(
','
)}
`);
window.open(`
/
api
/
dataassetmanager
/
dataAssetApi
/
exportByDataAssetIds
?
dataAssetIds
=
$
{
selectedRows
.
map
(
item
=>
item
.
id
).
join
(
','
)}
&
dataAsset
=
$
{
getAssetRange
(
ResourceManageReference
)}
`);
}
}
}
}
...
@@ -1258,6 +1260,7 @@ const FC = (props) => {
...
@@ -1258,6 +1260,7 @@ const FC = (props) => {
onCancel={() => {
onCancel={() => {
setImportAssetParams({
setImportAssetParams({
visible: false,
visible: false,
reference: undefined,
nodeId: undefined
nodeId: undefined
})
})
}}
}}
...
...
src/view/Manage/AssetResourceManage/tree.jsx
View file @
b10d7767
...
@@ -4,7 +4,7 @@ import { PlusOutlined, ReloadOutlined, ImportOutlined, ExportOutlined, SettingOu
...
@@ -4,7 +4,7 @@ import { PlusOutlined, ReloadOutlined, ImportOutlined, ExportOutlined, SettingOu
import
produce
from
'immer'
import
produce
from
'immer'
import
{
dispatch
}
from
'../../../model'
import
{
dispatch
}
from
'../../../model'
import
{
showMessage
,
highlightSearchContentByTerms
,
showNotifaction
}
from
'../../../util'
import
{
showMessage
,
highlightSearchContentByTerms
,
showNotifaction
,
getAssetType
}
from
'../../../util'
import
Tree
from
'../../../util/Component/Tree'
import
Tree
from
'../../../util/Component/Tree'
import
PermissionButton
from
'../../../util/Component/PermissionButton'
import
PermissionButton
from
'../../../util/Component/PermissionButton'
import
UpdateNode
from
'./update-node'
import
UpdateNode
from
'./update-node'
...
@@ -12,6 +12,7 @@ import ImportNode from '../AssetManage/Component/ImportDirectory'
...
@@ -12,6 +12,7 @@ import ImportNode from '../AssetManage/Component/ImportDirectory'
import
CustomNode
from
'../AssetManage/Component/CustomDirectoryModal'
import
CustomNode
from
'../AssetManage/Component/CustomDirectoryModal'
import
'./tree.less'
import
'./tree.less'
import
{
ResourceManageReference
}
from
'../../../util/constant'
;
export
const
generateList
=
(
data
,
list
,
path
=
null
,
rootNodeId
=
null
)
=>
{
export
const
generateList
=
(
data
,
list
,
path
=
null
,
rootNodeId
=
null
)
=>
{
for
(
const
node
of
data
??[])
{
for
(
const
node
of
data
??[])
{
...
@@ -61,10 +62,12 @@ const FC = (props) => {
...
@@ -61,10 +62,12 @@ const FC = (props) => {
})
})
const
[
importNodeParam
,
setImportNodeParam
]
=
useState
({
const
[
importNodeParam
,
setImportNodeParam
]
=
useState
({
visible
:
false
,
visible
:
false
,
reference
:
undefined
,
dirId
:
undefined
dirId
:
undefined
})
})
const
[
customNodeParam
,
setCustomNodeParam
]
=
useState
({
const
[
customNodeParam
,
setCustomNodeParam
]
=
useState
({
visible
:
false
,
visible
:
false
,
reference
:
undefined
})
})
const
[
permissions
,
setPermissions
]
=
useState
()
const
[
permissions
,
setPermissions
]
=
useState
()
...
@@ -246,13 +249,15 @@ const FC = (props) => {
...
@@ -246,13 +249,15 @@ const FC = (props) => {
const
onImportClick
=
()
=>
{
const
onImportClick
=
()
=>
{
setImportNodeParam
({
setImportNodeParam
({
visible
:
true
,
visible
:
true
,
reference
:
ResourceManageReference
,
dirId
:
selectedKey
dirId
:
selectedKey
})
})
}
}
const
onCustomClick
=
()
=>
{
const
onCustomClick
=
()
=>
{
setCustomNodeParam
({
setCustomNodeParam
({
visible
:
true
visible
:
true
,
reference
:
ResourceManageReference
,
})
})
}
}
...
@@ -358,6 +363,7 @@ const FC = (props) => {
...
@@ -358,6 +363,7 @@ const FC = (props) => {
const
onImportNodeCancel
=
(
refresh
=
false
,
resetSelectedNode
=
false
)
=>
{
const
onImportNodeCancel
=
(
refresh
=
false
,
resetSelectedNode
=
false
)
=>
{
setImportNodeParam
({
setImportNodeParam
({
visible
:
false
,
visible
:
false
,
reference
:
undefined
,
dirId
:
undefined
dirId
:
undefined
})
})
refresh
&&
getTreeData
(
resetSelectedNode
)
refresh
&&
getTreeData
(
resetSelectedNode
)
...
@@ -365,7 +371,8 @@ const FC = (props) => {
...
@@ -365,7 +371,8 @@ const FC = (props) => {
const
onCustomNodeCancel
=
(
refresh
=
false
)
=>
{
const
onCustomNodeCancel
=
(
refresh
=
false
)
=>
{
setCustomNodeParam
({
setCustomNodeParam
({
visible
:
false
visible
:
false
,
reference
:
undefined
,
})
})
if
(
refresh
)
{
if
(
refresh
)
{
...
@@ -433,7 +440,7 @@ const FC = (props) => {
...
@@ -433,7 +440,7 @@ const FC = (props) => {
<
Menu
>
<
Menu
>
<
Menu
.
Item
>
<
Menu
.
Item
>
<
div
style=
{
{
textAlign
:
'center'
}
}
onClick=
{
()
=>
{
<
div
style=
{
{
textAlign
:
'center'
}
}
onClick=
{
()
=>
{
window
.
open
(
'/api/dataassetmanager/directoryApi/export'
)
window
.
open
(
`/api/dataassetmanager/directoryApi/export?dataAsset=${getAssetType(ResourceManageReference)}`
)
}
}
>
}
}
>
导出所有
导出所有
</
div
>
</
div
>
...
@@ -444,7 +451,8 @@ const FC = (props) => {
...
@@ -444,7 +451,8 @@ const FC = (props) => {
dispatch
({
dispatch
({
type
:
'assetmanage.getDirectoryById'
,
type
:
'assetmanage.getDirectoryById'
,
payload
:
{
payload
:
{
dirId
:
selectedKey
dirId
:
selectedKey
,
dataAsset
:
getAssetType
(
ResourceManageReference
)
},
},
callback
:
data
=>
{
callback
:
data
=>
{
window
.
open
(
`/api/dataassetmanager/directoryApi/export?parentPath=${data.path}`
);
window
.
open
(
`/api/dataassetmanager/directoryApi/export?parentPath=${data.path}`
);
...
...
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