| | |
| | | actualStartTime: payload.actualStartTime || null, |
| | | actualEndTime: payload.actualEndTime || null, |
| | | progress: Number(payload.totalProgress ?? payload.completionProgress ?? 0) || 0, |
| | | attachmentIds: Array.isArray(payload.attachmentIds) ? payload.attachmentIds : [] |
| | | storageBlobDTOs: Array.isArray(payload.storageBlobDTOs) ? payload.storageBlobDTOs : [] |
| | | } |
| | | const res = await saveStage(req) |
| | | if (res?.code === 200) { |
| | |
| | | } |
| | | } |
| | | |
| | | function downloadAttachment(att) { |
| | | if (att?.url) { |
| | | function downloadAttachment(row) { |
| | | if (row?.url) { |
| | | try { |
| | | proxy.$download.resource(att.url) |
| | | return |
| | | } catch (e) {} |
| | | } |
| | | if (att?.name) { |
| | | try { |
| | | proxy.$download.name(att.name, false) |
| | | proxy.$download.byUrl(row.url, row.originalFilename); |
| | | return |
| | | } catch (e) {} |
| | | } |