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
fcc858f7
Commit
fcc858f7
authored
Jul 13, 2022
by
吴永生#A02208
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: flow删除显示隐藏状态
parent
aa15b8ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
index.tsx
src/views/WorkFlowEdit/index.tsx
+7
-14
No files found.
src/views/WorkFlowEdit/index.tsx
View file @
fcc858f7
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-1
1 14:40:34
* @LastEditTime: 2022-07-1
3 14:31:27
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -56,7 +56,6 @@ const WorkFlowEdit = observer((props: IProps) => {
// const projectId = toJS(currentProjectStore.currentProjectInfo.id);
const
productId
=
toJS
(
currentProjectStore
.
currentProductInfo
.
id
);
const
[
saveFormDialog
,
setSaveFormDialog
]
=
useState
(
false
);
// 保存弹窗显示与否控制
const
[
showFlow
,
setShowFlow
]
=
useState
(
true
);
// 是否显示右侧流程图
const
[
title
,
setTitle
]
=
useState
(
""
);
// 自定义模板名称
const
[
version
,
setVersion
]
=
useState
(
"1.0.0"
);
// 自定义模板版本
const
[
oldversion
,
setOldersion
]
=
useState
(
""
);
// 编辑是自定义模板的老版本
...
...
@@ -233,7 +232,6 @@ const WorkFlowEdit = observer((props: IProps) => {
const
{
run
:
saveUserSpecRun
}
=
useMyRequest
(
saveUserSpec
,
{
onSuccess
:
(
res
)
=>
{
Message
.
success
(
"保存成功!"
);
setShowFlow
(
true
);
onBack
&&
onBack
();
},
});
...
...
@@ -281,21 +279,18 @@ const WorkFlowEdit = observer((props: IProps) => {
if
(
!
check
)
{
Message
.
error
(
"工作流校验未通过,请检查!"
);
}
else
{
setShowFlow
(
false
);
setSaveFormDialog
(
true
);
}
};
// 关闭表单弹窗
const
handleCloseDialog
=
()
=>
{
setShowFlow
(
true
);
setSaveFormDialog
(
false
);
};
// 表单弹窗确定,新建/编辑自定义模板保存
const
handleOncofirm
=
()
=>
{
checkTitle
(
title
);
setShowFlow
(
true
);
checkVersion
(
version
);
if
(
!
titleHelper
.
error
&&
!
versionHelper
.
error
)
{
saveUserSpecRun
({
...
...
@@ -380,14 +375,12 @@ const WorkFlowEdit = observer((props: IProps) => {
)
}
</
div
>
<
div
className=
{
styles
.
swFlowBox
}
id=
"workFlowEditRight"
>
{
showFlow
&&
(
<
Flow
tasks=
{
templateConfigInfo
}
setTasks=
{
setTemplateConfigInfo
}
type=
"edit"
onFlowNodeClick=
{
handleNodeClick
}
/>
)
}
<
Flow
tasks=
{
templateConfigInfo
}
setTasks=
{
setTemplateConfigInfo
}
type=
"edit"
onFlowNodeClick=
{
handleNodeClick
}
/>
</
div
>
</
div
>
<
MyPopconfirm
...
...
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