update:
1. update order assets
This commit is contained in:
@@ -79,6 +79,9 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Snapshot',
|
label: 'Snapshot',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: 'Preview',
|
||||||
prop: 'snapshotLink',
|
prop: 'snapshotLink',
|
||||||
type: 'upload',
|
type: 'upload',
|
||||||
listType: 'picture-img',
|
listType: 'picture-img',
|
||||||
@@ -89,6 +92,17 @@ export default {
|
|||||||
url: 'link'
|
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',
|
||||||
prop: 'photos',
|
prop: 'photos',
|
||||||
@@ -99,7 +113,7 @@ export default {
|
|||||||
hide: true
|
hide: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Amount',
|
label: 'Total',
|
||||||
prop: 'totalAmount',
|
prop: 'totalAmount',
|
||||||
type: 'number'
|
type: 'number'
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ export default {
|
|||||||
menu: false,
|
menu: false,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: 'OriginalPhoto',
|
label: 'Original',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: 'Preview',
|
||||||
prop: 'photo',
|
prop: 'photo',
|
||||||
type: 'upload',
|
type: 'upload',
|
||||||
listType: 'picture-img',
|
listType: 'picture-img',
|
||||||
@@ -23,10 +26,24 @@ export default {
|
|||||||
propsHttp: {
|
propsHttp: {
|
||||||
res: 'data',
|
res: 'data',
|
||||||
url: 'link'
|
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',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
label: 'Preview',
|
||||||
prop: 'snapshot',
|
prop: 'snapshot',
|
||||||
type: 'upload',
|
type: 'upload',
|
||||||
listType: 'picture-img',
|
listType: 'picture-img',
|
||||||
@@ -35,7 +52,18 @@ export default {
|
|||||||
propsHttp: {
|
propsHttp: {
|
||||||
res: 'data',
|
res: 'data',
|
||||||
url: 'link'
|
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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user