Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
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
sunyihao
bkunyun
Commits
983a53c1
Commit
983a53c1
authored
Jun 15, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-20220608-projectdata' into 'release'
Feat 20220608 projectdata See merge request
!34
parents
0aaeb735
126e0a9c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
26 deletions
+29
-26
package-lock.json
package-lock.json
+1
-1
MyTreeView.tsx
src/components/mui/MyTreeView.tsx
+3
-23
index.tsx
src/views/Project/ProjectData/MoveFile/index.tsx
+1
-1
index.module.css
src/views/Project/ProjectData/index.module.css
+23
-0
index.tsx
src/views/Project/ProjectData/index.tsx
+0
-0
project.ts
src/views/Project/project.ts
+1
-1
No files found.
package-lock.json
View file @
983a53c1
...
@@ -11838,7 +11838,7 @@
...
@@ -11838,7 +11838,7 @@
},
},
"webpack-dev-server"
:
{
"webpack-dev-server"
:
{
"version"
:
"4.9.0"
,
"version"
:
"4.9.0"
,
"resolved"
:
"https://registry.npm
mirror.com
/webpack-dev-server/-/webpack-dev-server-4.9.0.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/webpack-dev-server/-/webpack-dev-server-4.9.0.tgz"
,
"integrity"
:
"sha512-+Nlb39iQSOSsFv0lWUuUTim3jDQO8nhK3E68f//J2r5rIcp4lULHXz2oZ0UVdEeWXEh5lSzYUlzarZhDAeAVQw=="
,
"integrity"
:
"sha512-+Nlb39iQSOSsFv0lWUuUTim3jDQO8nhK3E68f//J2r5rIcp4lULHXz2oZ0UVdEeWXEh5lSzYUlzarZhDAeAVQw=="
,
"requires"
:
{
"requires"
:
{
"@types/bonjour"
:
"^3.5.9"
,
"@types/bonjour"
:
"^3.5.9"
,
...
...
src/components/mui/MyTreeView.tsx
View file @
983a53c1
...
@@ -10,7 +10,6 @@ interface TreeItemType {
...
@@ -10,7 +10,6 @@ interface TreeItemType {
}
}
type
MyTreeViewProps
=
{
type
MyTreeViewProps
=
{
// treeData: RenderTree;
treeData
:
Array
<
TreeItemType
>
;
treeData
:
Array
<
TreeItemType
>
;
onNodeFocus
?:
(
event
:
object
,
value
:
string
)
=>
void
;
// 点击某一项的回调
onNodeFocus
?:
(
event
:
object
,
value
:
string
)
=>
void
;
// 点击某一项的回调
onNodeSelect
?:
(
event
:
object
,
value
:
Array
<
any
>
|
string
)
=>
void
;
// 点击某一项的回调
onNodeSelect
?:
(
event
:
object
,
value
:
Array
<
any
>
|
string
)
=>
void
;
// 点击某一项的回调
...
@@ -55,20 +54,6 @@ const MyTreeView = (props: MyTreeViewProps) => {
...
@@ -55,20 +54,6 @@ const MyTreeView = (props: MyTreeViewProps) => {
</
TreeItem
>
</
TreeItem
>
);
);
// const renderTreeArray = (node: TreeItemType, index: number) => {
// return (
// <TreeItem
// key={node.id || `${node.name}${index}`}
// nodeId={String(node.id)}
// label={renderLabel === undefined ? node.name : renderLabel(node.name)}
// >
// {Array.isArray(node.subdirs)
// ? node.subdirs.map((nodeLi: any, i) => renderTreeArray(nodeLi, i))
// : null}
// </TreeItem>
// );
// };
return
(
return
(
<
TreeView
<
TreeView
defaultCollapseIcon=
{
<
ArrowRightIcon
/>
}
defaultCollapseIcon=
{
<
ArrowRightIcon
/>
}
...
@@ -79,14 +64,9 @@ const MyTreeView = (props: MyTreeViewProps) => {
...
@@ -79,14 +64,9 @@ const MyTreeView = (props: MyTreeViewProps) => {
defaultExpanded=
{
defaultExpanded
}
defaultExpanded=
{
defaultExpanded
}
sx=
{
{
...
treeViewSx
}
}
sx=
{
{
...
treeViewSx
}
}
>
>
{
treeData
.
length
===
0
?
(
{
treeData
.
map
((
treeItem
,
index
)
=>
{
<
div
>
暂无数据
</
div
>
return
renderTreeObj
(
treeItem
,
index
);
)
:
(
})
}
treeData
.
map
((
treeItem
,
index
)
=>
{
// return renderTreeArray(treeItem, index);
return
renderTreeObj
(
treeItem
,
index
);
})
)
}
</
TreeView
>
</
TreeView
>
);
);
};
};
...
...
src/views/Project/ProjectData/MoveFile/index.tsx
View file @
983a53c1
...
@@ -135,7 +135,7 @@ const MoveFile = (props: any) => {
...
@@ -135,7 +135,7 @@ const MoveFile = (props: any) => {
currentOperateFile
.
name
currentOperateFile
.
name
}
`
;
}
`
;
if
(
oldPath
===
newPath
)
{
if
(
oldPath
===
newPath
)
{
Message
.
info
(
"
当前目录和目标目录一致,请重新选择目标目录
"
);
Message
.
info
(
"
指定的目标路径为数据原路径,无需移动。
"
);
return
;
return
;
}
}
CloudEController
.
JobFileMove
(
CloudEController
.
JobFileMove
(
...
...
src/views/Project/ProjectData/index.module.css
View file @
983a53c1
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
}
}
.projectDataStickyTop
{
.projectDataStickyTop
{
padding
:
28px
24px
;
padding
:
28px
24px
;
position
:
relative
;
}
}
.projectDataTitle
{
.projectDataTitle
{
font-size
:
18px
;
font-size
:
18px
;
...
@@ -73,6 +74,10 @@
...
@@ -73,6 +74,10 @@
align-items
:
center
;
align-items
:
center
;
}
}
.folderPointer
{
cursor
:
pointer
;
}
.folderIcon
{
.folderIcon
{
margin-right
:
12px
;
margin-right
:
12px
;
}
}
...
@@ -111,4 +116,21 @@
...
@@ -111,4 +116,21 @@
}
}
.showPathSpanActive
{
.showPathSpanActive
{
color
:
#1370FF
;
color
:
#1370FF
;
}
.noDataBox
{
background-color
:
#fff
;
height
:
calc
(
100vh
-
377px
);
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
position
:
relative
;
top
:
-53px
;
}
.noDataText
{
margin-top
:
8px
;
font-size
:
14px
;
line-height
:
22px
;
color
:
#8A9099
;
}
}
\ No newline at end of file
src/views/Project/ProjectData/index.tsx
View file @
983a53c1
This diff is collapsed.
Click to expand it.
src/views/Project/project.ts
View file @
983a53c1
...
@@ -5,9 +5,9 @@ export const getProjectList = async () => {
...
@@ -5,9 +5,9 @@ export const getProjectList = async () => {
return
res
.
data
;
return
res
.
data
;
};
};
// 设置文件服务器指向
export
const
setFileServerEndPointLocalStorage
=
async
(
zoneId
:
string
)
=>
{
export
const
setFileServerEndPointLocalStorage
=
async
(
zoneId
:
string
)
=>
{
const
res
=
await
hpczone
();
const
res
=
await
hpczone
();
console
.
log
(
res
);
let
fileServerEndPoint
=
""
;
let
fileServerEndPoint
=
""
;
if
(
Array
.
isArray
(
res
))
{
if
(
Array
.
isArray
(
res
))
{
res
.
forEach
((
item
:
any
)
=>
{
res
.
forEach
((
item
:
any
)
=>
{
...
...
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