feat: add order detail done function
This commit is contained in:
@@ -352,30 +352,11 @@ export default {
|
|||||||
this.shape = row.shape;
|
this.shape = row.shape;
|
||||||
},
|
},
|
||||||
handleDownload(row) {
|
handleDownload(row) {
|
||||||
// const urlData = (row.photos || []).map(url => ({ url }));
|
|
||||||
// const u = (row.stickers || []).map(url => ({ url }));
|
|
||||||
// const t = (row.texts || []).map(t => ({
|
|
||||||
// url: `[font:${t.font || 'normal'}] [size:${t.size || 12}] [content:${t.content || ''}]`
|
|
||||||
// }));
|
|
||||||
//
|
|
||||||
// const r = [
|
|
||||||
// ...urlData,
|
|
||||||
// { url: '======Stickers=====' },
|
|
||||||
// ...u,
|
|
||||||
// { url: '======Texts=======' },
|
|
||||||
// ...t
|
|
||||||
// ];
|
|
||||||
// $Export.excel({
|
|
||||||
// columns: [{ label: '======Photos======', prop: 'url' }],
|
|
||||||
// data: r
|
|
||||||
// });
|
|
||||||
const data = (row.photos || []).map(photoObj => {
|
const data = (row.photos || []).map(photoObj => {
|
||||||
// 提取 texts 内容(拼接为字符串)
|
|
||||||
const textsStr = (photoObj.texts || [])
|
const textsStr = (photoObj.texts || [])
|
||||||
.map(t => `[${t.font || 'normal'} : ${t.content || ''}]`)
|
.map(t => `[${t.font || 'normal'} : ${t.content || ''}]`)
|
||||||
.join('; ');
|
.join('; ');
|
||||||
|
|
||||||
// 提取 stickers(拼接为字符串)
|
|
||||||
const stickersStr = (photoObj.stickers || []).join('; ');
|
const stickersStr = (photoObj.stickers || []).join('; ');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user