panhui 6 жил өмнө
parent
commit
41fb0c57b3

+ 20 - 12
src/main/vue/src/pagesPre/OrderUploadAlbum.vue

@@ -337,19 +337,27 @@ export default {
     },
     methods: {
         cleanAlbum() {
-            this.$http
-                .post({
-                    url: "/orderAlbum/cleanAlbum",
-                    data: {
-                        orderId: this.$route.query.orderId
-                    }
+            this.$confirm("确定要删除全部放大图片吗?", "提示", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning"
+            })
+                .then(() => {
+                    this.$http
+                        .post({
+                            url: "/orderAlbum/cleanAlbum",
+                            data: {
+                                orderId: this.$route.query.orderId
+                            }
+                        })
+                        .then(res => {
+                            if (res.success) {
+                                this.$message.success("删除成功");
+                                this.getImage();
+                            }
+                        });
                 })
-                .then(res => {
-                    if (res.success) {
-                        this.$message.success("删除成功");
-                        this.getImage();
-                    }
-                });
+                .catch(() => {});
         },
         handleClose() {
             this.dialogVisible = false;