|
@@ -121,6 +121,7 @@
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button @click="$router.push({path:'/OrderInvoices',query:{column:scope.row.id+',orderId'}})" type="primary" size="small" plain>发票
|
|
<el-button @click="$router.push({path:'/OrderInvoices',query:{column:scope.row.id+',orderId'}})" type="primary" size="small" plain>发票
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button @click="cleanOssRow(scope.row)" type="danger" size="mini" plain>清理OSS</el-button>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
</template>
|
|
</template>
|
|
@@ -640,6 +641,23 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ cleanOssRow(row) {
|
|
|
|
|
+ this.$alert('清理OSS将无法恢复,确认要清理么?', '警告', { type: 'error' }).then(() => {
|
|
|
|
|
+ return this.$http.post({
|
|
|
|
|
+ url: '/orderImage/handCleanOrderImage',
|
|
|
|
|
+ data: { orderId: row.id }
|
|
|
|
|
+ })
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.$message.success('成功');
|
|
|
|
|
+ this.getData();
|
|
|
|
|
+ }).catch(action => {
|
|
|
|
|
+ if (action === 'cancel') {
|
|
|
|
|
+ this.$message.info('取消');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error('失败');
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
DateTimeFormatter(row, column, cellValue) {
|
|
DateTimeFormatter(row, column, cellValue) {
|
|
|
if (cellValue) {
|
|
if (cellValue) {
|
|
|
return format(cellValue, 'YYYY/MM/DD HH:mm', { locale: zh })
|
|
return format(cellValue, 'YYYY/MM/DD HH:mm', { locale: zh })
|