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