From fa86adfe87c91a5a6d1dca69639f2ef50c63d87d Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Tue, 6 Apr 2021 08:43:51 +0800
Subject: [PATCH 1/3] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E9=99=A4=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=E5=88=86=E6=9E=90=E9=A1=B5=E9=9D=A2=E5=85=B6=E4=BB=96?=
=?UTF-8?q?=E6=89=80=E6=9C=89=E9=A1=B5=E9=9D=A2pad=E7=AB=AF=E9=80=82?=
=?UTF-8?q?=E9=85=8D=E4=BB=A5=E5=8F=8Aui=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/app-routing.module.ts | 3 +
src/app/app.component.ts | 16 +++++-
src/app/app.module.ts | 4 +-
.../fire-force/fire-force.component.html | 5 +-
.../fire-force/fire-force.component.scss | 19 ++++++
.../fire-force/fire-force.component.ts | 6 ++
.../linkage-forces.component.html | 5 +-
.../linkage-forces.component.scss | 18 ++++++
.../linkage-forces.component.ts | 6 ++
.../water-collection.component.html | 5 +-
.../water-collection.component.scss | 19 ++++++
.../water-collection.component.ts | 8 +++
.../allaround/allaround.component.scss | 42 +++++++++++---
.../fire-facilities.component.scss | 23 +++++++-
.../realistic-picture.component.scss | 31 +++++++++-
.../gis-labeling/gis-labeling.component.html | 12 ++--
.../gis-labeling/gis-labeling.component.scss | 38 +++++++++---
.../key-site-look/key-site.component.scss | 30 +++++++++-
.../plan-list/openPlanTool.scss | 8 ++-
.../plan-list/plan-list.component.scss | 2 +-
.../realistic-picture.component.scss | 31 +++++++++-
src/app/home/home.component.ts | 1 +
.../allaround/allaround.component.scss | 32 +++++++++--
.../basicinfo/basicinfo.component.html | 14 ++---
.../basicinfo/basicinfo.component.scss | 13 ++++-
.../fire-fighting-device.component.scss | 54 +++++++++++++++---
.../fire-fighting-device.component.scss | 54 +++++++++++++++---
.../key-site-look/key-site.component.scss | 32 ++++++++++-
.../key-unit/key-site/key-site.component.scss | 32 ++++++++++-
.../key-unit-management.component.ts | 1 +
.../realistic-picture.component.scss | 32 ++++++++++-
.../realistic-picture.component.scss | 31 +++++++++-
.../router-gis/router-gis.component.scss | 12 +++-
.../water-road/water-road.component.scss | 2 +-
src/app/navigation/navigation.component.html | 2 +-
src/app/navigation/navigation.component.scss | 5 ++
.../delete-two/delete-two.component.scss | 2 +-
.../home/home.component.html | 4 +-
.../statistic-analysis/home/home.component.ts | 49 +++++++++++-----
.../scheduled-updates.component.scss | 2 +-
src/app/test/test.component.html | 1 +
src/app/test/test.component.scss | 0
src/app/test/test.component.spec.ts | 25 ++++++++
src/app/test/test.component.ts | 17 ++++++
.../collection-tools.component.scss | 2 +-
.../collection-tools.component.scss | 23 +++++++-
.../editingFireControl.html | 2 +-
.../fire-fighting-template.component.scss | 33 ++++++++++-
.../newFireFighting.html | 2 +-
.../material-bank.component.scss | 9 ++-
.../material-bank/material-bank.component.ts | 2 +-
src/assets/css/newStyle.css | 27 ++++++++-
src/assets/images/向下收起.png | Bin 0 -> 890 bytes
src/index.html | 1 +
src/styles.scss | 5 ++
55 files changed, 736 insertions(+), 118 deletions(-)
create mode 100644 src/app/test/test.component.html
create mode 100644 src/app/test/test.component.scss
create mode 100644 src/app/test/test.component.spec.ts
create mode 100644 src/app/test/test.component.ts
create mode 100644 src/assets/images/向下收起.png
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index cb3680e..a034b60 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -17,6 +17,7 @@ import { PlanPassComponent } from '../app/plan-audit/plan-pass/plan-pass.compone
import {AuthGuard} from './auth.guard'
import {MTokenK1Component} from './m-token-k1/m-token-k1.component' //K1秘钥
import {ViewUnitDetailsPlanComponent} from './key-unit/view-unit-details-plan/view-unit-details-plan.component'
+import { TestComponent } from './test/test.component';
const routes: Routes = [
@@ -40,6 +41,8 @@ const routes: Routes = [
{ path:'keyUnit/viewunitinfoplans', component:ViewUnitDetailsPlanComponent,canActivate: [AuthGuard],},
{path:'getNoMToken',component:MTokenK1Component, canActivate: [AuthGuard],}, //K1秘钥验证失败是跳转页面
{ path: 'planAudit/planpass', component: PlanPassComponent },
+ { path: 'test', component: TestComponent },
+
];
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 254bcde..9ee49f3 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -37,7 +37,21 @@ export class AppComponent {
this.token.startUp()
})
}
-
+ // console.log(1234,document.documentElement.clientWidth)
+ function addMeta(name,content){//手动添加mate标签
+
+ let meta = document.createElement('meta');
+
+ meta.content=content;
+
+ meta.name=name;
+
+ document.getElementsByTagName('head')[0].appendChild(meta);
+
+ }
+ if(document.documentElement.clientWidth < 800){
+ addMeta('viewport','initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, user-scalable=no,uc-fitscreen=yes,viewport-fit=cover')
+ }
}
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index acf3ce5..d09bb8d 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -22,12 +22,14 @@ import { CountdownModule } from 'ngx-countdown'; //倒计时插件
import { GISManagementModule } from './gis-management/gis-management.module';
import { DataCollectionModule } from './data-collection/data-collection.module';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
+import { TestComponent } from './test/test.component';
@NgModule({
declarations: [
AppComponent,
HomeComponent,
- MTokenK1Component
+ MTokenK1Component,
+ TestComponent
],
imports: [
BrowserModule,
diff --git a/src/app/data-collection/fire-force/fire-force.component.html b/src/app/data-collection/fire-force/fire-force.component.html
index ac53a0a..1a3a16d 100644
--- a/src/app/data-collection/fire-force/fire-force.component.html
+++ b/src/app/data-collection/fire-force/fire-force.component.html
@@ -105,7 +105,10 @@
-
+
+
+

+
请等待...
diff --git a/src/app/data-collection/fire-force/fire-force.component.scss b/src/app/data-collection/fire-force/fire-force.component.scss
index 76e67df..2e6718b 100644
--- a/src/app/data-collection/fire-force/fire-force.component.scss
+++ b/src/app/data-collection/fire-force/fire-force.component.scss
@@ -270,7 +270,15 @@
width: 100%;
height:500px;
position: relative;
+ transition: height 0.5s;
+ .putDown{
+ position: absolute;
+ right: 0;
+ top: -40px;
+ cursor: pointer;
+ }
.tabsbox{
+ margin-top: 10px;
width: 100%;
height: 40px;
overflow: hidden;
@@ -515,6 +523,10 @@
}
}
}
+ .noHeight{
+ height: 0px;
+ transition: height 0.5s;
+ }
}
@@ -611,7 +623,9 @@
}
.detailsbox{
height:338px;
+ transition: height 0.5s;
.tabsbox{
+ margin-top: 5px;
height: 38px;
line-height: 38px;
.tabs{
@@ -642,6 +656,7 @@
}
.contant{
height:300px;
+
p{
padding-left: 20px;
font-size: 14px;
@@ -672,5 +687,9 @@
}
}
}
+ .noHeight{
+ height: 0px;
+ transition: height 0.5s;
+ }
}
}
\ No newline at end of file
diff --git a/src/app/data-collection/fire-force/fire-force.component.ts b/src/app/data-collection/fire-force/fire-force.component.ts
index 077a144..1801063 100644
--- a/src/app/data-collection/fire-force/fire-force.component.ts
+++ b/src/app/data-collection/fire-force/fire-force.component.ts
@@ -1163,6 +1163,12 @@ export class FireForceComponent implements OnInit {
dialogRef.afterClosed().subscribe();
}
}
+
+ //收起展开列表
+ isPutDown:boolean = false
+ putDown(){
+ this.isPutDown = !this.isPutDown
+ }
}
diff --git a/src/app/data-collection/linkage-forces/linkage-forces.component.html b/src/app/data-collection/linkage-forces/linkage-forces.component.html
index 37e0431..014e2b2 100644
--- a/src/app/data-collection/linkage-forces/linkage-forces.component.html
+++ b/src/app/data-collection/linkage-forces/linkage-forces.component.html
@@ -83,7 +83,7 @@
-
+
请等待...
@@ -97,6 +97,9 @@
下载中...({{progressBarValue}}%)
+
+

