fix: 【工作流】--加签减签

This commit is contained in:
shizhong
2024-03-05 16:31:04 +08:00
parent a2c4cb22f4
commit f0cdee8e9a
7 changed files with 370 additions and 21 deletions

View File

@ -1,3 +1,4 @@
<template>
<template>
<div class="my-process-designer">
<div class="my-process-designer__container">
@ -250,6 +251,12 @@ const getResultCss = (result) => {
} else if (result === 5) {
// 退回
return 'highlight-return'
} else if (result === 6) {
// 委派
return 'highlight-return'
} else if (result === 7 || result === 8 || result === 9) {
// 待后加签任务完成/待前加签任务完成/待前置任务完成
return 'highlight-return'
}
return ''
}
@ -362,7 +369,7 @@ const elementHover = (element) => {
}
}
console.log(html, 'html111111111111111')
elementOverlayIds.value[element.value.id] = toRaw(overlays.value).add(element.value, {
elementOverlayIds.value[element.value.id] = toRaw(overlays.value)?.add(element.value, {
position: { left: 0, bottom: 0 },
html: `<div class="element-overlays">${html}</div>`
})