Browse Source

[完善]创建推演预案

tianjin
邵佳豪 2 years ago
parent
commit
ddf28910dd
  1. 38
      src/app/plan-management/plan-deduction/plan-deduction.component.ts

38
src/app/plan-management/plan-deduction/plan-deduction.component.ts

@ -134,26 +134,36 @@ export class PlanDeductionComponent implements OnInit {
if (data) { if (data) {
console.log("创建成功", data); console.log("创建成功", data);
this.onSubmit(); this.onSubmit();
// this.route.snapshot.queryParams.id = data.planId sessionStorage.setItem("planId", data.id);
// this.planId = data.planId; sessionStorage.setItem("companyId", data.plan.companyId);
// this.getAllPlanComponents(); sessionStorage.setItem(
// if (data.planMode == 2) { "buildingTypeId",
// //如果添加方式为在线编辑 data.plan.company.buildingTypes[0].id
// sessionStorage.setItem("planId", data.id); );
// sessionStorage.setItem("companyId", this.companyId); sessionStorage.setItem("editable", "1");
// sessionStorage.setItem("buildingTypeId", this.unittypeId); let orId = data.plan.company.organizationId;
// sessionStorage.setItem("editable", "1"); let orName = data.plan.company.organizationName;
// let companyId = sessionStorage.getItem("companyId"); window.open(
// window.open( `/keyUnit/editunitinfo?id=${data.plan.company.id}&orName=${orName}&orId=${orId}`
// `/keyUnit/editunitinfo?id=${companyId}&orName=${this.route.snapshot.queryParams.orName}&orId=${this.route.snapshot.queryParams.orId}` );
// );
// }
} }
}); });
} }
look(element) { look(element) {
console.log(element); console.log(element);
sessionStorage.setItem("planId", element.id);
sessionStorage.setItem("companyId", element.companyId);
sessionStorage.setItem(
"buildingTypeId",
element.company.buildingTypes[0].id
);
sessionStorage.setItem("editable", "1");
let orId = element.company.organizationId;
let orName = element.company.organizationName;
window.open(
`/keyUnit/editunitinfo?id=${element.companyId}&orName=${orName}&orId=${orId}`
);
} }
delete(element) { delete(element) {

Loading…
Cancel
Save