From b3ede423966dd48255ab7d9f65a384e505ecfb53 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sat, 14 Nov 2020 14:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=88=86=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app-routing.module.ts | 2 +- src/app/http-interceptors/cache-token.service.ts | 6 +++--- src/app/ui/data-push/data-push.component.html | 5 ++++- src/app/ui/data-push/data-push.component.ts | 2 +- src/app/ui/plan/collection-tools.component.html | 2 +- src/app/ui/plan/collection-tools.component.ts | 2 ++ src/app/ui/similar-plans/similar-plans.component.ts | 2 +- 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 9e471f0..fc7a65c 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -16,7 +16,7 @@ import { CollectionToolsComponent } from './ui/collection-tools/collection-tools const routes: Routes = [ - {path:'',redirectTo:`/plan`,pathMatch:'full',}, + {path:'',redirectTo:`/ui/plan`,pathMatch:'full',}, { path:'', component:NavigationComponent, // canActivate: [AuthGuard],//守卫验证 children:[ diff --git a/src/app/http-interceptors/cache-token.service.ts b/src/app/http-interceptors/cache-token.service.ts index e58933d..b19b0cb 100644 --- a/src/app/http-interceptors/cache-token.service.ts +++ b/src/app/http-interceptors/cache-token.service.ts @@ -15,9 +15,9 @@ export class CacheTokenService { login () { return new Promise ((resolve,reject)=>{ - // sessionStorage.setItem("buildingTypeId",'5e7c9078a3050b1a840ed4ba'); //建筑类型 - // sessionStorage.setItem("planId",'5fa3820af8eb762cb03c666d'); //预案ID - // sessionStorage.setItem("companyId",'5fa35d68f8eb762cb03c662e'); //单位ID + sessionStorage.setItem("buildingTypeId",'5e7c9078a3050b1a840ed4ba'); //建筑类型 + 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); diff --git a/src/app/ui/data-push/data-push.component.html b/src/app/ui/data-push/data-push.component.html index a73de2d..89520b1 100644 --- a/src/app/ui/data-push/data-push.component.html +++ b/src/app/ui/data-push/data-push.component.html @@ -1,11 +1,14 @@
-
+
{{item.name}}
三维预案
+
+ xxxxx +
diff --git a/src/app/ui/data-push/data-push.component.ts b/src/app/ui/data-push/data-push.component.ts index 6c8ea13..bda71aa 100644 --- a/src/app/ui/data-push/data-push.component.ts +++ b/src/app/ui/data-push/data-push.component.ts @@ -16,7 +16,7 @@ export class DataPushComponent implements OnInit { //路由配置 routers:any = [ {name:'基本信息', url: '/ui/plan/basicInfo'}, - {name:'平面图', url: '/ui/plan/planarGraph'}, + {name:'平面图', url: '/ui/plan/planarGraph',id:'B56498312911454698'}, {name:'四周毗邻', url: '/ui/plan/allaround'}, {name:'消防设施', url: '/ui/plan/fire-fighting-device'}, {name:'重点部位', url: '/ui/plan/key-site'}, diff --git a/src/app/ui/plan/collection-tools.component.html b/src/app/ui/plan/collection-tools.component.html index 03a8525..4fc2b72 100644 --- a/src/app/ui/plan/collection-tools.component.html +++ b/src/app/ui/plan/collection-tools.component.html @@ -44,7 +44,7 @@
-
+
diff --git a/src/app/ui/plan/collection-tools.component.ts b/src/app/ui/plan/collection-tools.component.ts index e017356..3a6874b 100644 --- a/src/app/ui/plan/collection-tools.component.ts +++ b/src/app/ui/plan/collection-tools.component.ts @@ -437,6 +437,7 @@ export class planComponent implements OnInit { } ngOnInit(): void { + // console.log('pppp') this.canvasData.selectPanelPoint = {} let that = this window.setTimeout(()=>{ @@ -914,6 +915,7 @@ export class planComponent implements OnInit { if (this.canvasData.isChange) { //true 数据被改动 let isTrue = confirm('是否保存当前编辑数据') if (isTrue) { //先保存数据 在切换 + this.selectSitePlanIndex = index // let isSuccess = this.saveSite()//true的时候 先保存数据 // if (isSuccess != false) { // this.selectingSitePlan = item diff --git a/src/app/ui/similar-plans/similar-plans.component.ts b/src/app/ui/similar-plans/similar-plans.component.ts index 13bd3a8..694f563 100644 --- a/src/app/ui/similar-plans/similar-plans.component.ts +++ b/src/app/ui/similar-plans/similar-plans.component.ts @@ -44,7 +44,7 @@ export class SimilarPlansComponent implements OnInit { isResponsePlans = false //默认是否是处置预案 openDeatails(){ - this.router.navigate(['similarPlans/details']) + this.router.navigate(['similarPlans'],{queryParams:{'usci':'B56498312911454698','planComponentId':'5fa3820af8eb762cb03c666d'}}) } back(){ this.isResponsePlans = false