update:
1. update order assets
This commit is contained in:
@@ -79,15 +79,29 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'Snapshot',
|
||||
prop: 'snapshotLink',
|
||||
type: 'upload',
|
||||
listType: 'picture-img',
|
||||
dataType: 'string',
|
||||
action: '/blade-resource/oss/endpoint/put-file',
|
||||
propsHttp: {
|
||||
res: 'data',
|
||||
url: 'link'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
label: 'Preview',
|
||||
prop: 'snapshotLink',
|
||||
type: 'upload',
|
||||
listType: 'picture-img',
|
||||
dataType: 'string',
|
||||
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',
|
||||
@@ -99,7 +113,7 @@ export default {
|
||||
hide: true
|
||||
},
|
||||
{
|
||||
label: 'Amount',
|
||||
label: 'Total',
|
||||
prop: 'totalAmount',
|
||||
type: 'number'
|
||||
},
|
||||
|
||||
@@ -14,28 +14,56 @@ export default {
|
||||
menu: false,
|
||||
column: [
|
||||
{
|
||||
label: 'OriginalPhoto',
|
||||
prop: 'photo',
|
||||
type: 'upload',
|
||||
listType: 'picture-img',
|
||||
dataType: 'string',
|
||||
action: '/blade-resource/oss/endpoint/put-file',
|
||||
propsHttp: {
|
||||
res: 'data',
|
||||
url: 'link'
|
||||
},
|
||||
label: 'Original',
|
||||
children: [
|
||||
{
|
||||
label: 'Preview',
|
||||
prop: 'photo',
|
||||
type: 'upload',
|
||||
listType: 'picture-img',
|
||||
dataType: 'string',
|
||||
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',
|
||||
prop: 'snapshot',
|
||||
type: 'upload',
|
||||
listType: 'picture-img',
|
||||
dataType: 'string',
|
||||
action: '/blade-resource/oss/endpoint/put-file',
|
||||
propsHttp: {
|
||||
res: 'data',
|
||||
url: 'link'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
label: 'Preview',
|
||||
prop: 'snapshot',
|
||||
type: 'upload',
|
||||
listType: 'picture-img',
|
||||
dataType: 'string',
|
||||
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',
|
||||
@@ -55,7 +83,7 @@ export default {
|
||||
{
|
||||
label: 'Texts',
|
||||
prop: 'texts',
|
||||
slot: true,
|
||||
slot: true
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user