feat(oa): CC designer multi-select and preview assigneeTypes support
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
835c1c0836
commit
f7d1004e6b
7 files changed
+166
-25
No files matched your search
@@ -348,11 +348,19 @@
|
||||
async function submit() {
|
||||
if (!picked.value?.id) return
|
||||
for (const s of flowSteps.value) {
|
||||
if (s.type === 'approval' && s.assigneeType === 'initiator_select') {
|
||||
const ids = initiatorSelectByNode.value[s.id] || []
|
||||
if (!ids.length) {
|
||||
ElMessage.warning(`请为「${s.name || '审批人'}」选择审批人`)
|
||||
return
|
||||
if (s.type === 'approval') {
|
||||
const types =
|
||||
Array.isArray(s.assigneeTypes) && s.assigneeTypes.length
|
||||
? s.assigneeTypes
|
||||
: s.assigneeType
|
||||
? [s.assigneeType]
|
||||
: []
|
||||
if (types.includes('initiator_select')) {
|
||||
const ids = initiatorSelectByNode.value[s.id] || []
|
||||
if (!ids.length) {
|
||||
ElMessage.warning(`请为「${s.name || '审批人'}」选择审批人`)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user