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
ed9537e6
Commit
ed9537e6
authored
Aug 15, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改提交任务时promotedParameters字段的拼接逻辑
parent
ef0a1753
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
index.tsx
src/views/Project/ProjectSubmitWork/index.tsx
+11
-3
interface.ts
src/views/Project/ProjectSubmitWork/interface.ts
+2
-1
No files found.
src/views/Project/ProjectSubmitWork/index.tsx
View file @
ed9537e6
...
@@ -185,9 +185,17 @@ const ProjectSubmitWork = observer(() => {
...
@@ -185,9 +185,17 @@ const ProjectSubmitWork = observer(() => {
)
{
)
{
value
=
`/
${
value
}
`
;
value
=
`/
${
value
}
`
;
}
}
promotedParameters
[
parameter
.
name
]
=
{
if
(
tack
.
type
===
"BATCH"
)
{
[
parameter
.
classTypeName
]:
value
,
promotedParameters
[
`
${
tack
.
id
}
_
${
parameter
.
name
}
`
]
=
{
};
[
parameter
.
classTypeName
]:
value
,
};
}
else
{
promotedParameters
[
`
${
tack
.
parentNode
}
_
${
tack
.
prefix
}
_
${
parameter
.
name
}
`
]
=
{
[
parameter
.
classTypeName
]:
value
,
};
}
});
});
});
});
submitWorkFlowRun
({
submitWorkFlowRun
({
...
...
src/views/Project/ProjectSubmitWork/interface.ts
View file @
ed9537e6
...
@@ -46,7 +46,8 @@ export interface ITask {
...
@@ -46,7 +46,8 @@ export interface ITask {
};
};
tags
?:
string
[];
tags
?:
string
[];
type
:
IType
|
string
;
// 算子类型(批算子、流算子)
type
:
IType
|
string
;
// 算子类型(批算子、流算子)
parentNode
?:
string
;
//
parentNode
?:
string
;
// 父节点id
prefix
?:
string
;
// 批算子内部流算子的前缀,为了区分重复的流算子
parameters
:
Array
<
IParameter
>
;
// 参数组
parameters
:
Array
<
IParameter
>
;
// 参数组
edges
:
Array
<
IEdge
>
;
edges
:
Array
<
IEdge
>
;
isCheck
?:
boolean
;
// 表单校验是否通过
isCheck
?:
boolean
;
// 表单校验是否通过
...
...
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