Merge branch 'zth' into dev

dev
张同海 2 days ago
commit 61d95ca877

@ -270,18 +270,20 @@
sortConditions: [], sortConditions: [],
}, },
}) })
arrRes.data.forEach((item) => { if (values.attachments) {
values.attachments.forEach((e) => { arrRes.data.forEach((item) => {
if (item.id == e) { values.attachments.forEach((e) => {
attachments.push({ if (item.id == e) {
taskMailId: values.id, attachments.push({
templateId: item.id, taskMailId: values.id,
fileName: values[item.id] ? values[item.id] : item.templateName, templateId: item.id,
fileType: values[`${item.id}-fileType`], fileName: values[item.id] ? values[item.id] : item.templateName,
}) fileType: values[`${item.id}-fileType`],
} })
}
})
}) })
}) }
values.attachments = attachments values.attachments = attachments
values.receivers = [] values.receivers = []

Loading…
Cancel
Save