From b2fa1215d819f621e436feb0a3a7b38efc74846f Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Wed, 13 Jan 2021 14:34:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=88=A0=E9=99=A4]=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=99=A4H5=E5=B7=A5=E5=85=B7=E4=B9=8B=E5=A4=96=20=E6=80=BB?= =?UTF-8?q?=E5=B9=B3=E5=9B=BE=E6=A8=A1=E5=9D=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../allaround/allaround.component.html | 37 -------- .../key-unit/allaround/allaround.component.ts | 9 +- .../fire-fighting-device.component.html | 94 ------------------- .../fire-fighting-device.component.ts | 10 +- .../fire-fighting-device.component.html | 94 ------------------- .../fire-fighting-device.component.ts | 10 +- .../function-division.component.html | 53 ----------- .../function-division.component.ts | 6 +- .../function-division.component.html | 51 +--------- .../function-division.component.ts | 7 +- .../key-site-look/key-site.component.html | 57 ----------- .../key-site-look/key-site.component.ts | 7 +- .../key-unit/key-site/key-site.component.html | 57 ----------- .../key-unit/key-site/key-site.component.ts | 7 +- 14 files changed, 44 insertions(+), 455 deletions(-) diff --git a/src/app/key-unit/allaround/allaround.component.html b/src/app/key-unit/allaround/allaround.component.html index 9d94ca3..fd54eb2 100644 --- a/src/app/key-unit/allaround/allaround.component.html +++ b/src/app/key-unit/allaround/allaround.component.html @@ -1,42 +1,5 @@
- -
- -
-
- -
-
- -
-
- - -
-
- - -
-
- - - -
-
- -

暂无数据,请前往平面图进行相关数据录入

-
-
diff --git a/src/app/key-unit/allaround/allaround.component.ts b/src/app/key-unit/allaround/allaround.component.ts index 4702938..27693f8 100644 --- a/src/app/key-unit/allaround/allaround.component.ts +++ b/src/app/key-unit/allaround/allaround.component.ts @@ -17,7 +17,6 @@ export class AllaroundComponent implements OnInit { constructor(private http: HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar,private route:ActivatedRoute,) { } ngOnInit(): void { - this.getAllCompany() this.getAllBuilding() } @@ -42,7 +41,13 @@ export class AllaroundComponent implements OnInit { this.AllBuilding.forEach(element => { element.allImgs = [] }); - this.getAllArchitecture()} + this.getAllArchitecture() + } else { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('暂无建筑数据','确定',config); + } }) } diff --git a/src/app/key-unit/fire-fighting-device-look/fire-fighting-device.component.html b/src/app/key-unit/fire-fighting-device-look/fire-fighting-device.component.html index 44661db..ee701d0 100644 --- a/src/app/key-unit/fire-fighting-device-look/fire-fighting-device.component.html +++ b/src/app/key-unit/fire-fighting-device-look/fire-fighting-device.component.html @@ -1,99 +1,5 @@
- -
- -

暂无数据,请完善单位基本信息

-
-

{{item.name}}

-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - -
{{header}}
{{body[header]? body[header] : '暂无数据'}}
-
-
-

楼层/区域名称: {{tableMsg.name? tableMsg.name: '暂无名称'}}

- - - - - - - -
{{header}}
{{body[header]? body[header] : '暂无数据'}}
-
-
-
- -
-
-
- -
- - - - -

{{item.name}}

- -
-
- - - - - - - {{radio.name}} - -
-
- -
-
- -
-
diff --git a/src/app/key-unit/fire-fighting-device-look/fire-fighting-device.component.ts b/src/app/key-unit/fire-fighting-device-look/fire-fighting-device.component.ts index ddaae08..ce55913 100644 --- a/src/app/key-unit/fire-fighting-device-look/fire-fighting-device.component.ts +++ b/src/app/key-unit/fire-fighting-device-look/fire-fighting-device.component.ts @@ -21,7 +21,6 @@ export class FireFightingDeviceLookComponent implements OnInit { constructor(private router:Router,private route:ActivatedRoute,public http: HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar) { } ngOnInit(): void { - this.getCompanyInformation() this.getAllBuilding() } @@ -234,7 +233,14 @@ export class FireFightingDeviceLookComponent implements OnInit { companyId:companyId }}).subscribe((data:any)=>{ this.allBuildingGrouping = data - if (this.allBuildingGrouping.length) { this.getAllBuildingFacilities() } + if (this.allBuildingGrouping.length) { + this.getAllBuildingFacilities() + } else { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('暂无建筑数据','确定',config); + } }) } diff --git a/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.html b/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.html index 1bf4c41..2ccf727 100644 --- a/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.html +++ b/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.html @@ -1,99 +1,5 @@
- -
- -

