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
954ba82e
Commit
954ba82e
authored
Aug 15, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-20220801' into 'staging'
Feat 20220801 See merge request
!54
parents
2c3d1fe9
ef0a1753
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
30 deletions
+17
-30
util.ts
src/views/Project/ProjectSubmitWork/util.ts
+10
-8
index.tsx
...ct/components/Flow/components/BatchOperatorFlow/index.tsx
+2
-0
index.module.css
...ject/components/Flow/components/FlowNode/index.module.css
+5
-5
index.tsx
...ews/Project/components/Flow/components/FlowNode/index.tsx
+0
-17
No files found.
src/views/Project/ProjectSubmitWork/util.ts
View file @
954ba82e
...
...
@@ -20,14 +20,16 @@ export const getCheckResult = (
helperText
=
"该选项是必填项"
;
}
}
if
(
parameter
.
validators
.
length
>
0
)
{
parameter
.
validators
.
forEach
((
validator
)
=>
{
const
reg
=
new
RegExp
(
validator
.
regex
);
if
(
!
reg
.
test
(
value
))
{
error
=
true
;
helperText
=
validator
.
message
;
}
});
if
(
parameter
?.
validators
)
{
if
(
parameter
.
validators
.
length
>
0
)
{
parameter
.
validators
.
forEach
((
validator
)
=>
{
const
reg
=
new
RegExp
(
validator
.
regex
);
if
(
!
reg
.
test
(
value
))
{
error
=
true
;
helperText
=
validator
.
message
;
}
});
}
}
return
{
error
,
...
...
src/views/Project/components/Flow/components/BatchOperatorFlow/index.tsx
View file @
954ba82e
...
...
@@ -152,11 +152,13 @@ const BatchOperatorFlow = (props: IProps) => {
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
border
:
"none"
,
left
:
12
,
top
:
"-2px"
,
},
outStyle
:
{
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
border
:
"none"
,
left
:
12
,
bottom
:
"-2px"
,
},
},
...
...
src/views/Project/components/Flow/components/FlowNode/index.module.css
View file @
954ba82e
...
...
@@ -2,6 +2,7 @@
background-color
:
#f5f6f7
;
border-radius
:
2px
;
padding
:
6px
12px
;
border
:
1px
solid
#f5f6f7
;
}
.flowNode
:hover
{
...
...
@@ -24,22 +25,22 @@
margin-left
:
8px
;
}
.errorDot
{
.errorDot
{
display
:
inline-block
;
line-height
:
22px
;
vertical-align
:
middle
;
width
:
8px
;
height
:
8px
;
background-color
:
#
FF4E4E
;
background-color
:
#
ff4e4e
;
border-radius
:
8px
;
margin-left
:
8px
;
}
.handleBox
::before
{
.handleBox
::before
{
content
:
""
;
position
:
absolute
;
left
:
-4px
;
top
:
-4px
;
width
:
14px
;
height
:
14px
;
}
\ No newline at end of file
}
src/views/Project/components/Flow/components/FlowNode/index.tsx
View file @
954ba82e
...
...
@@ -37,7 +37,6 @@ const FlowNode = (props: any) => {
const
{
data
}
=
props
;
const
{
dotStatus
,
selectedStatus
,
flowNodeStyle
=
{
display
:
"flex"
,
alignItems
:
"center"
},
// 样式
inStyle
=
{
background
:
"#C2C6CC "
,
left
:
12
},
// 样式
...
...
@@ -77,14 +76,6 @@ const FlowNode = (props: any) => {
[
styles
.
selectedFlowBox
]:
selectedStatus
,
})
}
>
{
/* {dotStatus?.isInput ? (
<Handle
className={styles.handleBox}
style={inStyle}
type="target"
position={Position.Top}
/>
) : null} */
}
{
inParamsArr
?.
length
?
inParamsArr
.
map
((
item
:
any
,
index
:
number
)
=>
{
return
(
...
...
@@ -121,14 +112,6 @@ const FlowNode = (props: any) => {
/>
)
}
</
div
>
{
/* {dotStatus?.isOutput ? (
<Handle
className={styles.handleBox}
style={outStyle}
type="source"
position={Position.Bottom}
/>
) : null} */
}
{
outParamsArr
?.
length
?
outParamsArr
.
map
((
item
:
any
,
index
:
number
)
=>
{
return
(
...
...
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