|
|
|
@ -21,6 +21,7 @@ export class AddPlanComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
console.log("传递的数据", this.data); |
|
|
|
|
this.nodes = this.data; |
|
|
|
|
this.getCompanies(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -28,7 +29,7 @@ export class AddPlanComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
planname; |
|
|
|
|
unitid; |
|
|
|
|
|
|
|
|
|
orid; |
|
|
|
|
optionList: string[] = []; |
|
|
|
|
PageNumber = 1; |
|
|
|
|
PageSize = 10; |
|
|
|
@ -67,9 +68,12 @@ export class AddPlanComponent implements OnInit {
|
|
|
|
|
this.getCompanies($event); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
nodes; |
|
|
|
|
|
|
|
|
|
save() { |
|
|
|
|
console.log(1, this.planname); |
|
|
|
|
console.log(2, this.unitid); |
|
|
|
|
console.log(3, this.orid); |
|
|
|
|
// return;
|
|
|
|
|
if (!this.planname || !this.unitid) { |
|
|
|
|
this.snackBar.open("请输入完整", "确定", { |
|
|
|
@ -84,6 +88,7 @@ export class AddPlanComponent implements OnInit {
|
|
|
|
|
planCategory: 9, //temp
|
|
|
|
|
planMode: 2, |
|
|
|
|
planType: 1, |
|
|
|
|
exCreatorId: this.orid ? this.orid : "", |
|
|
|
|
}; |
|
|
|
|
this.http |
|
|
|
|
.post(`/api/PlanComponents2D?companyId=${this.unitid}`, body) |
|
|
|
|