暂无数据,请完善单位基本信息

-
-

{{item.name}}

-
- add_circle_outline - description - delete -
-
- - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - -
{{header}}
{{body[header]? body[header] : '暂无数据'}}
-
-
-

楼层/区域名称: {{tableMsg.name? tableMsg.name: '暂无名称'}}

- - - - - - - -
{{header}}
{{body[header]? body[header] : '暂无数据'}}
-
-
-
- -
-
-
- -
- - - - -

{{item.name}}

- description -
-
- - - - - - - {{radio.name}} - -
-
- -
-
- -
-
diff --git a/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts b/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts index a3be170..8393abf 100644 --- a/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts +++ b/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts @@ -22,7 +22,6 @@ export class FireFightingDeviceComponent implements OnInit { constructor(private tabbarService: TabbarAndScoreService,private router:Router,private route:ActivatedRoute,public http: HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar) { } ngOnInit(): void { - this.getCompanyInformation() this.getAllBuilding() } @@ -233,7 +232,14 @@ export class FireFightingDeviceComponent implements OnInit { companyId:companyId }}).subscribe((data:any)=>{ this.allBuildingGrouping = data - if (this.allBuildingGrouping.length) { this.getAllBuildingFacilities() } + if (this.allBuildingGrouping.length) { + this.getAllBuildingFacilities() + } else { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('暂无建筑数据','确定',config); + } }) } diff --git a/src/app/key-unit/function-division-look/function-division.component.html b/src/app/key-unit/function-division-look/function-division.component.html index 21de153..93cde75 100644 --- a/src/app/key-unit/function-division-look/function-division.component.html +++ b/src/app/key-unit/function-division-look/function-division.component.html @@ -1,59 +1,6 @@
-
- -
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - 区域 - - - - 面积 - - - - - 基本情况 - -
-

暂无数据

-
-
-
diff --git a/src/app/key-unit/function-division-look/function-division.component.ts b/src/app/key-unit/function-division-look/function-division.component.ts index 372b02b..c9e0ccc 100644 --- a/src/app/key-unit/function-division-look/function-division.component.ts +++ b/src/app/key-unit/function-division-look/function-division.component.ts @@ -16,7 +16,6 @@ export class FunctionDivisionLookComponent implements OnInit { ngOnInit(): void { this.companyId = this.route.snapshot.queryParams.id - this.getAllCompany() this.getAllBuilding() } @@ -121,6 +120,11 @@ export class FunctionDivisionLookComponent implements OnInit { element.functionalZoning = null }); this.getAllBuildingFunctionalZoning() + } else { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('暂无建筑数据','确定',config); } }) } diff --git a/src/app/key-unit/function-division/function-division.component.html b/src/app/key-unit/function-division/function-division.component.html index ce618bf..9e50317 100644 --- a/src/app/key-unit/function-division/function-division.component.html +++ b/src/app/key-unit/function-division/function-division.component.html @@ -1,59 +1,10 @@
-
+
add_circle_outline
- -
-
- add_circle_outline - description - delete -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - 区域 - - - - 面积 - - - - - 基本情况 - -
-

暂无数据

