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
74c312d1
Commit
74c312d1
authored
Aug 22, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-20220801' into 'release'
Feat 20220801 See merge request
!66
parents
c1b2afe3
1d6dd4f4
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
64 additions
and
24 deletions
+64
-24
index.tsx
src/views/CustomOperator/components/OperatorList/index.tsx
+8
-1
index.tsx
src/views/CustomOperator/index.tsx
+3
-1
index.tsx
src/views/Project/ProjectData/SeeDataset/index.tsx
+23
-5
index.tsx
src/views/Project/ProjectSubmitWork/ConfigForm/index.tsx
+4
-1
index.module.css
...ect/components/Flow/components/BatchNode/index.module.css
+6
-2
index.tsx
...ws/Project/components/Flow/components/BatchNode/index.tsx
+6
-5
index.tsx
...ct/components/Flow/components/BatchOperatorFlow/index.tsx
+2
-2
index.tsx
src/views/Project/components/Flow/index.tsx
+6
-5
index.tsx
src/views/WorkFlowEdit/components/ParameterSetting/index.tsx
+5
-1
util.ts
src/views/WorkFlowEdit/util.ts
+1
-1
No files found.
src/views/CustomOperator/components/OperatorList/index.tsx
View file @
74c312d1
...
@@ -14,10 +14,11 @@ import { ITask } from "@/views/Project/ProjectSubmitWork/interface";
...
@@ -14,10 +14,11 @@ import { ITask } from "@/views/Project/ProjectSubmitWork/interface";
type
IProps
=
{
type
IProps
=
{
operatorList
:
ITask
[];
operatorList
:
ITask
[];
setOperatorList
:
any
;
setOperatorList
:
any
;
setInputActive
:
any
;
};
};
const
OperatorList
=
(
props
:
IProps
)
=>
{
const
OperatorList
=
(
props
:
IProps
)
=>
{
const
{
operatorList
,
setOperatorList
}
=
props
;
// 流程图中流算子列表
const
{
operatorList
,
setOperatorList
,
setInputActive
}
=
props
;
// 流程图中流算子列表
const
{
currentProjectStore
}
=
useStores
();
const
{
currentProjectStore
}
=
useStores
();
const
[
list
,
setList
]
=
useState
<
ITask
[]
>
([]);
// 算子列表
const
[
list
,
setList
]
=
useState
<
ITask
[]
>
([]);
// 算子列表
const
productId
=
toJS
(
currentProjectStore
.
currentProductInfo
.
id
);
// 产品ID
const
productId
=
toJS
(
currentProjectStore
.
currentProductInfo
.
id
);
// 产品ID
...
@@ -205,6 +206,12 @@ const OperatorList = (props: IProps) => {
...
@@ -205,6 +206,12 @@ const OperatorList = (props: IProps) => {
value=
{
keyword
}
value=
{
keyword
}
onChange=
{
keywordChange
}
onChange=
{
keywordChange
}
onKeyUp=
{
handleKeywordKeyUp
}
onKeyUp=
{
handleKeywordKeyUp
}
onFocus=
{
()
=>
{
setInputActive
(
true
);
}
}
onBlur=
{
()
=>
{
setInputActive
(
false
);
}
}
sx=
{
{
fontSize
:
"14px"
}
}
sx=
{
{
fontSize
:
"14px"
}
}
/>
/>
</
div
>
</
div
>
...
...
src/views/CustomOperator/index.tsx
View file @
74c312d1
...
@@ -21,6 +21,7 @@ const CustomOperator = observer((props: IProps) => {
...
@@ -21,6 +21,7 @@ const CustomOperator = observer((props: IProps) => {
const
Message
=
useMessage
();
const
Message
=
useMessage
();
const
[
operatorList
,
setOperatorList
]
=
useState
<
ITask
[]
>
(
initOperatorList
);
const
[
operatorList
,
setOperatorList
]
=
useState
<
ITask
[]
>
(
initOperatorList
);
const
[
saveFormDialog
,
setSaveFormDialog
]
=
useState
(
false
);
const
[
saveFormDialog
,
setSaveFormDialog
]
=
useState
(
false
);
const
[
inputActive
,
setInputActive
]
=
useState
(
true
);
// const [showCustomOperator, setShowCustomOperator] = useState(false);
// const [showCustomOperator, setShowCustomOperator] = useState(false);
/** 设置选中唯一标识符 */
/** 设置选中唯一标识符 */
...
@@ -176,6 +177,7 @@ const CustomOperator = observer((props: IProps) => {
...
@@ -176,6 +177,7 @@ const CustomOperator = observer((props: IProps) => {
<
OperatorList
<
OperatorList
operatorList=
{
operatorList
}
operatorList=
{
operatorList
}
setOperatorList=
{
setOperatorList
}
setOperatorList=
{
setOperatorList
}
setInputActive=
{
setInputActive
}
/>
/>
<
BatchOperatorFlow
<
BatchOperatorFlow
tasks=
{
operatorList
}
tasks=
{
operatorList
}
...
@@ -183,7 +185,7 @@ const CustomOperator = observer((props: IProps) => {
...
@@ -183,7 +185,7 @@ const CustomOperator = observer((props: IProps) => {
type=
"edit"
type=
"edit"
onFlowNodeClick=
{
handleNodeClick
}
onFlowNodeClick=
{
handleNodeClick
}
flowNodeDraggable=
{
true
}
flowNodeDraggable=
{
true
}
ListenState=
{
!
saveFormDialog
}
ListenState=
{
!
saveFormDialog
&&
!
inputActive
}
showVersion=
{
true
}
showVersion=
{
true
}
showControls=
{
false
}
showControls=
{
false
}
/>
/>
...
...
src/views/Project/ProjectData/SeeDataset/index.tsx
View file @
74c312d1
...
@@ -48,6 +48,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
...
@@ -48,6 +48,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
const
[
saveOpen
,
setSaveOpen
]
=
useState
(
false
);
// 另存为弹窗显示控制
const
[
saveOpen
,
setSaveOpen
]
=
useState
(
false
);
// 另存为弹窗显示控制
const
[
downloadOpen
,
setDownloadOpen
]
=
useState
(
false
);
// 下载弹窗显示控制
const
[
downloadOpen
,
setDownloadOpen
]
=
useState
(
false
);
// 下载弹窗显示控制
const
[
showAnimation
,
setShowAnimation
]
=
useState
(
true
);
// 弹窗动画变化中
const
[
showAnimation
,
setShowAnimation
]
=
useState
(
true
);
// 弹窗动画变化中
const
[
firstGetList
,
setFirstGetList
]
=
useState
(
true
);
// 第一次请求列表
// 解决图像渲染造成弹窗卡顿的问题
// 解决图像渲染造成弹窗卡顿的问题
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -103,7 +104,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
...
@@ -103,7 +104,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
name
:
name
,
name
:
name
,
page
:
paramsPage
,
page
:
paramsPage
,
size
,
size
,
index
:
searchDataType
?
`
meta.
${
searchDataType
}
`
:
""
,
index
:
searchDataType
?
`
${
searchDataType
}
`
:
""
,
sort
:
sort
===
"null"
?
""
:
sort
,
sort
:
sort
===
"null"
?
""
:
sort
,
query
:
keyword
,
query
:
keyword
,
})
})
...
@@ -111,14 +112,31 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
...
@@ -111,14 +112,31 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
setList
(
res
.
data
.
list
);
setList
(
res
.
data
.
list
);
setCount
(
res
.
data
.
totalPage
-
1
);
setCount
(
res
.
data
.
totalPage
-
1
);
if
(
res
.
data
.
list
&&
res
.
data
.
list
.
length
>
0
)
{
if
(
res
.
data
.
list
&&
res
.
data
.
list
.
length
>
0
)
{
if
(
res
.
data
.
list
[
0
].
meta
)
{
if
(
res
.
data
.
list
[
0
])
{
const
meta
=
res
.
data
.
list
[
0
].
meta
;
let
arr
:
any
=
[];
const
arr
=
Object
.
keys
(
meta
).
map
((
item
)
=>
{
Object
.
keys
(
res
.
data
.
list
[
0
]).
forEach
((
item
)
=>
{
return
{
label
:
item
,
value
:
item
};
if
(
!
[
"canonical_smiles"
,
"id"
,
"mol"
,
"mol2"
,
"pdb"
,
"sdf"
,
"sdf2d"
,
"sdf3d"
,
"smiles"
,
].
includes
(
item
)
)
{
arr
.
push
({
label
:
item
,
value
:
item
});
}
});
});
if
(
firstGetList
)
{
setdataTypes
(
arr
);
setdataTypes
(
arr
);
setSearchDataType
(
arr
[
0
].
value
);
setSearchDataType
(
arr
[
0
].
value
);
}
}
setFirstGetList
(
false
);
}
}
}
})
})
?.
catch
((
error
)
=>
{
?.
catch
((
error
)
=>
{
...
...
src/views/Project/ProjectSubmitWork/ConfigForm/index.tsx
View file @
74c312d1
...
@@ -213,7 +213,10 @@ const ConfigForm = (props: ConfigFormProps) => {
...
@@ -213,7 +213,10 @@ const ConfigForm = (props: ConfigFormProps) => {
{
parameter
.
classTypeName
}
{
parameter
.
classTypeName
}
</
span
>
</
span
>
</
div
>
</
div
>
<
MyTooltip
title=
{
parameter
.
description
}
placement=
"right"
>
<
MyTooltip
title=
{
parameter
.
description
||
parameter
.
name
}
placement=
"right"
>
<
div
className=
{
styles
.
parameterContent
}
>
<
div
className=
{
styles
.
parameterContent
}
>
{
(
parameter
.
domType
||
""
).
toLowerCase
()
===
"file"
&&
(
{
(
parameter
.
domType
||
""
).
toLowerCase
()
===
"file"
&&
(
<
MyInput
<
MyInput
...
...
src/views/Project/components/Flow/components/BatchNode/index.module.css
View file @
74c312d1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
/* padding: 12px 20px; */
/* padding: 12px 20px; */
border
:
1px
solid
#e6e8eb
;
border
:
1px
solid
#e6e8eb
;
border-left
:
4px
solid
#e6e8eb
;
border-left
:
4px
solid
#e6e8eb
;
display
:
flex
;
/* display: flex; */
align-items
:
center
;
align-items
:
center
;
}
}
...
@@ -37,7 +37,11 @@
...
@@ -37,7 +37,11 @@
}
}
.batchRotate
{
.batchRotate
{
transform
:
translateX
(
-50%
)
rotate
(
-90deg
);
margin-bottom
:
20px
;
line-height
:
22px
;
font-size
:
14px
;
/* text-align: center; */
/* transform: translateX(-50%) rotate(-90deg); */
}
}
.handleBox
::before
{
.handleBox
::before
{
...
...
src/views/Project/components/Flow/components/BatchNode/index.tsx
View file @
74c312d1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-12 11:20:29
* @Date: 2022-07-12 11:20:29
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-08-
09 11:24:38
* @LastEditTime: 2022-08-
22 11:45:44
* @FilePath: /bkunyun/src/views/Project/components/Flow/components/BatchNode.tsx
* @FilePath: /bkunyun/src/views/Project/components/Flow/components/BatchNode.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -68,11 +68,12 @@ const BatchNode = (props: IBatchNode) => {
...
@@ -68,11 +68,12 @@ const BatchNode = (props: IBatchNode) => {
className=
{
styles
.
handleBox
}
className=
{
styles
.
handleBox
}
id=
{
item
.
name
}
id=
{
item
.
name
}
style=
{
{
style=
{
{
background
:
"#fff
"
,
background
Color
:
"rgba(19, 112, 255, 1)
"
,
border
:
item
.
error
border
:
item
.
error
?
"1px solid #FF4E4E"
?
"1px solid #FF4E4E"
:
"1px solid #
D1D6DE
"
,
:
"1px solid #
fff
"
,
left
:
index
*
24
+
20
,
left
:
index
*
24
+
20
,
top
:
'-47px'
,
}
}
}
}
type=
"target"
type=
"target"
position=
{
Position
.
Top
}
position=
{
Position
.
Top
}
...
@@ -99,8 +100,8 @@ const BatchNode = (props: IBatchNode) => {
...
@@ -99,8 +100,8 @@ const BatchNode = (props: IBatchNode) => {
className=
{
styles
.
handleBox
}
className=
{
styles
.
handleBox
}
id=
{
item
.
name
}
id=
{
item
.
name
}
style=
{
{
style=
{
{
background
:
"#fff
"
,
background
Color
:
"rgba(19, 112, 255, 1)
"
,
border
:
"1px solid #
D1D6DE
"
,
border
:
"1px solid #
FFF
"
,
left
:
index
*
24
+
20
,
left
:
index
*
24
+
20
,
}
}
}
}
type=
"source"
type=
"source"
...
...
src/views/Project/components/Flow/components/BatchOperatorFlow/index.tsx
View file @
74c312d1
...
@@ -151,13 +151,13 @@ const BatchOperatorFlow = (props: IProps) => {
...
@@ -151,13 +151,13 @@ const BatchOperatorFlow = (props: IProps) => {
},
},
inStyle
:
{
inStyle
:
{
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
border
:
"
none
"
,
border
:
"
1px solid #FFF
"
,
left
:
12
,
left
:
12
,
top
:
"-2px"
,
top
:
"-2px"
,
},
},
outStyle
:
{
outStyle
:
{
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
border
:
"
none
"
,
border
:
"
1px solid #FFF
"
,
left
:
12
,
left
:
12
,
bottom
:
"-2px"
,
bottom
:
"-2px"
,
},
},
...
...
src/views/Project/components/Flow/index.tsx
View file @
74c312d1
...
@@ -270,14 +270,14 @@ const Flow = (props: IProps) => {
...
@@ -270,14 +270,14 @@ const Flow = (props: IProps) => {
return
a
-
b
;
return
a
-
b
;
});
});
let
width
=
176
,
let
width
=
176
,
height
=
22
;
height
=
66
;
if
(
positionXArr
?.
length
)
{
if
(
positionXArr
?.
length
)
{
const
val
=
positionXArr
[
positionXArr
.
length
-
1
]
+
1
50
;
const
val
=
positionXArr
[
positionXArr
.
length
-
1
]
+
1
44
;
width
=
val
>
176
?
val
:
width
;
width
=
val
>
176
?
val
:
width
;
}
}
if
(
positionYArr
?.
length
)
{
if
(
positionYArr
?.
length
)
{
const
val
=
positionYArr
[
positionYArr
.
length
-
1
]
+
6
;
const
val
=
positionYArr
[
positionYArr
.
length
-
1
]
+
74
;
height
=
val
>
22
?
val
:
height
;
height
=
val
>
66
?
val
:
height
;
}
}
return
{
return
{
width
,
width
,
...
@@ -318,7 +318,8 @@ const Flow = (props: IProps) => {
...
@@ -318,7 +318,8 @@ const Flow = (props: IProps) => {
/** 样式 */
/** 样式 */
style
:
{
style
:
{
...
getBatchStyle
(
item
),
...
getBatchStyle
(
item
),
padding
:
isFlowNode
(
item
.
id
)
?
"20px"
:
"12px 20px"
,
marginTop
:
'-44px'
,
padding
:
"12px 20px"
,
},
},
},
},
/** 坐标 */
/** 坐标 */
...
...
src/views/WorkFlowEdit/components/ParameterSetting/index.tsx
View file @
74c312d1
...
@@ -192,7 +192,10 @@ const ParameterSetting = (props: IParameterSettingProps) => {
...
@@ -192,7 +192,10 @@ const ParameterSetting = (props: IParameterSettingProps) => {
const
renderInput
=
useCallback
(
const
renderInput
=
useCallback
(
(
parameter
:
IParameter
)
=>
{
(
parameter
:
IParameter
)
=>
{
return
(
return
(
<
MyTooltip
title=
{
parameter
.
description
}
placement=
"right"
>
<
MyTooltip
title=
{
parameter
.
description
||
parameter
.
name
}
placement=
"right"
>
<
div
>
<
div
>
{
(
parameter
.
domType
||
""
).
toLowerCase
()
===
"file"
&&
(
{
(
parameter
.
domType
||
""
).
toLowerCase
()
===
"file"
&&
(
<
MyInput
<
MyInput
...
@@ -581,6 +584,7 @@ const ParameterSetting = (props: IParameterSettingProps) => {
...
@@ -581,6 +584,7 @@ const ParameterSetting = (props: IParameterSettingProps) => {
onChange=
{
(
e
:
any
)
=>
onChange=
{
(
e
:
any
)
=>
handleHiddenChange
(
e
,
parameter
.
name
||
""
)
handleHiddenChange
(
e
,
parameter
.
name
||
""
)
}
}
disabled=
{
true
}
></
MySwitch
>
></
MySwitch
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/views/WorkFlowEdit/util.ts
View file @
74c312d1
...
@@ -50,7 +50,7 @@ export const getCustomTemplateParameterCheckResult = (
...
@@ -50,7 +50,7 @@ export const getCustomTemplateParameterCheckResult = (
}
else
if
(
parameter
.
hidden
&&
!
parameter
.
linked
)
{
}
else
if
(
parameter
.
hidden
&&
!
parameter
.
linked
)
{
return
{
return
{
error
:
true
,
error
:
true
,
helperText
:
'该输入为必填,需在右侧视图编辑区连接输入文件
或重新改回“开启”状态
'
,
helperText
:
'该输入为必填,需在右侧视图编辑区连接输入文件'
,
deleteLine
:
false
,
deleteLine
:
false
,
}
}
}
}
...
...
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