Browse Source

[完善]新增编辑和删除

智慧矿山应急安全培训、考核、演练管理系统
邵佳豪 2 years ago
parent
commit
9da755edd9
  1. 3
      src/app/ui/collection-tools/collection-tools.component.html
  2. 4
      src/app/ui/collection-tools/collection-tools.component.ts

3
src/app/ui/collection-tools/collection-tools.component.html

@ -107,9 +107,6 @@
<div class="planIconDiv">
<mat-icon *ngIf="!node.origin.sitePlanId && !node.origin.buildingAreaId"
(click)='editPanelPoint($event,node)'>edit</mat-icon>
<!-- <mat-icon *ngIf="node.level===0" (click)='addPanelPoint($event,node.origin,null)'>add</mat-icon> -->
<!-- <mat-icon *ngIf="!node.origin.sitePlanId && !node.origin.buildingAreaId"
(click)='copyPanelPoint($event,node,treeData)'>library_books</mat-icon> -->
<mat-icon (click)='deletePanelPoint($event,node.origin)'>delete_forever</mat-icon>
</div>
</div>

4
src/app/ui/collection-tools/collection-tools.component.ts

@ -1433,7 +1433,7 @@ export class CollectionToolsComponent implements OnInit {
getSitePlanStorey(e) {
let params = { sitePlanId: e.id };
this.http.get(`/api/SitePlanData`, { params }).subscribe((data: any) => {
console.log(12345, data);
// console.log(12345, data);
this.canvasData.originaleveryStoreyData = data || {}; // 楼层原数据
this.canvasData.originaleveryStoreyData.data
? (this.canvasData.originaleveryStoreyData.data = JSON.parse(
@ -1481,6 +1481,7 @@ export class CollectionToolsComponent implements OnInit {
this.http
.get(`/api/BuildingAreaData`, { params })
.subscribe((data: any) => {
// console.log(555,data)
this.canvasData.originaleveryStoreyData = data || {}; // 楼层原数据
this.canvasData.originaleveryStoreyData.data
? (this.canvasData.originaleveryStoreyData.data = JSON.parse(
@ -2362,6 +2363,7 @@ export class CollectionToolsComponent implements OnInit {
//查找 数据节点 对应 建筑/楼层
seekPanelPoint(paramsData) {
this.checkedBuildingIndex = paramsData.buildingIndex;
// console.log(123,paramsData.buildingIndex)
if (paramsData.buildingIndex == -1) {
//总平面图时
this.beforeOneCheckedBuilding = { name: "总平面图" };

Loading…
Cancel
Save