刘向辉 3 years ago
parent
commit
dfd163d021
  1. 18
      src/app/pages/plan/plan.component.ts

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

@ -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("删除成功!");
}
}
}

Loading…
Cancel
Save