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
Administrator
bkunyun
Commits
385a8761
Commit
385a8761
authored
Sep 01, 2022
by
jiangzijing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:概览页面吸顶+结果文件对齐
parent
7fa0164d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
8 deletions
+26
-8
index.module.css
src/views/Project/ProjectOverview/TaskCard/index.module.css
+8
-1
index.tsx
src/views/Project/ProjectOverview/TaskCard/index.tsx
+3
-2
index.module.css
src/views/Project/ProjectOverview/index.module.css
+12
-4
index.tsx
src/views/Project/ProjectOverview/index.tsx
+3
-1
No files found.
src/views/Project/ProjectOverview/TaskCard/index.module.css
View file @
385a8761
...
@@ -120,6 +120,7 @@
...
@@ -120,6 +120,7 @@
.result
{
.result
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
font-size
:
12px
;
font-size
:
12px
;
align-items
:
center
;
color
:
#1e2633
;
color
:
#1e2633
;
cursor
:
pointer
;
cursor
:
pointer
;
height
:
30px
;
height
:
30px
;
...
@@ -152,6 +153,12 @@
...
@@ -152,6 +153,12 @@
}
}
.outputLeftImg
{
.outputLeftImg
{
vertical-align
:
middle
;
vertical-align
:
top
;
margin-right
:
8px
;
margin-right
:
8px
;
}
}
.outputTitle
{
display
:
inline-block
;
height
:
22px
;
line-height
:
22px
;
}
src/views/Project/ProjectOverview/TaskCard/index.tsx
View file @
385a8761
...
@@ -48,7 +48,7 @@ const TaskCard = (props: TaskCardProps) => {
...
@@ -48,7 +48,7 @@ const TaskCard = (props: TaskCardProps) => {
},
[
outputs
])
},
[
outputs
])
// 结果文件跳转
// 结果文件跳转
const
goToProjectData
=
(
info
:
any
)
=>
{
const
goToProjectData
=
(
info
:
any
)
=>
{
let
{
path
=
''
,
type
=
''
}
=
info
let
{
path
=
''
,
type
=
''
}
=
info
const
lastIndex
=
path
.
lastIndexOf
(
"/"
);
const
lastIndex
=
path
.
lastIndexOf
(
"/"
);
// /projectData
// /projectData
// dataType
// dataType
...
@@ -190,7 +190,8 @@ const TaskCard = (props: TaskCardProps) => {
...
@@ -190,7 +190,8 @@ const TaskCard = (props: TaskCardProps) => {
}
}
alt=
""
alt=
""
/>
/>
{
item
?.
name
}
</
div
>
<
span
className=
{
style
.
outputTitle
}
>
{
item
?.
name
}
</
span
>
</
div
>
})
}
})
}
</
div
>
</
div
>
}
}
...
...
src/views/Project/ProjectOverview/index.module.css
View file @
385a8761
.topFixed
{
position
:
sticky
;
top
:
0
;
z-index
:
10
;
background-color
:
#fff
;
}
.basicInformation
{
.basicInformation
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin
:
24px
24px
0
24px
;
margin
:
0
24px
;
padding
-bottom
:
20px
;
padding
:
20px
0
;
border-bottom
:
1px
solid
#EDEFF2
;
border-bottom
:
1px
solid
#EDEFF2
;
}
}
...
@@ -39,7 +46,7 @@
...
@@ -39,7 +46,7 @@
color
:
#565C66
;
color
:
#565C66
;
}
}
.otherInformationBoxRight
{
.otherInformationBoxRight
{
line-height
:
22px
;
line-height
:
22px
;
margin-bottom
:
4px
;
margin-bottom
:
4px
;
color
:
#565C66
;
color
:
#565C66
;
...
@@ -63,6 +70,7 @@
...
@@ -63,6 +70,7 @@
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin
:
24px
24px
0
24px
;
margin
:
24px
24px
0
24px
;
padding-bottom
:
20px
;
}
}
.searchLineLeft
{
.searchLineLeft
{
...
@@ -85,7 +93,7 @@
...
@@ -85,7 +93,7 @@
.taskDisplay
{
.taskDisplay
{
position
:
relative
;
position
:
relative
;
margin
:
20px
24
px
;
margin
:
0
24px
20
px
;
padding-bottom
:
16px
;
padding-bottom
:
16px
;
overflow
:
hidden
;
overflow
:
hidden
;
background
:
#F7F8FA
;
background
:
#F7F8FA
;
...
...
src/views/Project/ProjectOverview/index.tsx
View file @
385a8761
...
@@ -72,7 +72,7 @@ const ProjectOverview = observer(() => {
...
@@ -72,7 +72,7 @@ const ProjectOverview = observer(() => {
}
}
}
}
const
handleKeyWordChangeBlur
=
(
e
:
any
)
=>
{
const
handleKeyWordChangeBlur
=
(
e
:
any
)
=>
{
setJobName
(
e
.
target
.
value
);
setJobName
(
e
.
target
.
value
);
}
}
...
@@ -100,6 +100,7 @@ const ProjectOverview = observer(() => {
...
@@ -100,6 +100,7 @@ const ProjectOverview = observer(() => {
}
else
{
}
else
{
return
(
return
(
<>
<>
<
div
className=
{
style
.
topFixed
}
>
<
div
className=
{
style
.
basicInformation
}
>
<
div
className=
{
style
.
basicInformation
}
>
<
div
>
<
div
>
<
div
className=
{
style
.
titleBox
}
>
<
div
className=
{
style
.
titleBox
}
>
...
@@ -153,6 +154,7 @@ const ProjectOverview = observer(() => {
...
@@ -153,6 +154,7 @@ const ProjectOverview = observer(() => {
sx=
{
{
width
:
340
}
}
sx=
{
{
width
:
340
}
}
/>
/>
</
div
>
</
div
>
</
div
>
<
div
className=
{
style
.
taskDisplay
}
>
<
div
className=
{
style
.
taskDisplay
}
>
{
/* 任务列表为空展示 */
}
{
/* 任务列表为空展示 */
}
{
taskList
.
length
===
0
&&
(
{
taskList
.
length
===
0
&&
(
...
...
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