+
diff --git a/src/app/data-collection/linkage-forces/linkage-forces.component.scss b/src/app/data-collection/linkage-forces/linkage-forces.component.scss
index ddf644c..3aea706 100644
--- a/src/app/data-collection/linkage-forces/linkage-forces.component.scss
+++ b/src/app/data-collection/linkage-forces/linkage-forces.component.scss
@@ -233,6 +233,13 @@
width: 100%;
height:500px;
position: relative;
+ transition: height 0.5s;
+ .putDown{
+ position: absolute;
+ right: 0;
+ top: -40px;
+ cursor: pointer;
+ }
.tabsbox{
width: 100%;
height: 40px;
@@ -242,6 +249,7 @@
display: flex;
justify-content: space-between;
font-size: 15px;
+ margin-top: 10px;
.tabs{
div{
float: left;
@@ -479,6 +487,10 @@
}
}
}
+ .noHeight{
+ height: 0px;
+ transition: height 0.5s;
+ }
}
@@ -598,9 +610,11 @@
}
.detailsbox{
height:338px;
+ transition: height 0.5s;
.tabsbox{
height: 38px;
line-height: 38px;
+ margin-top: 5px;
.tabs{
div{
width: 90px;
@@ -659,5 +673,9 @@
}
}
}
+ .noHeight{
+ height: 0px;
+ transition: height 0.5s;
+ }
}
}
\ No newline at end of file
diff --git a/src/app/data-collection/linkage-forces/linkage-forces.component.ts b/src/app/data-collection/linkage-forces/linkage-forces.component.ts
index f113b29..c909728 100644
--- a/src/app/data-collection/linkage-forces/linkage-forces.component.ts
+++ b/src/app/data-collection/linkage-forces/linkage-forces.component.ts
@@ -896,6 +896,12 @@ export class LinkageForcesComponent implements OnInit {
}
}
+
+ //收起展开列表
+ isPutDown:boolean = false
+ putDown(){
+ this.isPutDown = !this.isPutDown
+ }
}
diff --git a/src/app/data-collection/water-collection/water-collection.component.html b/src/app/data-collection/water-collection/water-collection.component.html
index 2d07aa3..265fa73 100644
--- a/src/app/data-collection/water-collection/water-collection.component.html
+++ b/src/app/data-collection/water-collection/water-collection.component.html
@@ -70,7 +70,10 @@
-
+
+
+

