|
@@ -2231,9 +2231,11 @@
|
|
|
}
|
|
|
console.log(type,data)
|
|
|
storage.setItem('projectId',data.id);
|
|
|
- if(d.cId != this.companyId){
|
|
|
- this.companyId = d.cId;
|
|
|
- storage.setItem('companyId',d.cId);
|
|
|
+ if(this.sideBarCompanyType != 0){
|
|
|
+ if(d.cId != this.companyId){
|
|
|
+ this.companyId = d.cId;
|
|
|
+ storage.setItem('companyId',d.cId);
|
|
|
+ }
|
|
|
}
|
|
|
this.projectId = data.id;
|
|
|
this.roadId = '';
|
|
@@ -2242,15 +2244,27 @@
|
|
|
},
|
|
|
roadSelectFun(data,obj,d){
|
|
|
var storage = window.localStorage;
|
|
|
- if(d.cId != this.companyId){
|
|
|
- this.companyId = d.cId;
|
|
|
- storage.setItem('companyId',d.cId);
|
|
|
- }
|
|
|
- if(data.id != this.projectId){
|
|
|
- storage.setItem('projectId',data.id);
|
|
|
- this.projectId = data.id;
|
|
|
+ if(this.sideBarCompanyType == 0){
|
|
|
+ // if(data.cId != this.companyId){
|
|
|
+ // this.companyId = d.cId;
|
|
|
+ // storage.setItem('companyId',d.cId);
|
|
|
+ // }
|
|
|
+ if(data.id != this.projectId){
|
|
|
+ storage.setItem('projectId',data.id);
|
|
|
+ this.projectId = data.id;
|
|
|
+ }
|
|
|
+ this.roadId = obj.name;
|
|
|
+ }else{
|
|
|
+ if(data.cId != this.companyId){
|
|
|
+ this.companyId = data.cId;
|
|
|
+ storage.setItem('companyId',data.cId);
|
|
|
+ }
|
|
|
+ if(obj.id != this.projectId){
|
|
|
+ storage.setItem('projectId',obj.id);
|
|
|
+ this.projectId = obj.id;
|
|
|
+ }
|
|
|
+ this.roadId = d.name;
|
|
|
}
|
|
|
- this.roadId = obj.name;
|
|
|
this.getLightList(this.currentPage);
|
|
|
this.getProjectData(this.projectId)
|
|
|
|