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