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
563b2e17
Commit
563b2e17
authored
Jul 06, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-20220705-customTemplate' into 'release'
fix: 算子列表开发 See merge request
!82
parents
90965ac8
2cfbf2e2
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
192 additions
and
45 deletions
+192
-45
index.tsx
src/views/Project/ProjectJobDetail/index.tsx
+10
-11
index.tsx
...iews/Project/ProjectWorkbench/workbenchTemplate/index.tsx
+12
-6
interface.tsx
.../Project/ProjectWorkbench/workbenchTemplate/interface.tsx
+13
-0
index.tsx
src/views/Project/components/Flow/index.tsx
+45
-24
index.module.css
...ews/WorkFlowEdit/components/OperatorList/index.module.css
+35
-0
index.tsx
src/views/WorkFlowEdit/components/OperatorList/index.tsx
+60
-0
interface.ts
src/views/WorkFlowEdit/components/OperatorList/interface.ts
+12
-0
index.module.css
src/views/WorkFlowEdit/index.module.css
+2
-2
index.tsx
src/views/WorkFlowEdit/index.tsx
+3
-2
No files found.
src/views/Project/ProjectJobDetail/index.tsx
View file @
563b2e17
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-06 1
1:01:44
* @LastEditTime: 2022-07-06 1
7:05:13
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.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
*/
*/
...
@@ -75,8 +75,8 @@ const ProjectSubmitWork = observer(() => {
...
@@ -75,8 +75,8 @@ const ProjectSubmitWork = observer(() => {
/** 获取模版数据 */
/** 获取模版数据 */
const
{
run
}
=
useMyRequest
(
fetchWorkFlowJob
,
{
const
{
run
}
=
useMyRequest
(
fetchWorkFlowJob
,
{
pollingInterval
:
1000
*
60
,
pollingInterval
:
1000
*
60
,
pollingWhenHidden
:
false
,
pollingWhenHidden
:
false
,
onSuccess
:
(
res
:
IResponse
<
ITaskInfo
>
)
=>
{
onSuccess
:
(
res
:
IResponse
<
ITaskInfo
>
)
=>
{
getOutouts
(
res
.
data
.
outputs
);
getOutouts
(
res
.
data
.
outputs
);
setWorkFlowJobInfo
(
res
.
data
);
setWorkFlowJobInfo
(
res
.
data
);
...
@@ -85,7 +85,6 @@ const ProjectSubmitWork = observer(() => {
...
@@ -85,7 +85,6 @@ const ProjectSubmitWork = observer(() => {
useEffect
(()
=>
{
useEffect
(()
=>
{
const
locationInfo
:
any
=
location
?.
state
;
const
locationInfo
:
any
=
location
?.
state
;
console
.
log
(
333
)
run
({
run
({
id
:
locationInfo
.
taskId
,
id
:
locationInfo
.
taskId
,
});
});
...
@@ -106,12 +105,12 @@ const ProjectSubmitWork = observer(() => {
...
@@ -106,12 +105,12 @@ const ProjectSubmitWork = observer(() => {
}
}
};
};
/** 返回事件 */
/** 返回事件 */
const
onBack
=
useCallback
(()
=>
{
const
onBack
=
useCallback
(()
=>
{
navigate
(
'/product/cadd/projectWorkbench'
,
{
navigate
(
"/product/cadd/projectWorkbench"
,
{
state
:
{
type
:
'workbenchList'
}
state
:
{
type
:
"workbenchList"
},
})
});
},[
navigate
])
},
[
navigate
]);
const
outputPathTransform
=
(
path
:
string
)
=>
{
const
outputPathTransform
=
(
path
:
string
)
=>
{
path
=
path
.
slice
(
13
);
path
=
path
.
slice
(
13
);
...
@@ -202,7 +201,7 @@ const ProjectSubmitWork = observer(() => {
...
@@ -202,7 +201,7 @@ const ProjectSubmitWork = observer(() => {
if
(
errorCode
===
0
)
{
if
(
errorCode
===
0
)
{
message
.
success
(
"操作成功!"
);
message
.
success
(
"操作成功!"
);
}
}
onBack
()
onBack
();
},
},
});
});
...
@@ -213,7 +212,7 @@ const ProjectSubmitWork = observer(() => {
...
@@ -213,7 +212,7 @@ const ProjectSubmitWork = observer(() => {
if
(
errorCode
===
0
)
{
if
(
errorCode
===
0
)
{
message
.
success
(
"操作成功!"
);
message
.
success
(
"操作成功!"
);
}
}
onBack
()
onBack
();
},
},
});
});
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/index.tsx
View file @
563b2e17
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-0
5 18:06:17
* @LastEditTime: 2022-07-0
6 17:32:50
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.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
*/
*/
...
@@ -28,8 +28,9 @@ import {
...
@@ -28,8 +28,9 @@ import {
addWorkbenchTemplate
,
addWorkbenchTemplate
,
}
from
"@/api/workbench_api"
;
}
from
"@/api/workbench_api"
;
import
usePass
from
"@/hooks/usePass"
;
import
usePass
from
"@/hooks/usePass"
;
import
React
FlowEdit
from
"@/views/WorkFlowEdit"
;
import
Work
FlowEdit
from
"@/views/WorkFlowEdit"
;
import
{
useStores
}
from
"@/store"
;
import
{
useStores
}
from
"@/store"
;
import
{
ICustomTemplate
}
from
"./interface"
;
import
styles
from
"./index.module.css"
;
import
styles
from
"./index.module.css"
;
...
@@ -54,6 +55,13 @@ const ProjectMembers = observer(() => {
...
@@ -54,6 +55,13 @@ const ProjectMembers = observer(() => {
/** 已选择增加的模板列表 */
/** 已选择增加的模板列表 */
const
[
selectTemplateData
,
setSelectTemplateData
]
=
useState
<
string
[]
>
([]);
const
[
selectTemplateData
,
setSelectTemplateData
]
=
useState
<
string
[]
>
([]);
/** 是否显示自定义模版编辑并带有参数 */
const
[
customTemplateInfo
,
setCustomTemplateInfo
]
=
useState
<
ICustomTemplate
>
(
{
show
:
false
,
}
);
// 获取模板列表
// 获取模板列表
const
{
run
:
getTemplateInfo
}
=
useMyRequest
(
getWorkbenchTemplate
,
{
const
{
run
:
getTemplateInfo
}
=
useMyRequest
(
getWorkbenchTemplate
,
{
onSuccess
:
(
result
:
any
)
=>
{
onSuccess
:
(
result
:
any
)
=>
{
...
@@ -223,9 +231,7 @@ const ProjectMembers = observer(() => {
...
@@ -223,9 +231,7 @@ const ProjectMembers = observer(() => {
{
templateList
&&
{
templateList
&&
templateList
.
length
>
0
&&
templateList
.
length
>
0
&&
templateList
.
map
((
item
,
key
)
=>
{
templateList
.
map
((
item
,
key
)
=>
{
return
(
return
<
TemplateBox
data=
{
item
}
startDialog=
{
startDialog
}
/>;
<
TemplateBox
data=
{
item
}
startDialog=
{
startDialog
}
key=
{
key
}
/>
);
})
}
})
}
</
Box
>
</
Box
>
)
}
)
}
...
@@ -264,7 +270,7 @@ const ProjectMembers = observer(() => {
...
@@ -264,7 +270,7 @@ const ProjectMembers = observer(() => {
searchTemplateNameCallback=
{
searchTemplateNameCallback
}
searchTemplateNameCallback=
{
searchTemplateNameCallback
}
/>
/>
{
/* <ReactFlowEdit/> */
}
{
customTemplateInfo
?.
show
?
<
WorkFlowEdit
/>
:
null
}
<
SimpleDialog
<
SimpleDialog
text=
{
"确认移除该模板吗?"
}
text=
{
"确认移除该模板吗?"
}
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/interface.tsx
0 → 100644
View file @
563b2e17
/*
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-06 14:44:13
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-06 14:47:28
* @FilePath: /bkunyun/src/views/Project/ProjectWorkbench/workbenchTemplate/interface.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export
interface
ICustomTemplate
{
show
?:
boolean
;
id
?:
string
;
}
\ No newline at end of file
src/views/Project/components/Flow/index.tsx
View file @
563b2e17
...
@@ -14,7 +14,11 @@ import classNames from "classnames";
...
@@ -14,7 +14,11 @@ import classNames from "classnames";
import
jobFail
from
"@/assets/project/jobFail.svg"
;
import
jobFail
from
"@/assets/project/jobFail.svg"
;
import
jobRun
from
"@/assets/project/jobRun.svg"
;
import
jobRun
from
"@/assets/project/jobRun.svg"
;
import
jobSue
from
"@/assets/project/jobSue.svg"
;
import
jobSue
from
"@/assets/project/jobSue.svg"
;
import
{
IEdge
,
IExecutionStatus
,
ITask
}
from
"../../ProjectSubmitWork/interface"
;
import
{
IEdge
,
IExecutionStatus
,
ITask
,
}
from
"../../ProjectSubmitWork/interface"
;
import
{
IBatchNode
,
ILine
}
from
"./interface"
;
import
{
IBatchNode
,
ILine
}
from
"./interface"
;
import
styles
from
"./index.module.css"
;
import
styles
from
"./index.module.css"
;
...
@@ -30,23 +34,23 @@ interface IProps extends ReactFlowProps {
...
@@ -30,23 +34,23 @@ interface IProps extends ReactFlowProps {
tasks
?:
ITask
[];
tasks
?:
ITask
[];
/** 点击batch事件 */
/** 点击batch事件 */
onBatchClick
?:
(
val
:
string
)
=>
void
;
onBatchClick
?:
(
val
:
string
)
=>
void
;
setSelectedNodeId
?:
(
val
:
string
)
=>
void
;
setSelectedNodeId
?:
(
val
:
string
)
=>
void
;
selectedNodeId
?:
string
;
selectedNodeId
?:
string
;
}
}
/** 获取imgUrl */
/** 获取imgUrl */
const
getImgUrl
=
(
type
:
IExecutionStatus
)
=>
{
const
getImgUrl
=
(
type
:
IExecutionStatus
)
=>
{
if
(
type
===
'Done'
)
{
if
(
type
===
"Done"
)
{
return
jobSue
return
jobSue
;
}
}
if
(
type
===
'Failed'
)
{
if
(
type
===
"Failed"
)
{
return
jobFail
return
jobFail
;
}
}
if
(
type
===
'Running'
){
if
(
type
===
"Running"
)
{
return
jobRun
return
jobRun
;
}
return
undefined
}
}
return
undefined
;
};
/** 自定义batch节点 */
/** 自定义batch节点 */
const
BatchNode
=
(
props
:
IBatchNode
)
=>
{
const
BatchNode
=
(
props
:
IBatchNode
)
=>
{
...
@@ -106,7 +110,13 @@ const FlowNode = (props: any) => {
...
@@ -106,7 +110,13 @@ const FlowNode = (props: any) => {
<
div
style=
{
{
display
:
"flex"
,
alignItems
:
"center"
}
}
>
<
div
style=
{
{
display
:
"flex"
,
alignItems
:
"center"
}
}
>
{
data
?.
label
||
""
}
{
data
?.
label
||
""
}
{
data
.
isCheck
&&
<
span
className=
{
styles
.
successDot
}
></
span
>
}
{
data
.
isCheck
&&
<
span
className=
{
styles
.
successDot
}
></
span
>
}
{
getImgUrl
(
data
.
executionStatus
)
&&
<
img
style=
{
{
marginLeft
:
"6px"
}
}
src=
{
getImgUrl
(
data
.
executionStatus
)
}
alt=
""
/>
}
{
getImgUrl
(
data
.
executionStatus
)
&&
(
<
img
style=
{
{
marginLeft
:
"6px"
}
}
src=
{
getImgUrl
(
data
.
executionStatus
)
}
alt=
""
/>
)
}
</
div
>
</
div
>
{
data
?.
dotStatus
?.
isOutput
?
(
{
data
?.
dotStatus
?.
isOutput
?
(
<
Handle
<
Handle
...
@@ -126,6 +136,8 @@ const Flow = (props: IProps) => {
...
@@ -126,6 +136,8 @@ const Flow = (props: IProps) => {
const
nodeTypes
=
useMemo
(()
=>
{
const
nodeTypes
=
useMemo
(()
=>
{
return
{
batchNode
:
BatchNode
,
flowNode
:
FlowNode
};
return
{
batchNode
:
BatchNode
,
flowNode
:
FlowNode
};
},
[]);
},
[]);
/** 内部维护的选择的节点Id */
const
[
inSideNodeId
,
setInSideNodeId
]
=
useState
<
string
>
(
""
);
/** 获取是否有输入节点或者是否有输出节点 */
/** 获取是否有输入节点或者是否有输出节点 */
const
nodesInputAndOutputStatus
=
useCallback
(
const
nodesInputAndOutputStatus
=
useCallback
(
...
@@ -213,7 +225,9 @@ const Flow = (props: IProps) => {
...
@@ -213,7 +225,9 @@ const Flow = (props: IProps) => {
/** 是否有流节点 */
/** 是否有流节点 */
isFlowNode
:
isFlowNode
(
item
.
id
),
isFlowNode
:
isFlowNode
(
item
.
id
),
/** 选中状态 */
/** 选中状态 */
selectedStatus
:
selectedNodeId
===
item
.
id
,
selectedStatus
:
selectedNodeId
?
selectedNodeId
===
item
.
id
:
inSideNodeId
===
item
.
id
,
}
}
:
{}),
:
{}),
isCheck
:
item
.
isCheck
,
isCheck
:
item
.
isCheck
,
...
@@ -237,6 +251,7 @@ const Flow = (props: IProps) => {
...
@@ -237,6 +251,7 @@ const Flow = (props: IProps) => {
tasks
,
tasks
,
isFlowNode
,
isFlowNode
,
selectedNodeId
,
selectedNodeId
,
inSideNodeId
,
nodesInputAndOutputStatus
,
nodesInputAndOutputStatus
,
getBatchStyle
,
getBatchStyle
,
]);
]);
...
@@ -255,12 +270,13 @@ const Flow = (props: IProps) => {
...
@@ -255,12 +270,13 @@ const Flow = (props: IProps) => {
},
[]);
},
[]);
});
});
return
val
.
map
((
item
:
ILine
)
=>
{
return
val
.
map
((
item
:
ILine
)
=>
{
const
newSelectId
=
selectedNodeId
?
selectedNodeId
:
inSideNodeId
;
return
{
return
{
id
:
item
.
id
,
id
:
item
.
id
,
source
:
item
.
source
,
source
:
item
.
source
,
target
:
item
.
target
,
target
:
item
.
target
,
type
:
"smoothstep"
,
type
:
"smoothstep"
,
...(
item
?.
batchId
===
selectedNode
Id
...(
item
?.
batchId
===
newSelect
Id
?
{
style
:
{
stroke
:
"#1370FF"
},
animated
:
true
}
?
{
style
:
{
stroke
:
"#1370FF"
},
animated
:
true
}
:
{}),
:
{}),
labelStyle
:
{
fill
:
"#8A9099"
},
labelStyle
:
{
fill
:
"#8A9099"
},
...
@@ -268,30 +284,35 @@ const Flow = (props: IProps) => {
...
@@ -268,30 +284,35 @@ const Flow = (props: IProps) => {
label
:
item
.
label
?
`(
${
item
.
label
}
)`
:
""
,
label
:
item
.
label
?
`(
${
item
.
label
}
)`
:
""
,
};
};
});
});
},
[
selectedNodeId
,
tasks
]);
},
[
inSideNodeId
,
selectedNodeId
,
tasks
]);
/** flowNode点击事件 */
/** flowNode点击事件 */
const
onNodeClick
=
(
e
:
any
,
node
:
Node
)
=>
{
const
onNodeClick
=
(
e
:
any
,
node
:
Node
)
=>
{
tasks
?.
forEach
((
item
)
=>
{
tasks
?.
forEach
((
item
)
=>
{
if
(
item
.
id
===
node
.
id
)
{
if
(
item
.
id
===
node
.
id
)
{
if
(
item
.
parentNode
)
{
if
(
item
.
parentNode
)
{
setSelectedNodeId
&&
setSelectedNodeId
(
item
.
parentNode
);
setSelectedNodeId
?
setSelectedNodeId
(
item
.
parentNode
)
:
setInSideNodeId
(
item
.
parentNode
);
onBatchClick
&&
onBatchClick
(
item
.
parentNode
);
onBatchClick
&&
onBatchClick
(
item
.
parentNode
);
document
.
getElementById
(
`point
${
item
.
parentNode
}
`
)?.
scrollIntoView
(
true
)
document
.
getElementById
(
`point
${
item
.
parentNode
}
`
)
?.
scrollIntoView
(
true
);
}
else
{
}
else
{
setSelectedNodeId
&&
setSelectedNodeId
(
node
.
id
);
setSelectedNodeId
?
setSelectedNodeId
(
node
.
id
)
:
setInSideNodeId
(
node
.
id
);
onBatchClick
&&
onBatchClick
(
node
.
id
||
""
);
onBatchClick
&&
onBatchClick
(
node
.
id
||
""
);
document
.
getElementById
(
`point
${
node
.
id
}
`
)?.
scrollIntoView
(
true
)
document
.
getElementById
(
`point
${
node
.
id
}
`
)?.
scrollIntoView
(
true
);
}
}
}
}
});
});
};
};
const
handlePaneClick
=
()
=>
{
const
handlePaneClick
=
()
=>
{
setSelectedNodeId
&&
setSelectedNodeId
(
''
);
setSelectedNodeId
?
setSelectedNodeId
(
""
)
:
setInSideNodeId
(
""
);
onBatchClick
&&
onBatchClick
(
''
);
onBatchClick
&&
onBatchClick
(
""
);
}
};
/** node节点 */
/** node节点 */
const
[
nodes
,
setNodes
]
=
useNodesState
(
initialNodes
);
const
[
nodes
,
setNodes
]
=
useNodesState
(
initialNodes
);
...
...
src/views/WorkFlowEdit/components/OperatorList/index.module.css
0 → 100644
View file @
563b2e17
.operatorItemBox
{
background-color
:
#fff
;
border-radius
:
4px
;
cursor
:
grab
;
padding
:
16px
0
;
border-bottom
:
1px
solid
#f0f2f5
;
}
.operatorItemTitle
{
user-select
:
none
;
font-size
:
14px
;
color
:
#1e2633
;
}
.operatorItemText
{
color
:
#8a9099
;
margin
:
8px
0
;
font-size
:
12px
;
user-select
:
none
;
display
:
-webkit-box
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.labelBox
{
user-select
:
none
;
display
:
inline-block
;
border-radius
:
2px
;
font-size
:
12px
;
padding
:
2px
8px
;
}
.footerBx
{
display
:
flex
;
align-items
:
center
;
}
src/views/WorkFlowEdit/components/OperatorList/index.tsx
0 → 100644
View file @
563b2e17
import
{
IOperatorItemProps
}
from
"./interface"
;
import
{
OutlinedInput
}
from
"@mui/material"
;
import
SearchIcon
from
"@mui/icons-material/Search"
;
import
styles
from
"./index.module.css"
;
/*
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-06 15:16:01
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-06 16:27:16
* @FilePath: /bkunyun/src/views/WorkFlowEdit/components/OperatorList/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const
OperatorItem
=
(
props
:
IOperatorItemProps
)
=>
{
const
{
info
}
=
props
;
return
(
<
div
className=
{
styles
.
operatorItemBox
}
>
<
h2
className=
{
styles
.
operatorItemTitle
}
>
说什么呢啊
</
h2
>
<
div
className=
{
styles
.
operatorItemText
}
>
STU utility
是一个R-packa标处理目标处理,目标处理目标处理标处理目标处理后期委屈好委屈农,博啊发布丢我被欺安度切换阿斯顿几切换,i的亲戚我好奇你eqeqeweqeqeeqeqeqeqeq。
</
div
>
<
div
className=
{
styles
.
footerBx
}
>
<
span
className=
{
styles
.
labelBox
}
style=
{
{
background
:
true
?
"#EBF3FF"
:
"#E3FAEC"
,
color
:
true
?
"#1370FF"
:
"#02AB83"
,
}
}
>
公共平台
</
span
>
<
OutlinedInput
onChange=
{
(
e
:
any
)
=>
{
console
.
log
(
e
.
target
.
value
);
}
}
// value={templateName}
placeholder=
"输入关键词搜索"
size=
"small"
sx=
{
{
flex
:
1
,
height
:
32
}
}
endAdornment=
{
<
SearchIcon
style=
{
{
color
:
"#8A9099"
}
}
/>
}
/>
</
div
>
</
div
>
);
};
const
OperatorList
=
()
=>
{
const
arr
=
[
222
,
3333
,
339
];
return
(
<>
{
arr
.
map
((
item
)
=>
{
return
<
OperatorItem
key=
{
item
}
info=
{
item
}
/>;
})
}
</>
);
};
export
default
OperatorList
;
src/views/WorkFlowEdit/components/OperatorList/interface.ts
0 → 100644
View file @
563b2e17
/*
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-06 15:32:11
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-06 15:32:42
* @FilePath: /bkunyun/src/views/WorkFlowEdit/components/OperatorList/interface.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export
interface
IOperatorItemProps
{
info
:
any
}
\ No newline at end of file
src/views/WorkFlowEdit/index.module.css
View file @
563b2e17
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
.swFormBox
{
.swFormBox
{
background-color
:
#fff
;
background-color
:
#fff
;
border-right
:
1
xp
solid
rgba
(
235
,
237
,
240
,
1
);
border-right
:
1
xp
solid
rgba
(
235
,
237
,
240
,
1
);
width
:
608
px
;
width
:
360
px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
36
px
;
padding
:
24
px
;
}
}
.swFlowBox
{
.swFlowBox
{
flex
:
1
;
flex
:
1
;
...
...
src/views/WorkFlowEdit/index.tsx
View file @
563b2e17
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-0
5 16:31:28
* @LastEditTime: 2022-07-0
6 15:21:55
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.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
*/
*/
...
@@ -14,6 +14,7 @@ import { useLocation, useNavigate } from "react-router-dom";
...
@@ -14,6 +14,7 @@ import { useLocation, useNavigate } from "react-router-dom";
import
MyPopconfirm
from
"@/components/mui/MyPopconfirm"
;
import
MyPopconfirm
from
"@/components/mui/MyPopconfirm"
;
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
styles
from
'./index.module.css'
import
styles
from
'./index.module.css'
...
@@ -64,7 +65,7 @@ const WorkFlowEdit = () => {
...
@@ -64,7 +65,7 @@ const WorkFlowEdit = () => {
</
div
>
</
div
>
<
div
className=
{
styles
.
swContent
}
>
<
div
className=
{
styles
.
swContent
}
>
<
div
className=
{
styles
.
swFormBox
}
>
<
div
className=
{
styles
.
swFormBox
}
>
左侧
<
OperatorList
/>
</
div
>
</
div
>
<
div
className=
{
styles
.
swFlowBox
}
>
<
div
className=
{
styles
.
swFlowBox
}
>
右侧
右侧
...
...
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