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
62836c8b
Commit
62836c8b
authored
May 17, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人增加自定义目录
parent
1bfe76cb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
5 deletions
+26
-5
assetmanage.js
src/model/assetmanage.js
+8
-0
dataassetmanager.js
src/service/dataassetmanager.js
+8
-0
index.jsx
src/view/Manage/AssetBrowse/index.jsx
+1
-1
AssetDirectory.jsx
src/view/Manage/AssetManage/Component/AssetDirectory.jsx
+8
-3
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+1
-1
No files found.
src/model/assetmanage.js
View file @
62836c8b
...
@@ -122,10 +122,18 @@ export function* getDirectoryById(payload) {
...
@@ -122,10 +122,18 @@ export function* getDirectoryById(payload) {
return
yield
call
(
service
.
getDirectoryById
,
payload
);
return
yield
call
(
service
.
getDirectoryById
,
payload
);
}
}
export
function
*
getPersonalCustomDirectoryById
(
payload
)
{
return
yield
call
(
service
.
getPersonalCustomDirectoryById
,
payload
);
}
export
function
*
upDownDirectory
(
payload
)
{
export
function
*
upDownDirectory
(
payload
)
{
return
yield
call
(
service
.
upDownDirectory
,
payload
);
return
yield
call
(
service
.
upDownDirectory
,
payload
);
}
}
export
function
*
upDownPersonalCustomDirectory
(
payload
)
{
return
yield
call
(
service
.
upDownPersonalCustomDirectory
,
payload
);
}
export
function
*
listDirectoryByName
(
payload
)
{
export
function
*
listDirectoryByName
(
payload
)
{
return
yield
call
(
service
.
listDirectoryByName
,
payload
);
return
yield
call
(
service
.
listDirectoryByName
,
payload
);
}
}
...
...
src/service/dataassetmanager.js
View file @
62836c8b
...
@@ -156,10 +156,18 @@ export function getDirectoryById(payload) {
...
@@ -156,10 +156,18 @@ export function getDirectoryById(payload) {
return
GetJSON
(
"/dataassetmanager/directoryApi/getDirectoryById"
,
payload
);
return
GetJSON
(
"/dataassetmanager/directoryApi/getDirectoryById"
,
payload
);
}
}
export
function
getPersonalCustomDirectoryById
(
payload
)
{
return
GetJSON
(
"/dataassetmanager/directoryApi/getPersonalCustomDirectoryById"
,
payload
);
}
export
function
upDownDirectory
(
payload
)
{
export
function
upDownDirectory
(
payload
)
{
return
PostJSON
(
"/dataassetmanager/directoryApi/upDownDirectory"
,
payload
);
return
PostJSON
(
"/dataassetmanager/directoryApi/upDownDirectory"
,
payload
);
}
}
export
function
upDownPersonalCustomDirectory
(
payload
)
{
return
PostJSON
(
"/dataassetmanager/directoryApi/upDownPersonalCustomDirectory"
,
payload
);
}
export
function
listDirectoryByName
(
payload
)
{
export
function
listDirectoryByName
(
payload
)
{
return
GetJSON
(
"/dataassetmanager/directoryApi/listDirectoryByName"
,
payload
);
return
GetJSON
(
"/dataassetmanager/directoryApi/listDirectoryByName"
,
payload
);
}
}
...
...
src/view/Manage/AssetBrowse/index.jsx
View file @
62836c8b
...
@@ -67,7 +67,7 @@ const AssetBrowse = (props) => {
...
@@ -67,7 +67,7 @@ const AssetBrowse = (props) => {
expandTree
&&
<
Separate
width=
{
15
}
/>
expandTree
&&
<
Separate
width=
{
15
}
/>
}
}
<
div
className=
'right'
>
<
div
className=
'right'
>
<
AssetDirectory
id=
{
nodeId
}
assetCount=
{
assetCount
}
reference=
{
reference
}
/>
<
AssetDirectory
id=
{
nodeId
}
assetCount=
{
assetCount
}
reference=
{
reference
}
nodeType=
{
nodeParams
.
nodeType
}
/>
<
Separate
height=
{
15
}
/>
<
Separate
height=
{
15
}
/>
<
div
className=
'flex'
style=
{
{
flex
:
1
,
height
:
'100%'
,
overflow
:
'hidden'
}
}
>
<
div
className=
'flex'
style=
{
{
flex
:
1
,
height
:
'100%'
,
overflow
:
'hidden'
}
}
>
{
{
...
...
src/view/Manage/AssetManage/Component/AssetDirectory.jsx
View file @
62836c8b
...
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
...
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
import
{
Spin
,
Tooltip
,
Typography
,
Dropdown
,
Menu
}
from
'antd'
;
import
{
Spin
,
Tooltip
,
Typography
,
Dropdown
,
Menu
}
from
'antd'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
Asset
Manag
eReference
}
from
'../../../../util/constant'
;
import
{
Asset
BrowseReference
,
AssetManageReference
,
ResourceBrows
eReference
}
from
'../../../../util/constant'
;
import
ImportElement
from
'./ImportElement'
;
import
ImportElement
from
'./ImportElement'
;
import
AttributeRelationModal
from
"./AttributeRelationModal"
;
import
AttributeRelationModal
from
"./AttributeRelationModal"
;
import
FilterElementModal
from
'./FilterElementModal'
;
import
FilterElementModal
from
'./FilterElementModal'
;
...
@@ -16,7 +16,7 @@ import './AssetDirectory.less';
...
@@ -16,7 +16,7 @@ import './AssetDirectory.less';
const
{
Paragraph
,
Text
}
=
Typography
;
const
{
Paragraph
,
Text
}
=
Typography
;
const
AssetDirectory
=
(
props
)
=>
{
const
AssetDirectory
=
(
props
)
=>
{
const
{
id
,
directoryChanged
,
assetCount
,
reference
=
AssetManageReference
,
onElementsChange
}
=
props
;
const
{
id
,
directoryChanged
,
assetCount
,
reference
=
AssetManageReference
,
onElementsChange
,
nodeType
}
=
props
;
const
[
dir
,
setDir
]
=
useState
(
null
);
const
[
dir
,
setDir
]
=
useState
(
null
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
importElementVisible
,
setImportElementVisible
]
=
useState
(
false
);
const
[
importElementVisible
,
setImportElementVisible
]
=
useState
(
false
);
...
@@ -49,9 +49,14 @@ const AssetDirectory = (props) => {
...
@@ -49,9 +49,14 @@ const AssetDirectory = (props) => {
},
[
id
,
directoryChanged
])
},
[
id
,
directoryChanged
])
const
getDirectory
=
()
=>
{
const
getDirectory
=
()
=>
{
let
url
=
'assetmanage.getDirectoryById'
;
if
((
reference
===
AssetBrowseReference
||
reference
===
ResourceBrowseReference
)
&&
nodeType
===
'custom'
)
{
url
=
'assetmanage.getPersonalCustomDirectoryById'
;
}
setLoading
(
true
);
setLoading
(
true
);
dispatch
({
dispatch
({
type
:
'assetmanage.getDirectoryById'
,
type
:
url
,
payload
:
{
payload
:
{
dirId
:
id
dirId
:
id
},
},
...
...
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
62836c8b
...
@@ -374,7 +374,7 @@ const AssetTree = (props) => {
...
@@ -374,7 +374,7 @@ const AssetTree = (props) => {
setLoading
(
true
);
setLoading
(
true
);
dispatch
({
dispatch
({
type
:
'assetmanage.upDownDirectory'
,
type
:
'assetmanage.upDown
PersonalCustom
Directory'
,
payload
:
{
payload
:
{
params
:
{
params
:
{
dirId
:
currentRightClickDir
.
nodeId
,
dirId
:
currentRightClickDir
.
nodeId
,
...
...
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