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()
} }