From 5d43adee5cfdd90d6717c1784e9f07ac5589fc23 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sun, 8 Nov 2020 14:49:42 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../key-unit/key-site/key-site.component.scss | 20 +++++++++---------- .../ui/know-route/know-route.component.html | 6 +++--- .../ui/know-route/know-route.component.scss | 4 ++-- src/app/ui/know-route/know-route.component.ts | 17 +++++++++++++--- .../photoofthescene.component.html | 6 +++--- 5 files changed, 32 insertions(+), 21 deletions(-) diff --git a/src/app/key-unit/key-site/key-site.component.scss b/src/app/key-unit/key-site/key-site.component.scss index 14246e8..5129d60 100644 --- a/src/app/key-unit/key-site/key-site.component.scss +++ b/src/app/key-unit/key-site/key-site.component.scss @@ -51,13 +51,13 @@ table { max-width: 100%; max-height: 100%;} } - .previewImgBottom { - text-align: center; - height: 30px; - margin: 20px auto; - } - .imgdialog{ - width: 6.835938rem; - height: 5.859375rem; - overflow-y: auto; - } \ No newline at end of file +.previewImgBottom { + text-align: center; + height: 30px; + margin: 20px auto; +} +.imgdialog{ + width: 6.835938rem; + height: 5.859375rem; + overflow-y: auto; +} \ No newline at end of file diff --git a/src/app/ui/know-route/know-route.component.html b/src/app/ui/know-route/know-route.component.html index cd61b3f..a3637ce 100644 --- a/src/app/ui/know-route/know-route.component.html +++ b/src/app/ui/know-route/know-route.component.html @@ -10,7 +10,7 @@
添加熟悉部位: - +
添加路线: @@ -22,14 +22,14 @@
-
+
备注:
- +
\ No newline at end of file diff --git a/src/app/ui/know-route/know-route.component.scss b/src/app/ui/know-route/know-route.component.scss index bc01adc..15afd31 100644 --- a/src/app/ui/know-route/know-route.component.scss +++ b/src/app/ui/know-route/know-route.component.scss @@ -71,7 +71,7 @@ height: 75%; top: 0.058594rem; position: absolute; - left: 8%; + left: 10%; border-radius:3px; img{ width: 100%; @@ -81,7 +81,7 @@ .image{ width: 70%; height: 75%; - left: 8%; + left: 10%; top: 0.058594rem; position: absolute; border-radius:3px; diff --git a/src/app/ui/know-route/know-route.component.ts b/src/app/ui/know-route/know-route.component.ts index 8745cf0..1181f8e 100644 --- a/src/app/ui/know-route/know-route.component.ts +++ b/src/app/ui/know-route/know-route.component.ts @@ -20,8 +20,10 @@ export class KnowRouteComponent implements OnInit { constructor(public snackBar: MatSnackBar,private http: HttpClient) { } - ngOnInit(): void { + pattern:any = localStorage.getItem("pattern")//模式 + ngOnInit(): void { + } @@ -101,8 +103,17 @@ export class KnowRouteComponent implements OnInit { //熟悉部位点击事件 addRoute(event,item){ - this.knowRoute.push({name:event.target.innerHTML,idnum:"🠖"}) - this.uploadSucced.push({name:item.name,src:"",smark:""}) + if(this.pattern == 'edit'){ + + this.knowRoute.push({name:event.target.innerHTML,idnum:"🠖"}) + this.uploadSucced.push({name:item.name,src:"",smark:""}) + }else{ + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('处于查看模式','确定',config); + } + } savekey diff --git a/src/app/ui/photoofthescene/photoofthescene.component.html b/src/app/ui/photoofthescene/photoofthescene.component.html index 1df8dfa..74e4567 100644 --- a/src/app/ui/photoofthescene/photoofthescene.component.html +++ b/src/app/ui/photoofthescene/photoofthescene.component.html @@ -24,7 +24,7 @@ -
+
@@ -48,7 +48,7 @@ -
+
@@ -70,7 +70,7 @@
-
+