浏览代码

添加提示

lex-xin 5 年之前
父节点
当前提交
7a68c36dfc
共有 1 个文件被更改,包括 10 次插入3 次删除
  1. 10 3
      src/views/businessManager/shopManager/shopList.vue

+ 10 - 3
src/views/businessManager/shopManager/shopList.vue

@@ -155,9 +155,16 @@ export default {
       })
       })
     },
     },
     onDelete (row) {
     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) {
     messageTips (title, res) {
       if (res.code == 200) {
       if (res.code == 200) {