|
|
|
@ -206,7 +206,7 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}`) |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
let body = JSON.stringify(""); |
|
|
|
|
let body = {}; |
|
|
|
|
let resetAudit = true |
|
|
|
|
let headers = new HttpHeaders({ |
|
|
|
|
'Content-Type': 'text/json' |
|
|
|
@ -1203,9 +1203,12 @@ export class ChangeName {
|
|
|
|
|
let options = { |
|
|
|
|
headers |
|
|
|
|
}; |
|
|
|
|
let body = JSON.stringify(value.name); |
|
|
|
|
let body = { |
|
|
|
|
name:value.name |
|
|
|
|
} |
|
|
|
|
let body2d=JSON.stringify(value.name) |
|
|
|
|
if (this.data.element.planType == 1) {//如果是二维预案
|
|
|
|
|
this.http.put(`/api/PlanComponents2D/${this.data.element.id}`, body, options).subscribe(data => { |
|
|
|
|
this.http.put(`/api/PlanComponents2D/${this.data.element.id}`, body2d, options).subscribe(data => { |
|
|
|
|
this.dialogRef.close("success"); |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|