Browse Source

[完善] 更新单位 ID,planID

master
陈鹏飞 4 years ago
parent
commit
6a6b118874
  1. 4
      src/app/http-interceptors/cache-token.service.ts
  2. 2
      src/app/ui/plan-assistance/plan-assistance.component.ts

4
src/app/http-interceptors/cache-token.service.ts

@ -16,8 +16,8 @@ export class CacheTokenService {
login () { login () {
return new Promise ((resolve,reject)=>{ return new Promise ((resolve,reject)=>{
sessionStorage.setItem("buildingTypeId",'5e7c9078a3050b1a840ed4ba'); //建筑类型 sessionStorage.setItem("buildingTypeId",'5e7c9078a3050b1a840ed4ba'); //建筑类型
sessionStorage.setItem("planId",'5f6957a29e91f4410005f5d7'); //预案ID sessionStorage.setItem("planId",'5fa3820af8eb762cb03c666d'); //预案ID
sessionStorage.setItem("companyId",'5f67042b9e91f4410005f55c'); //单位ID sessionStorage.setItem("companyId",'5fa35d68f8eb762cb03c662e'); //单位ID
this.http.post('/api/Account/SignIn',this.loginData).subscribe((data:any)=>{ this.http.post('/api/Account/SignIn',this.loginData).subscribe((data:any)=>{
sessionStorage.setItem("level",data.level); sessionStorage.setItem("level",data.level);
sessionStorage.setItem("token",data.token); sessionStorage.setItem("token",data.token);

2
src/app/ui/plan-assistance/plan-assistance.component.ts

@ -7514,7 +7514,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
carData = [] //科达 车辆数据 carData = [] //科达 车辆数据
//科达对接 车辆数据处理 //科达对接 车辆数据处理
carDataKeDa (e) { carDataKeDa (e) {
console.log('iframe子页面接收数据',e.data) // console.log('iframe子页面接收数据',e.data)
if (e.data.data && e.data.data.length) { if (e.data.data && e.data.data.length) {
e.data.data.forEach(element => { e.data.data.forEach(element => {
element.TemplateId = null, element.TemplateId = null,

Loading…
Cancel
Save