chenrui 11 ヶ月 前
コミット
24f9a0c982
1 ファイル変更8 行追加17 行削除
  1. 8 17
      src/views/promotionManagement/promotionInfo/productTable.vue

+ 8 - 17
src/views/promotionManagement/promotionInfo/productTable.vue

@@ -143,23 +143,14 @@ export default {
     // 删除
     handleDel (row) {
       const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '点击确定,该内容将会被删除,不可再恢复!',
-        centered: true,
-        onOk () {
-          _this.spinning = true
-          // let ids=[]
-          // ids.push(row.id)
-          deleteBatch([row.id]).then(res => {
-            if (res.status == 200) {
-              _this.$message.success(res.message)
-              _this.$refs.table.refresh()
-              _this.spinning = false
-            } else {
-              _this.spinning = false
-            }
-          })
+      _this.spinning = true
+      deleteBatch([row.id]).then(res => {
+        if (res.status == 200) {
+          _this.$message.success(res.message)
+          _this.$refs.table.refresh()
+          _this.spinning = false
+        } else {
+          _this.spinning = false
         }
       })
     },