feat: add order detail done function
This commit is contained in:
@@ -62,6 +62,7 @@
|
|||||||
<template #menu="{ row }">
|
<template #menu="{ row }">
|
||||||
<el-button type="text"
|
<el-button type="text"
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
|
v-if="row.status === 1"
|
||||||
@click.stop="handleDownload(row)">Download
|
@click.stop="handleDownload(row)">Download
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="text"
|
<el-button type="text"
|
||||||
@@ -298,7 +299,7 @@ export default {
|
|||||||
return doneDetail(row);
|
return doneDetail(row);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.onLoad(this.page);
|
this.onLoadSub(this.pageSub);
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: 'Success!'
|
message: 'Success!'
|
||||||
@@ -306,7 +307,6 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDownload(row) {
|
handleDownload(row) {
|
||||||
// 安全访问数组,避免 undefined.map()
|
|
||||||
const urlData = (row.photos || []).map(url => ({ url }));
|
const urlData = (row.photos || []).map(url => ({ url }));
|
||||||
const u = (row.stickers || []).map(url => ({ url }));
|
const u = (row.stickers || []).map(url => ({ url }));
|
||||||
const t = (row.texts || []).map(t => ({
|
const t = (row.texts || []).map(t => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user