Commit 9876a611 authored by linlinjava's avatar linlinjava
Browse files

feat[litemall-admin]: 删除商品确认

parent e1d44016
...@@ -189,18 +189,25 @@ export default { ...@@ -189,18 +189,25 @@ export default {
this.detailDialogVisible = true this.detailDialogVisible = true
}, },
handleDelete(row) { handleDelete(row) {
deleteGoods(row).then(response => { this.$confirm('确定删除?', '警告', {
this.$notify.success({ confirmButtonText: '确定',
title: '成功', cancelButtonText: '取消',
message: '删除成功' type: 'warning',
center: true
}).then(() => {
deleteGoods(row).then(response => {
this.$notify.success({
title: '成功',
message: '删除成功'
})
this.getList()
}).catch(response => {
this.$notify.error({
title: '失败',
message: response.data.errmsg
})
}) })
this.getList() }).catch(() => {})
}).catch(response => {
this.$notify.error({
title: '失败',
message: response.data.errmsg
})
})
}, },
handleDownload() { handleDownload() {
this.downloadLoading = true this.downloadLoading = true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment