From a79cb271b5f018b7322be6290dd9f9f3f46ca2d7 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Fri, 5 Mar 2021 08:54:53 +0800 Subject: [PATCH 01/10] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E6=B0=B4=E6=BA=90=E5=AE=A1=E6=A0=B8=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AFbug?= =?UTF-8?q?=EF=BC=8C=E9=99=90=E5=88=B6=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../water-collection.component.html | 16 ++++-- .../water-collection.component.scss | 2 +- .../water-collection.component.ts | 57 ++++++++++++++----- .../basicinfo/basicinfo.component.html | 2 +- .../key-unit/basicinfo/basicinfo.component.ts | 36 ++++++++++-- 5 files changed, 87 insertions(+), 26 deletions(-) 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 2782ab8..f46cd80 100644 --- a/src/app/data-collection/water-collection/water-collection.component.html +++ b/src/app/data-collection/water-collection/water-collection.component.html @@ -79,13 +79,17 @@
类型 | -操作 | +名称 | +操作 | 所属组织 | 审核状态 | 提交人 | @@ -102,7 +103,8 @@ {{item.contentType=='1'?'Ⅰ级预案':item.contentType=='2'?'Ⅱ级预案':item.contentType=='3'?'Ⅲ级预案':item.contentType=='4'?'Ⅳ级预案':item.contentType=='5'? 'Ⅴ级预案':item.contentType=='6'?'应急预案(国家级)':item.contentType=='7'?'应急预案(市级)':item.contentType=='8'?'类型预案':item.contentType=='11'?'重点单位':'消防车辆'}} -{{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}} | +{{item.title}} | +{{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}} | {{item.verifyOrganizationName}} | {{item.verifyState=='0'?'待初审':item.verifyState=='1'? '初审通过':item.verifyState=='2'?'初审驳回':item.verifyState=='3'?'待终审':item.verifyState=='4'?'终审通过':'终审驳回'}} | diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.html b/src/app/plan-audit/wait-examineer/wait-examineer.component.html index fbfe6c5..4000dcb 100644 --- a/src/app/plan-audit/wait-examineer/wait-examineer.component.html +++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.html @@ -45,7 +45,8 @@
---|
类型 | -操作 | +名称 | +操作 | 所属组织 | 审核状态 | 提交人 | @@ -59,7 +60,8 @@{{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}} | +{{item.title}} | +{{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}} | {{item.verifyOrganizationName}} | {{item.verifyState=='0'?'待初审':item.verifyState=='1'? '初审通过':item.verifyState=='2'?'初审驳回':item.verifyState=='3'?'待终审':item.verifyState=='4'?'终审通过':'终审驳回'}} | diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts index ab4927a..a671f8b 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts @@ -244,16 +244,17 @@ export class EntryPlanLookComponent implements OnInit { } //删除预案 deletePlan(plandata){ - + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 let isTrue = confirm('您确定要删除吗') if (isTrue) { if(plandata.planType == 1){//如果删除的是二维预案 this.http.delete(`/api/PlanComponents2D/${plandata.id}`).subscribe(data=>{ - const config = new MatSnackBarConfig(); - config.verticalPosition = 'top'; - config.duration = 3000 this.snackBar.open('删除成功!','确定',config); this.getAllPlanComponents() + },err => { + this.snackBar.open(err,'确定',config); }) }else{ this.http.delete(`/api/PlanComponents/${plandata.id}`).subscribe(data=>{ @@ -262,6 +263,8 @@ export class EntryPlanLookComponent implements OnInit { config.duration = 3000 this.snackBar.open('删除成功!','确定',config); this.getAllPlanComponents() + },err => { + this.snackBar.open(err,'确定',config); }) } } From 0f8275012155f0ee4946a5bce34ae0c187f56acc Mon Sep 17 00:00:00 2001 From: chenjingyu
---|
名称 | +{{element.name}} | +修改时间 | +{{element.modifiedTime|date:'yyyy-MM-dd'}} | +消防救援站 | +{{element.organizationName}} | +类型 | +{{element.buildingTypes.length != 0 ? element.buildingTypes[0].name : ''}} | +操作 | ++ 详情 + | +
---|
{{item.contentType=='1'?'Ⅰ级预案':item.contentType=='2'?'Ⅱ级预案':item.contentType=='3'?'Ⅲ级预案':item.contentType=='4'?'Ⅳ级预案':item.contentType=='5'?
diff --git a/src/app/plan-audit/plan-record/plan-record.component.scss b/src/app/plan-audit/plan-record/plan-record.component.scss
index 958df3b..ed22892 100644
--- a/src/app/plan-audit/plan-record/plan-record.component.scss
+++ b/src/app/plan-audit/plan-record/plan-record.component.scss
@@ -34,17 +34,20 @@
.tablediv{
width: 100%;
height: 70%;
+ padding-bottom: 20px;
.tbodycss{
overflow-y: auto;
- height: 600px;
+ height:550px;
width: 100%;
+ .selectedTr{
+ background-color: #b3d3ee;
+ }
}
table{
//margin: 20px 20px;
margin-left: 10px;
margin-right: 10px;
width: 97.5%;
-
//border: 1px solid #2196F3;
thead{
height:48px;
diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.scss b/src/app/plan-audit/wait-examineer/wait-examineer.component.scss
index 5f58468..f3a7d52 100644
--- a/src/app/plan-audit/wait-examineer/wait-examineer.component.scss
+++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.scss
@@ -48,7 +48,7 @@
height: 70%;
.tbodycss{
overflow-y: auto;
- height: 700px;
+ height: 94%;
width: 100%;
.selectedTr{
background-color: #b3d3ee;
@@ -58,6 +58,7 @@
margin-left:10px;
margin-right: 10px;
width: 97.5%;
+ //margin-bottom: 10px;
thead{
height:48px;
color: #FFFFFF;
diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts
index bd53afe..f8fa6fa 100644
--- a/src/app/statistic-analysis/echarts-data.service.ts
+++ b/src/app/statistic-analysis/echarts-data.service.ts
@@ -409,35 +409,36 @@ export class EchartsDataService {
BuildingTypeId:datas.id
}
//var res
- this.http.get("/api/StatisticsAnalysis/BuildingTypes",{params:paramsdata}).subscribe((data:any)=>{
+ this.http.get("/api/StatisticsAnalysis",{params:paramsdata}).subscribe((data:any)=>{
this.tishiData=data
console.log(this.tishiData)
- this.res= ' '+datas.name+' '
+
+ })
+ this.res= ''+datas.name+' '
this.res+='
-
diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
index eb986b5..9f6da9a 100644
--- a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
+++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
@@ -155,9 +155,10 @@ export class WaitExamineerComponent implements OnInit {
viewer//全景图对象
waterData:any//需要传递给子组件的水源信息
LinkageForceDetailInfo:any//需要传递给子组件的联动力量信息
+ fireForceDetailInfo:any//需要传递给子组件的消防力量信息
+ postlevel:any
radioClick(e,item){
this.showtype = -1
- console.log(item)
this.organizationName=''
this.id=item.id
this.fetchUrl=''
@@ -170,19 +171,26 @@ export class WaitExamineerComponent implements OnInit {
}else if(item.contentType == 12){
//水源
this.http.get(`/api/WaterSources/${item.itemId}`).subscribe((data)=>{
- console.log('水源',data)
this.waterData = data
this.showtype = 12
})
}else if(item.contentType == 13){
//消防力量
- this.http.get(`/api/LinkageForces/${item.itemId}`).subscribe((data)=>{
- console.log('消防力量',data)
+ this.http.get(`/api/CustomFireForce/${item.itemId}`).subscribe((data:any)=>{
+ if(data.forceType != 0){//如果是其他消防力量
+ this.postlevel = 4
+ }else{
+ this.postlevel = data.level
+ }
+ console.log('xxx',this.postlevel)
+ data.fireForceDetailInfo.location ? null : data.fireForceDetailInfo.location={x:null,y:null}
+ this.fireForceDetailInfo = data.fireForceDetailInfo
+ this.showtype = 13
})
}else if(item.contentType == 14){
//联动力量
this.http.get(`/api/LinkageForces/${item.itemId}`).subscribe((data:any)=>{
- console.log('联动力量',data)
+
data.location ? null : data.location={x:null,y:null}
this.LinkageForceDetailInfo = data
this.showtype = 14
@@ -360,6 +368,7 @@ export class WaitExamineerComponent implements OnInit {
this.getAlltabledate()
})
}else if(this.shenheTable[0].contentType == 12 || this.shenheTable[0].contentType == 13 || this.shenheTable[0].contentType == 14){
+ console.log(1111,this.shenheTable[0])
let body:any = {
id:this.shenheTable[0].id,
itemId:this.shenheTable[0].itemId,
|