fix: 【BPM 工作流】修复 BPMN 屏蔽用户任务表单内用户字段的特殊处理逻辑

This commit is contained in:
YunaiV 2025-07-20 10:11:06 +08:00
parent 8afc7fd7aa
commit f28778723d

View File

@ -354,12 +354,13 @@ const resetTaskForm = () => {
const changeCandidateStrategy = () => { const changeCandidateStrategy = () => {
userTaskForm.value.candidateParam = [] userTaskForm.value.candidateParam = []
deptLevel.value = 1 deptLevel.value = 1
if (userTaskForm.value.candidateStrategy === CandidateStrategy.FORM_USER) { // by https://t.zsxq.com/xNmas
// // if (userTaskForm.value.candidateStrategy === CandidateStrategy.FORM_USER) {
if (!userFieldOnFormOptions.value || userFieldOnFormOptions.value.length <= 1) { // //
userTaskForm.value.candidateStrategy = CandidateStrategy.START_USER // if (!userFieldOnFormOptions.value || userFieldOnFormOptions.value.length <= 1) {
} // userTaskForm.value.candidateStrategy = CandidateStrategy.START_USER
} // }
// }
updateElementTask() updateElementTask()
} }