+
diff --git a/src/app/data-collection/water-collection/water-collection.component.scss b/src/app/data-collection/water-collection/water-collection.component.scss
index dd72757..5aee980 100644
--- a/src/app/data-collection/water-collection/water-collection.component.scss
+++ b/src/app/data-collection/water-collection/water-collection.component.scss
@@ -217,6 +217,14 @@
.detailsbox{
width: 100%;
height:500px;
+ transition: height 0.5s;
+ position: relative;
+ .putDown{
+ position: absolute;
+ right: 0;
+ top: -40px;
+ cursor: pointer;
+ }
.tabsbox{
width: 100%;
height: 40px;
@@ -224,6 +232,7 @@
display: flex;
justify-content: space-between;
font-size: 15px;
+ margin-top: 10px;
.tabs{
div{
float: left;
@@ -323,6 +332,10 @@
}
}
}
+ .noHeight{
+ height: 0px;
+ transition: height 0.5s;
+ }
}
.addWaterBox{
@@ -417,8 +430,10 @@
}
.detailsbox{
height:338px;
+ transition: height 0.5s;
.tabsbox{
height: 38px;
+ margin-top: 5px;
line-height: 38px;
.tabs{
div{
@@ -469,6 +484,10 @@
}
}
}
+ .noHeight{
+ height: 0px;
+ transition: height 0.5s;
+ }
}
}
diff --git a/src/app/data-collection/water-collection/water-collection.component.ts b/src/app/data-collection/water-collection/water-collection.component.ts
index 3e6b7a7..9be0559 100644
--- a/src/app/data-collection/water-collection/water-collection.component.ts
+++ b/src/app/data-collection/water-collection/water-collection.component.ts
@@ -134,6 +134,7 @@ export class WaterCollectionComponent implements OnInit {
}
ngOnInit(): void {
+ console.log(88888,navigator.userAgent)
this.getAllWaterData()
setTimeout(() => {
this.createMap()
@@ -647,6 +648,13 @@ export class WaterCollectionComponent implements OnInit {
})//取消
}
}
+
+
+ //收起展开列表
+ isPutDown:boolean = false
+ putDown(){
+ this.isPutDown = !this.isPutDown
+ }
}
diff --git a/src/app/gis-management/allaround/allaround.component.scss b/src/app/gis-management/allaround/allaround.component.scss
index 9f85c28..dd828a2 100644
--- a/src/app/gis-management/allaround/allaround.component.scss
+++ b/src/app/gis-management/allaround/allaround.component.scss
@@ -114,15 +114,41 @@
.rotateA {transform: rotate(90deg) scale(0.75);}
.rotateB {transform: rotate(180deg)}
.rotateC {transform: rotate(270deg) scale(0.75);}
-@media screen and (max-width:1400px){
+@media screen and (max-width:1200px){
.bigimgbox{
- width:920px;
- height: 600px;
+ width: 880px;
+ height: 580px;
+ //预览图片
+ .previewImgBox {
+ width: 800px;
+ height: 475px;
+ text-align: center;
+ }
}
- //预览图片
- .previewImgBox {
- width: 800px;
- height: 500px;
- text-align: center;
+}
+@media screen and (min-width:1200px) and (max-width:1400px){
+ .bigimgbox{
+ width:880px;
+ height: 610px;
+ //预览图片
+ .previewImgBox {
+ width: 800px;
+ height: 500px;
+ text-align: center;
+ }
+ }
+
+}
+@media screen and (min-width:1400px) and (max-width:1600px){
+ .bigimgbox{
+ width:1110px;
+ height: 660px;
+ //预览图片
+ .previewImgBox {
+ width: 900px;
+ height: 550px;
+ text-align: center;
+ }
}
+
}
diff --git a/src/app/gis-management/fire-facilities/fire-facilities.component.scss b/src/app/gis-management/fire-facilities/fire-facilities.component.scss
index 537daea..180645e 100644
--- a/src/app/gis-management/fire-facilities/fire-facilities.component.scss
+++ b/src/app/gis-management/fire-facilities/fire-facilities.component.scss
@@ -220,14 +220,31 @@
}
}
}
- @media screen and (max-width:1300px){
+ @media screen and (max-width:1200px){
.imageList{
- width:911px;
- height:570px;
+ width: 880px;
+ height: 580px;
+ .imageListBox {
+ .imagesBox{
+ width:262px;
+ }
+ }
+ }
+ }
+ @media screen and (min-width:1200px) and (max-width:1400px){
+ .imageList{
+ width: 880px;
+ height: 610px;
.imageListBox {
.imagesBox{
width:275px;
}
}
}
+ }
+ @media screen and (min-width:1400px) and (max-width:1600px){
+ .imageList{
+ width:1110px;
+ height: 660px;
+ }
}
\ No newline at end of file
diff --git a/src/app/gis-management/fire-facilities/realistic-picture.component.scss b/src/app/gis-management/fire-facilities/realistic-picture.component.scss
index d340e20..9858e7f 100644
--- a/src/app/gis-management/fire-facilities/realistic-picture.component.scss
+++ b/src/app/gis-management/fire-facilities/realistic-picture.component.scss
@@ -177,10 +177,22 @@
margin: 20px auto;
}
}
-@media screen and (max-width:1300px){
+@media screen and (max-width:1200px){
.imgDiaLogBox{
- width: 920px;
- height: 600px;
+ width: 880px;
+ height: 580px;
+ //预览图片
+ .previewImgBox {
+ width: 800px;
+ height: 475px;
+ text-align: center;
+ }
+ }
+}
+@media screen and (min-width:1200px) and (max-width:1400px){
+ .imgDiaLogBox{
+ width: 880px;
+ height: 610px;
//预览图片
.previewImgBox {
width: 800px;
@@ -189,4 +201,17 @@
}
}
}
+@media screen and (min-width:1400px) and (max-width:1600px){
+ .imgDiaLogBox{
+ width:1110px;
+ height: 660px;
+ //预览图片
+ .previewImgBox {
+ width: 900px;
+ height: 550px;
+ text-align: center;
+ }
+ }
+}
+
diff --git a/src/app/gis-management/gis-labeling/gis-labeling.component.html b/src/app/gis-management/gis-labeling/gis-labeling.component.html
index 19fe6b8..bb452b1 100644
--- a/src/app/gis-management/gis-labeling/gis-labeling.component.html
+++ b/src/app/gis-management/gis-labeling/gis-labeling.component.html
@@ -22,18 +22,18 @@