【代码评审】工作流:BPMN 设计器,增加 UserTask 自定义配置
parent
2cc9652d4b
commit
a07f61a9ed
|
@ -1,3 +1,6 @@
|
||||||
|
<!-- UserTask 自定义配置:
|
||||||
|
1. 审批人与提交人为同一人时
|
||||||
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="panel-tab__content">
|
<div class="panel-tab__content">
|
||||||
<el-divider content-position="left">审批人与提交人为同一人时</el-divider>
|
<el-divider content-position="left">审批人与提交人为同一人时</el-divider>
|
||||||
|
@ -12,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ASSIGN_START_USER_HANDLER_TYPES } from '../../../../SimpleProcessDesignerV2/src/consts'
|
import { ASSIGN_START_USER_HANDLER_TYPES } from '@/components/SimpleProcessDesignerV2/src/consts'
|
||||||
|
|
||||||
defineOptions({ name: 'ElementCustomConfig' })
|
defineOptions({ name: 'ElementCustomConfig' })
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
@ -58,7 +61,7 @@ const updateAssignStartUserHandlerType = () => {
|
||||||
updateElementExtensions()
|
updateElementExtensions()
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateElementExtensions = (properties) => {
|
const updateElementExtensions = () => {
|
||||||
const extensions = bpmnInstances().moddle.create('bpmn:ExtensionElements', {
|
const extensions = bpmnInstances().moddle.create('bpmn:ExtensionElements', {
|
||||||
values: otherExtensions.value.concat([assignStartUserHandlerTypeEl.value])
|
values: otherExtensions.value.concat([assignStartUserHandlerTypeEl.value])
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue