feat: Simple设计器-userTask-添加是否需要签名字段
parent
5fa2a78e84
commit
0c433552f9
|
@ -118,6 +118,8 @@ export interface SimpleFlowNode {
|
|||
// 路由分支
|
||||
routerGroups?: RouteCondition[]
|
||||
defaultFlowId?: string
|
||||
// 签名
|
||||
signEnable?: boolean
|
||||
}
|
||||
// 候选人策略枚举 ( 用于审批节点。抄送节点 )
|
||||
export enum CandidateStrategy {
|
||||
|
|
|
@ -149,6 +149,7 @@ export type UserTaskFormType = {
|
|||
taskCompleteListenerPath?: string
|
||||
taskCompleteListenerHeader?: ListenerParam[]
|
||||
taskCompleteListenerBody?: ListenerParam[]
|
||||
signEnable: boolean
|
||||
}
|
||||
|
||||
export type CopyTaskFormType = {
|
||||
|
|
|
@ -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 }) // 暴露方法给父组件
|
||||
|
|
Loading…
Reference in New Issue