소스 검색

添加提示

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) {
-      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) {