Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0c433552
authored
Jan 08, 2025
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Simple设计器-userTask-添加是否需要签名字段
parent
5fa2a78e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
src/components/SimpleProcessDesignerV2/src/consts.ts
+2
-0
src/components/SimpleProcessDesignerV2/src/node.ts
+1
-0
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
+13
-0
No files found.
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
0c433552
...
...
@@ -118,6 +118,8 @@ export interface SimpleFlowNode {
// 路由分支
routerGroups
?:
RouteCondition
[]
defaultFlowId
?:
string
// 签名
signEnable
?:
boolean
}
// 候选人策略枚举 ( 用于审批节点。抄送节点 )
export
enum
CandidateStrategy
{
...
...
src/components/SimpleProcessDesignerV2/src/node.ts
View file @
0c433552
...
...
@@ -149,6 +149,7 @@ export type UserTaskFormType = {
taskCompleteListenerPath
?:
string
taskCompleteListenerHeader
?:
ListenerParam
[]
taskCompleteListenerBody
?:
ListenerParam
[]
signEnable
:
boolean
}
export
type
CopyTaskFormType
=
{
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
View file @
0c433552
...
...
@@ -356,6 +356,15 @@
</div>
</el-radio-group>
</el-form-item>
<el-divider
content-position=
"left"
>
是否需要签名
</el-divider>
<el-form-item
prop=
"signEnable"
>
<el-switch
v-model=
"configForm.signEnable"
active-text=
"是"
inactive-text=
"否"
/>
</el-form-item>
</el-form>
</div>
</el-tab-pane>
...
...
@@ -858,6 +867,8 @@ const saveConfig = async () => {
header
:
configForm
.
value
.
taskCompleteListenerHeader
,
body
:
configForm
.
value
.
taskCompleteListenerBody
}
// 签名
currentNode
.
value
.
signEnable
=
configForm
.
value
.
signEnable
currentNode
.
value
.
showText
=
showText
settingVisible
.
value
=
false
...
...
@@ -925,6 +936,8 @@ const showUserTaskNodeConfig = (node: SimpleFlowNode) => {
configForm
.
value
.
taskCompleteListenerPath
=
node
.
taskCompleteListener
!
.
path
configForm
.
value
.
taskCompleteListenerHeader
=
node
.
taskCompleteListener
?.
header
??
[]
configForm
.
value
.
taskCompleteListenerBody
=
node
.
taskCompleteListener
?.
body
??
[]
// 6. 签名
configForm
.
value
.
signEnable
=
node
.
signEnable
??
false
}
defineExpose
({
openDrawer
,
showUserTaskNodeConfig
})
// 暴露方法给父组件
...
...
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