Browse Source

[修改]修改路由地址传参key

master
邵佳豪 4 years ago
parent
commit
d06420c248
  1. 2
      src/app/ui/collection-tools/collection-tools.component.ts

2
src/app/ui/collection-tools/collection-tools.component.ts

@ -531,7 +531,7 @@ export class CollectionToolsComponent implements OnInit {
if (data.items.length) { //查询到结果时 if (data.items.length) { //查询到结果时
sessionStorage.setItem("buildingTypeId",data.items[0].buildingTypes[0].id || ''); //建筑类型 sessionStorage.setItem("buildingTypeId",data.items[0].buildingTypes[0].id || ''); //建筑类型
sessionStorage.setItem("companyId",data.items[0].id || ''); //单位ID sessionStorage.setItem("companyId",data.items[0].id || ''); //单位ID
sessionStorage.setItem("planId",paramsData.planId || ''); //建筑类型 sessionStorage.setItem("planId",paramsData.planComponentId || ''); //建筑类型
resolve('success') resolve('success')
} else { //未查询到结果时 } else { //未查询到结果时
reject('beDefeated') reject('beDefeated')

Loading…
Cancel
Save