diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
index 0c01465..40594af 100644
--- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
+++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
@@ -735,7 +735,7 @@ export class AddPlanone {
onlineedit:boolean = false //在线编辑
website:boolean = false //网页地址
next(formdata){
- // console.log(formdata.value.firstCtrltwo)
+ //console.log(formdata.value.firstCtrlthree)
//console.log(this.file)
this.psw=false
this.selectedPLanName = formdata.value.firstCtrlone
@@ -772,7 +772,7 @@ export class AddPlanone {
this.psw=false
}
closediv(){
- console.log(this.file)
+ //console.log(this.file)
if(this.file!=undefined){
this.cancel();
}
@@ -852,6 +852,7 @@ export class AddPlanone {
url: this.webaddress,
attachmentUrls: null
}
+ //console.log(body)
this.http.post("/api/PlanComponents",body,{params:{
companyId : this.data.companyId
}}).subscribe(data=>{
@@ -928,6 +929,7 @@ export class AddPlanone {
url: this.webaddress,
attachmentUrls: null
}
+ //console.log(body)
this.http.post("/api/PlanComponents2D",body,{params:{
companyId : this.data.companyId
}}).subscribe(data=>{
diff --git a/src/app/plan-management/entry-plan/entry-plan.component.ts b/src/app/plan-management/entry-plan/entry-plan.component.ts
index 807af6f..a5f720a 100644
--- a/src/app/plan-management/entry-plan/entry-plan.component.ts
+++ b/src/app/plan-management/entry-plan/entry-plan.component.ts
@@ -168,13 +168,14 @@ export class EntryPlanComponent implements OnInit {
style.width = (width/zong)*100 +'%';
return style
}
+ level
ngOnInit(): void {
this.getunitdata();
this.getOrganizations();
this.getUnittype();
this.getAllPlanInfo();
- let level = sessionStorage.getItem("level");
- if(level == "0"){//如果是总队
+ this.level = sessionStorage.getItem("level");
+ if(this.level == "0"){//如果是总队
this.preparelevels = [
{name:"总队",value:"1"},
{name:"支队",value:"2"},
@@ -182,20 +183,20 @@ export class EntryPlanComponent implements OnInit {
{name:"中队",value:"8"}
]
}
- if(level == "1"){//如果是支队
+ if(this.level == "1"){//如果是支队
this.preparelevels = [
{name:"支队",value:"2"},
{name:"大队",value:"4"},
{name:"中队",value:"8"}
]
}
- if(level == "2"){//如果是大队
+ if(this.level == "2"){//如果是大队
this.preparelevels = [
{name:"大队",value:"4"},
{name:"中队",value:"8"}
]
}
- if(level == "3"){//如果是中队
+ if(this.level == "3"){//如果是中队
this.preparelevels = [
{name:"中队",value:"8"}
]
@@ -316,12 +317,13 @@ export class EntryPlanComponent implements OnInit {
})
}
-
+ operation=true
//查看预案按钮跳转
routerTo(element){
// console.log(element)
+ this.level=='0'?this.operation=false:true
sessionStorage.setItem("companyName",element.company.name)
- window.open(`/planManagement/entryPlandetail?unitId=${element.company.id}&unitTypeId=${element.company.buildingTypes.length == 0 ? null :element.company.buildingTypes[0].id}&operation=true&pagetype=entryplan&unitName=${element.company.name}&orName=${element.company.organizationName}&unitType=${element.company.buildingTypes.length == 0 ? null :element.company.buildingTypes[0].name}&unitAdd=${element.company.address}`);
+ window.open(`/planManagement/entryPlandetail?unitId=${element.company.id}&unitTypeId=${element.company.buildingTypes.length == 0 ? null :element.company.buildingTypes[0].id}&operation=${this.operation}&pagetype=entryplan&unitName=${element.company.name}&orName=${element.company.organizationName}&unitType=${element.company.buildingTypes.length == 0 ? null :element.company.buildingTypes[0].name}&unitAdd=${element.company.address}`);
}
//查询
onSubmit (value) {
diff --git a/src/app/plan-management/meet-plan/meet-plan.component.html b/src/app/plan-management/meet-plan/meet-plan.component.html
index ec3c598..9f5133c 100644
--- a/src/app/plan-management/meet-plan/meet-plan.component.html
+++ b/src/app/plan-management/meet-plan/meet-plan.component.html
@@ -83,7 +83,7 @@