commit
46985c6e1b
|
@ -1,10 +1,10 @@
|
||||||
import UserTask from './components/UserTask.vue'
|
import UserTaskCustomConfig from './components/UserTaskCustomConfig.vue'
|
||||||
import BoundaryEventTimer from './components/BoundaryEventTimer.vue'
|
import BoundaryEventTimer from './components/BoundaryEventTimer.vue'
|
||||||
|
|
||||||
export const CustomConfigMap = {
|
export const CustomConfigMap = {
|
||||||
UserTask: {
|
UserTask: {
|
||||||
name: '用户任务',
|
name: '用户任务',
|
||||||
componet: UserTask
|
componet: UserTaskCustomConfig
|
||||||
},
|
},
|
||||||
BoundaryEventTimerEventDefinition: {
|
BoundaryEventTimerEventDefinition: {
|
||||||
name: '定时边界事件(非中断)',
|
name: '定时边界事件(非中断)',
|
||||||
|
|
|
@ -301,13 +301,20 @@ const approveMethod = ref()
|
||||||
const approveRatio = ref(100)
|
const approveRatio = ref(100)
|
||||||
const otherExtensions = ref()
|
const otherExtensions = ref()
|
||||||
const getElementLoopNew = () => {
|
const getElementLoopNew = () => {
|
||||||
const extensionElements = bpmnElement.value.businessObject?.extensionElements ?? []
|
const extensionElements =
|
||||||
|
bpmnElement.value.businessObject?.extensionElements ??
|
||||||
|
bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] })
|
||||||
approveMethod.value = extensionElements.values.filter(
|
approveMethod.value = extensionElements.values.filter(
|
||||||
(ex) => ex.$type === `${prefix}:ApproveMethod`
|
(ex) => ex.$type === `${prefix}:ApproveMethod`
|
||||||
)?.[0]?.value
|
)?.[0]?.value
|
||||||
|
|
||||||
otherExtensions.value =
|
otherExtensions.value =
|
||||||
extensionElements.values.filter((ex) => ex.$type !== `${prefix}:ApproveMethod`) ?? []
|
extensionElements.values.filter((ex) => ex.$type !== `${prefix}:ApproveMethod`) ?? []
|
||||||
|
|
||||||
|
if (!approveMethod.value) {
|
||||||
|
approveMethod.value = ApproveMethodType.SEQUENTIAL_APPROVE
|
||||||
|
updateLoopCharacteristics()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const onApproveMethodChange = () => {
|
const onApproveMethodChange = () => {
|
||||||
approveRatio.value = 100
|
approveRatio.value = 100
|
||||||
|
|
|
@ -163,7 +163,7 @@ const resetTaskForm = () => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const extensionElements = businessObject?.extensionElements ?? []
|
const extensionElements = businessObject?.extensionElements ?? bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] })
|
||||||
userTaskForm.value.candidateStrategy = extensionElements.values?.filter(
|
userTaskForm.value.candidateStrategy = extensionElements.values?.filter(
|
||||||
(ex) => ex.$type === `${prefix}:CandidateStrategy`
|
(ex) => ex.$type === `${prefix}:CandidateStrategy`
|
||||||
)?.[0]?.value
|
)?.[0]?.value
|
||||||
|
|
Loading…
Reference in New Issue