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 | 45 +++++++++++++++++++++++++++++++++++++-------- 1 files changed, 37 insertions(+), 8 deletions(-) diff --git a/src/components/left/layerTree/Layer.vue b/src/components/left/layerTree/Layer.vue index e00c8d6..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({ @@ -1033,7 +1060,7 @@ color: #ffffff !important; } .historyBtn { - margin-left: 28px; + margin-left: 10px; } .closeBtn { color: white; @@ -1086,7 +1113,7 @@ height: 30px; cursor: pointer; text-align: center; - z-index: 999999; + z-index: 999; color: white; } .treeContainer { @@ -1109,6 +1136,8 @@ } .el-tree { + height: 300px; + overflow: auto; background: transparent; color: #fff; } -- Gitblit v1.9.3