feat: Simple设计器-userTask-添加是否需要签名字段

pull/654/head
Lesan 2025-01-08 16:58:14 +08:00
parent 5fa2a78e84
commit 0c433552f9
3 changed files with 16 additions and 0 deletions

View File

@ -118,6 +118,8 @@ export interface SimpleFlowNode {
// 路由分支
routerGroups?: RouteCondition[]
defaultFlowId?: string
// 签名
signEnable?: boolean
}
// 候选人策略枚举 用于审批节点。抄送节点 )
export enum CandidateStrategy {

View File

@ -149,6 +149,7 @@ export type UserTaskFormType = {
taskCompleteListenerPath?: string
taskCompleteListenerHeader?: ListenerParam[]
taskCompleteListenerBody?: ListenerParam[]
signEnable: boolean
}
export type CopyTaskFormType = {

View File

@ -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 }) //