-
-
-
diff --git a/src/app/key-unit/function-division/function-division.component.ts b/src/app/key-unit/function-division/function-division.component.ts index 7da8809..2611f5e 100644 --- a/src/app/key-unit/function-division/function-division.component.ts +++ b/src/app/key-unit/function-division/function-division.component.ts @@ -17,7 +17,6 @@ export class FunctionDivisionComponent implements OnInit { ngOnInit(): void { this.companyId = this.route.snapshot.queryParams.id - this.getAllCompany() this.getAllBuilding() } @@ -49,7 +48,6 @@ export class FunctionDivisionComponent implements OnInit { //保存单位功能分区属性 preservation () { let companyId = this.route.snapshot.queryParams.id - // console.log(123,companyId) if (this.companyFunctionalZoning.length) { this.http.post('/api/CompanyFunctionalDivisions/Batch',this.companyFunctionalZoning,{params:{ companyId:companyId @@ -124,6 +122,11 @@ export class FunctionDivisionComponent implements OnInit { element.functionalZoning = null }); this.getAllBuildingFunctionalZoning() + } else { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('暂无建筑数据','确定',config); } }) } diff --git a/src/app/key-unit/key-site-look/key-site.component.html b/src/app/key-unit/key-site-look/key-site.component.html index 8af5827..bdb2718 100644 --- a/src/app/key-unit/key-site-look/key-site.component.html +++ b/src/app/key-unit/key-site-look/key-site.component.html @@ -1,62 +1,5 @@
- -
- -
-

重点部位情况

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
重点部位名称 - {{element.name}} - 重点部位所在位置 - {{element.position}} - 建筑结构 - {{element.structure}} - 使用性质 - {{element.nature}} - 主要危险性 - {{element.hazards}} - 图片 - 查看图片 -
-

暂无数据,请前往平面图进行相关数据录入

-
-
-

重点提示

- -

- -

-
- -
-
diff --git a/src/app/key-unit/key-site-look/key-site.component.ts b/src/app/key-unit/key-site-look/key-site.component.ts index ba659df..053dc20 100644 --- a/src/app/key-unit/key-site-look/key-site.component.ts +++ b/src/app/key-unit/key-site-look/key-site.component.ts @@ -19,8 +19,6 @@ export class KeySiteLookComponent implements OnInit { displayedColumns: string[] = ['mainname', 'position', 'construction', 'nature', 'danger', 'img']; ngOnInit(): void { - this.getCompanyPostion() - this.getCompanyTips() this.getAllBuilding() } @@ -59,6 +57,11 @@ export class KeySiteLookComponent implements OnInit { element.companyInput = null }) //建筑重点提示数据 this.getAllBuildingPositon() this.getAllBuildingTips() + } else { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('暂无建筑数据','确定',config); } }) } diff --git a/src/app/key-unit/key-site/key-site.component.html b/src/app/key-unit/key-site/key-site.component.html index 4adf51d..c79f635 100644 --- a/src/app/key-unit/key-site/key-site.component.html +++ b/src/app/key-unit/key-site/key-site.component.html @@ -1,62 +1,5 @@
- -
- -
-

重点部位情况

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
重点部位名称 - {{element.name}} - 重点部位所在位置 - {{element.position}} - 建筑结构 - {{element.structure}} - 使用性质 - {{element.nature}} - 主要危险性 - {{element.hazards}} - 图片 - 查看图片 -
-

暂无数据,请前往平面图进行相关数据录入

-
-
-

重点提示

- description -

- -

-
- -
-
diff --git a/src/app/key-unit/key-site/key-site.component.ts b/src/app/key-unit/key-site/key-site.component.ts index df76261..b72badc 100644 --- a/src/app/key-unit/key-site/key-site.component.ts +++ b/src/app/key-unit/key-site/key-site.component.ts @@ -20,8 +20,6 @@ export class KeySiteComponent implements OnInit { displayedColumns: string[] = ['mainname', 'position', 'construction', 'nature', 'danger', 'img']; ngOnInit(): void { - this.getCompanyPostion() - this.getCompanyTips() this.getAllBuilding() } @@ -60,6 +58,11 @@ export class KeySiteComponent implements OnInit { element.companyInput = null }) //建筑重点提示数据 this.getAllBuildingPositon() this.getAllBuildingTips() + } else { + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('暂无建筑数据','确定',config); } }) }