lex-xin %!s(int64=5) %!d(string=hai) anos
pai
achega
7a68c36dfc
Modificáronse 1 ficheiros con 10 adicións e 3 borrados
  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) {
-      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) {