|
@@ -155,9 +155,16 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
onDelete (row) {
|
|
|
- goodsDelete(row.id).then(res => {
|
|
|
- this.messageTips('删除', res)
|
|
|
- })
|
|
|
+ this.$confirm('您确定删除该商品吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ goodsDelete(row.id).then(res => {
|
|
|
+ this.messageTips('删除', res)
|
|
|
+ })
|
|
|
+ }).catch(() => { })
|
|
|
+
|
|
|
},
|
|
|
messageTips (title, res) {
|
|
|
if (res.code == 200) {
|