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
5f1d13aa
Commit
5f1d13aa
authored
Jul 07, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加算子列表、参数设置切换
parent
24b9ce7c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
3 deletions
+53
-3
index.module.css
...CommonComponents/RadioGroupOfButtonStyle/index.module.css
+2
-0
index.tsx
...onents/CommonComponents/RadioGroupOfButtonStyle/index.tsx
+6
-2
index.tsx
src/views/Project/ProjectJobDetail/index.tsx
+4
-1
index.module.css
src/views/WorkFlowEdit/index.module.css
+4
-0
index.tsx
src/views/WorkFlowEdit/index.tsx
+37
-0
No files found.
src/components/CommonComponents/RadioGroupOfButtonStyle/index.module.css
View file @
5f1d13aa
...
@@ -19,8 +19,10 @@
...
@@ -19,8 +19,10 @@
line-height
:
20px
;
line-height
:
20px
;
padding
:
3px
18px
;
padding
:
3px
18px
;
background-color
:
#e6e8eb
;
background-color
:
#e6e8eb
;
flex
:
1
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
}
}
.radioActive
{
.radioActive
{
color
:
#1370ff
;
color
:
#1370ff
;
...
...
src/components/CommonComponents/RadioGroupOfButtonStyle/index.tsx
View file @
5f1d13aa
...
@@ -11,13 +11,16 @@ type IRadioGroupOfButtonStyleProps = {
...
@@ -11,13 +11,16 @@ type IRadioGroupOfButtonStyleProps = {
radioOptions
:
Array
<
radioOption
>
;
radioOptions
:
Array
<
radioOption
>
;
value
:
string
;
value
:
string
;
handleRadio
:
any
;
handleRadio
:
any
;
RadiosBoxStyle
?:
object
;
radioStyle
?:
object
;
};
};
const
RadioGroupOfButtonStyle
=
(
props
:
IRadioGroupOfButtonStyleProps
)
=>
{
const
RadioGroupOfButtonStyle
=
(
props
:
IRadioGroupOfButtonStyleProps
)
=>
{
const
{
radioOptions
,
value
,
handleRadio
}
=
props
;
const
{
radioOptions
,
value
,
handleRadio
,
RadiosBoxStyle
,
radioStyle
}
=
props
;
return
(
return
(
<
div
className=
{
style
.
RadiosBox
}
>
<
div
className=
{
style
.
RadiosBox
}
style=
{
RadiosBoxStyle
}
>
{
radioOptions
.
map
((
options
)
=>
{
{
radioOptions
.
map
((
options
)
=>
{
return
(
return
(
<
div
<
div
...
@@ -27,6 +30,7 @@ const RadioGroupOfButtonStyle = (props: IRadioGroupOfButtonStyleProps) => {
...
@@ -27,6 +30,7 @@ const RadioGroupOfButtonStyle = (props: IRadioGroupOfButtonStyleProps) => {
[
style
.
radioActive
]:
value
===
options
.
value
,
[
style
.
radioActive
]:
value
===
options
.
value
,
})
}
})
}
onClick=
{
()
=>
handleRadio
(
options
.
value
)
}
onClick=
{
()
=>
handleRadio
(
options
.
value
)
}
style=
{
radioStyle
}
>
>
{
options
.
label
}
{
options
.
label
}
</
div
>
</
div
>
...
...
src/views/Project/ProjectJobDetail/index.tsx
View file @
5f1d13aa
...
@@ -96,6 +96,7 @@ const ProjectSubmitWork = observer(() => {
...
@@ -96,6 +96,7 @@ const ProjectSubmitWork = observer(() => {
},
},
});
});
// 前往数据管理页面
const
goToProjectData
=
(
path
:
string
)
=>
{
const
goToProjectData
=
(
path
:
string
)
=>
{
path
=
path
.
slice
(
13
);
path
=
path
.
slice
(
13
);
if
(
path
)
{
if
(
path
)
{
...
@@ -339,7 +340,9 @@ const ProjectSubmitWork = observer(() => {
...
@@ -339,7 +340,9 @@ const ProjectSubmitWork = observer(() => {
<
div
key=
{
index
}
className=
{
styles
.
outputLi
}
>
<
div
key=
{
index
}
className=
{
styles
.
outputLi
}
>
<
MyPopconfirm
<
MyPopconfirm
title=
"即将跳转至项目数据内该任务的结果目录,确认继续吗?"
title=
"即将跳转至项目数据内该任务的结果目录,确认继续吗?"
onConfirm=
{
()
=>
goToProjectData
(
getFolderPath
(
item
.
path
))
}
onConfirm=
{
()
=>
goToProjectData
(
getFolderPath
(
item
.
path
))
}
>
>
<
div
className=
{
styles
.
outputLiLeft
}
>
<
div
className=
{
styles
.
outputLiLeft
}
>
<
img
<
img
...
...
src/views/WorkFlowEdit/index.module.css
View file @
5f1d13aa
...
@@ -40,3 +40,7 @@
...
@@ -40,3 +40,7 @@
flex
:
1
;
flex
:
1
;
height
:
calc
(
100vh
-
56px
);
height
:
calc
(
100vh
-
56px
);
}
}
.radiosBox
{
background-color
:
#fff
;
padding
:
24px
;
}
src/views/WorkFlowEdit/index.tsx
View file @
5f1d13aa
...
@@ -12,11 +12,24 @@ import IconButton from "@mui/material/IconButton";
...
@@ -12,11 +12,24 @@ import IconButton from "@mui/material/IconButton";
import
{
useLocation
,
useNavigate
}
from
"react-router-dom"
;
import
{
useLocation
,
useNavigate
}
from
"react-router-dom"
;
import
MyPopconfirm
from
"@/components/mui/MyPopconfirm"
;
import
MyPopconfirm
from
"@/components/mui/MyPopconfirm"
;
import
RadioGroupOfButtonStyle
from
"@/components/CommonComponents/RadioGroupOfButtonStyle"
;
import
ButtonComponent
from
"@/components/mui/Button"
;
import
ButtonComponent
from
"@/components/mui/Button"
;
import
{
ITemplateConfig
}
from
"../Project/ProjectSubmitWork/interface"
;
import
{
ITemplateConfig
}
from
"../Project/ProjectSubmitWork/interface"
;
import
OperatorList
from
"./components/OperatorList"
;
import
OperatorList
from
"./components/OperatorList"
;
import
styles
from
"./index.module.css"
;
import
styles
from
"./index.module.css"
;
import
{
style
}
from
"@mui/system"
;
const
radioOptions
=
[
{
value
:
"list"
,
label
:
"算子列表"
,
},
{
value
:
"setting"
,
label
:
"参数设置"
,
},
];
const
WorkFlowEdit
=
()
=>
{
const
WorkFlowEdit
=
()
=>
{
const
[
templateConfigInfo
,
setTemplateConfigInfo
]
=
const
[
templateConfigInfo
,
setTemplateConfigInfo
]
=
...
@@ -24,6 +37,8 @@ const WorkFlowEdit = () => {
...
@@ -24,6 +37,8 @@ const WorkFlowEdit = () => {
const
location
:
any
=
useLocation
();
const
location
:
any
=
useLocation
();
const
navigate
=
useNavigate
();
const
navigate
=
useNavigate
();
const
[
leftContentType
,
setLeftContentType
]
=
useState
(
"list"
);
return
(
return
(
<
div
className=
{
styles
.
swBox
}
>
<
div
className=
{
styles
.
swBox
}
>
<
div
className=
{
styles
.
swHeader
}
>
<
div
className=
{
styles
.
swHeader
}
>
...
@@ -62,9 +77,31 @@ const WorkFlowEdit = () => {
...
@@ -62,9 +77,31 @@ const WorkFlowEdit = () => {
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
swContent
}
>
<
div
className=
{
styles
.
swContent
}
>
<
div
>
<
div
className=
{
styles
.
radiosBox
}
>
<
RadioGroupOfButtonStyle
radioOptions=
{
radioOptions
}
value=
{
leftContentType
}
handleRadio=
{
setLeftContentType
}
RadiosBoxStyle=
{
{
height
:
"36px"
,
padding
:
"3px"
,
}
}
radioStyle=
{
{
fontSize
:
"16px"
,
height
:
"30px"
,
}
}
></
RadioGroupOfButtonStyle
>
</
div
>
{
leftContentType
===
"list"
&&
(
<
div
className=
{
styles
.
swFormBox
}
>
<
div
className=
{
styles
.
swFormBox
}
>
<
OperatorList
/>
<
OperatorList
/>
</
div
>
</
div
>
)
}
{
leftContentType
!==
"list"
&&
(
<
div
className=
{
styles
.
swFormBox
}
>
123
</
div
>
)
}
</
div
>
<
div
className=
{
styles
.
swFlowBox
}
>
右侧
</
div
>
<
div
className=
{
styles
.
swFlowBox
}
>
右侧
</
div
>
</
div
>
</
div
>
</
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