Compare commits

...

2 Commits

Author SHA1 Message Date
张同海 61d95ca877 Merge branch 'zth' into dev 1 week ago
张同海 f1643def26 邮件模板 无附件问题 1 week ago

@ -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