1. update order assets
This commit is contained in:
2025-11-19 13:44:07 +08:00
parent 6e75150ed4
commit 0f03462a5c
2 changed files with 72 additions and 30 deletions

View File

@@ -79,15 +79,29 @@ export default {
}, },
{ {
label: 'Snapshot', label: 'Snapshot',
prop: 'snapshotLink', children: [
type: 'upload', {
listType: 'picture-img', label: 'Preview',
dataType: 'string', prop: 'snapshotLink',
action: '/blade-resource/oss/endpoint/put-file', type: 'upload',
propsHttp: { listType: 'picture-img',
res: 'data', dataType: 'string',
url: 'link' action: '/blade-resource/oss/endpoint/put-file',
}, propsHttp: {
res: 'data',
url: 'link'
},
},
{
label: 'Download',
html: true,
formatter: (row, column, cellValue) => {
if (!row.snapshotLink) return '—';
return `<a href="${row.snapshotLink}" target="_blank" rel="noopener">Click</a>`;
}
}
],
}, },
{ {
label: 'Photos', label: 'Photos',
@@ -99,7 +113,7 @@ export default {
hide: true hide: true
}, },
{ {
label: 'Amount', label: 'Total',
prop: 'totalAmount', prop: 'totalAmount',
type: 'number' type: 'number'
}, },

View File

@@ -14,28 +14,56 @@ export default {
menu: false, menu: false,
column: [ column: [
{ {
label: 'OriginalPhoto', label: 'Original',
prop: 'photo', children: [
type: 'upload', {
listType: 'picture-img', label: 'Preview',
dataType: 'string', prop: 'photo',
action: '/blade-resource/oss/endpoint/put-file', type: 'upload',
propsHttp: { listType: 'picture-img',
res: 'data', dataType: 'string',
url: 'link' action: '/blade-resource/oss/endpoint/put-file',
}, propsHttp: {
res: 'data',
url: 'link'
}
},
{
label: 'Download',
html: true,
formatter: (row, column, cellValue) => {
if (!row.photo) return '—';
return `<a href="${row.photo}" target="_blank" rel="noopener">Click</a>`;
}
}
]
}, },
{ {
label: 'Snapshot', label: 'Snapshot',
prop: 'snapshot', children: [
type: 'upload', {
listType: 'picture-img', label: 'Preview',
dataType: 'string', prop: 'snapshot',
action: '/blade-resource/oss/endpoint/put-file', type: 'upload',
propsHttp: { listType: 'picture-img',
res: 'data', dataType: 'string',
url: 'link' action: '/blade-resource/oss/endpoint/put-file',
}, propsHttp: {
res: 'data',
url: 'link'
}
},
{
label: 'Download',
html: true,
formatter: (row, column, cellValue) => {
if (!row.snapshot) return '—';
return `<a href="${row.snapshot}" target="_blank" rel="noopener">Click</a>`;
}
}
]
}, },
{ {
label: 'Stickers', label: 'Stickers',
@@ -55,7 +83,7 @@ export default {
{ {
label: 'Texts', label: 'Texts',
prop: 'texts', prop: 'texts',
slot: true, slot: true
} }
] ]
}; };