From dbb352c9d988dfac83da979023fe81a0a02f88e9 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期五, 12 四月 2024 16:34:20 +0800
Subject: [PATCH] 与数字人合并

---
 src/components/left/layerTree/Layer.vue |   39 +++++++++++++++++++++++++++++++++------
 1 files changed, 33 insertions(+), 6 deletions(-)

diff --git a/src/components/left/layerTree/Layer.vue b/src/components/left/layerTree/Layer.vue
index 4d39092..5452581 100644
--- a/src/components/left/layerTree/Layer.vue
+++ b/src/components/left/layerTree/Layer.vue
@@ -492,18 +492,45 @@
         });
     },
     // 娓呴櫎鏈湴鎵�鏈夋爣缁樹俊鎭�
-    deleteAllPlot() {
-      this.$confirm("璇ユ搷浣滃皢娓呴櫎鎵�鏈夋爣缁樹俊鎭紝鏄惁缁х画?", "娓呴櫎", {
+   deleteAllPlot() {
+      this.$confirm("璇ユ搷浣滃皢鍒犻櫎鎵�鏈夋爣缁樺巻鍙茶褰曪紝鏄惁缁х画?", "娓呴櫎", {
         confirmButtonText: "纭畾",
         cancelButtonText: "鍙栨秷",
         type: "warning",
       })
         .then(() => {
-          this.$message({
-            message: "鏍囩粯鏁版嵁宸叉竻闄�",
-            type: "success",
+          axios({
+            method: "GET",
+            url: "http://10.10.4.121:8070/PM20221203225_OpenAPI3_Service-0.0.1-SNAPSHOT/biaoHui/list",
+          }).then((response) => {
+            let hisIDArr = [];
+            response.data.result.forEach((item) => {
+              hisIDArr.push({
+                id: item.id,
+              });
+            });
+            axios
+              .post(
+                "http://10.10.4.121:8070/PM20221203225_OpenAPI3_Service-0.0.1-SNAPSHOT/biaoHui/del",
+                hisIDArr,
+                {
+                  headers: {
+                    "Content-Type": "application/json",
+                  },
+                }
+              )
+              .then((res) => {
+                if (res.data.code == 200) {
+                  this.$message({
+                    message: "鍒犻櫎鎴愬姛",
+                    type: "success",
+                  });
+                  this.initData({});
+                } else {
+                  this.$message.error("鍒犻櫎澶辫触锛�");
+                }
+              });
           });
-          this.initData({});
         })
         .catch(() => {
           this.$message({

--
Gitblit v1.9.3