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 () {
return new Promise ((resolve,reject)=>{
sessionStorage.setItem("buildingTypeId",'5e7c9078a3050b1a840ed4ba'); //建筑类型
sessionStorage.setItem("planId",'5f6957a29e91f4410005f5d7'); //预案ID
sessionStorage.setItem("companyId",'5f67042b9e91f4410005f55c'); //单位ID
sessionStorage.setItem("planId",'5fa3820af8eb762cb03c666d'); //预案ID
sessionStorage.setItem("companyId",'5fa35d68f8eb762cb03c662e'); //单位ID
this.http.post('/api/Account/SignIn',this.loginData).subscribe((data:any)=>{
sessionStorage.setItem("level",data.level);
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 = [] //科达 车辆数据
//科达对接 车辆数据处理
carDataKeDa (e) {
console.log('iframe子页面接收数据',e.data)
// console.log('iframe子页面接收数据',e.data)
if (e.data.data && e.data.data.length) {
e.data.data.forEach(element => {
element.TemplateId = null,

Loading…
Cancel
Save