From 882f1a5f79c7e09a238ff872993c119b0f3023fa Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sat, 13 May 2023 08:51:38 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E7=82=B9=E5=87=BB=E5=B9=B3?= =?UTF-8?q?=E9=9D=A2=E5=9B=BE=E5=A4=84=E7=BD=AE=E7=B4=A0=E6=9D=90=E4=B8=8D?= =?UTF-8?q?=E6=B6=88=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collection-tools/collection-tools.component.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index 90d5a8d..3197033 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -1359,6 +1359,7 @@ export class CollectionToolsComponent implements OnInit { this.selectSitePlanIndex = 0; Promise.all([fireData, planData]).then((res) => { + this.canvasData.selectPanelPoint.Data= {}; this.getSitePlanStorey(this.selectingSitePlan); //获取 平面图 楼层数据 }); }); @@ -1376,6 +1377,7 @@ export class CollectionToolsComponent implements OnInit { this.selectSitePlanIndex = 0; Promise.all([fireData, planData]).then((res) => { + this.canvasData.selectPanelPoint.Data= {}; this.getBuildingStorey(this.selectingSitePlan); //获取 建筑 楼层数据 }); }); @@ -1481,7 +1483,7 @@ export class CollectionToolsComponent implements OnInit { this.http .get(`/api/BuildingAreaData`, { params }) .subscribe((data: any) => { - // console.log(555,data) + console.log("建筑素材数据", data); this.canvasData.originaleveryStoreyData = data || {}; // 楼层原数据 this.canvasData.originaleveryStoreyData.data ? (this.canvasData.originaleveryStoreyData.data = JSON.parse( @@ -2307,12 +2309,14 @@ export class CollectionToolsComponent implements OnInit { //删除 处置预案 节点 deletePanelPoint(e, item) { - console.log(item) + console.log(item); e.stopPropagation(); if (confirm(`确定要删除 ${item.name} ?`)) { - this.http.delete(`/api/ExamDisposalNodes/${item.id}`).subscribe((data) => { - this.refurbishTreeData(); - }); + this.http + .delete(`/api/ExamDisposalNodes/${item.id}`) + .subscribe((data) => { + this.refurbishTreeData(); + }); } }