邵佳豪 3 years ago
parent
commit
984e309993
  1. 1
      src/app/babylon/tool/babylon-tool.ts
  2. 18
      src/app/pages/plan/plan.component.ts

1
src/app/babylon/tool/babylon-tool.ts

@ -1,4 +1,3 @@
import { NumberValueAccessor } from '@angular/forms';
import { import {
AbstractMesh, AbstractMesh,
Animation, Animation,

18
src/app/pages/plan/plan.component.ts

@ -772,20 +772,14 @@ export class PlanComponent implements OnInit {
let isDelete = confirm("您确定要删除吗?") let isDelete = confirm("您确定要删除吗?")
if (isDelete) { if (isDelete) {
if (type === 1) { if (type === 1) {
this.http.delete(`${this.beforeOnePropertyData.getPropertyData().img}`).subscribe(data => { this.beforeOnePropertyData.getPropertyData().img = ""
this.beforeOnePropertyData.getPropertyData().img = "" this.message.info("删除成功!");
this.message.info("删除成功!");
})
} else if (type === 2) { } else if (type === 2) {
this.http.delete(`${this.beforePlanNode.texture}`).subscribe(data => { this.beforePlanNode.texture = ""
this.beforePlanNode.texture = "" this.message.info("删除成功!");
this.message.info("删除成功!");
})
} else if (type === 3) { } else if (type === 3) {
this.http.delete(`${this.beforePlanNode.video}`).subscribe(data => { this.beforePlanNode.video = ""
this.beforePlanNode.video = "" this.message.info("删除成功!");
this.message.info("删除成功!");
})
} }
} }
} }

Loading…
Cancel
Save