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 ef0323f..b20ef31 100644
--- a/src/app/data-collection/fire-force/fire-force.component.html
+++ b/src/app/data-collection/fire-force/fire-force.component.html
@@ -150,9 +150,9 @@
(审核通过)
(审核驳回)
- open_in_browser提交审核
+ open_in_browser提交审核
撤销审核
- save保存
+ save保存
close关闭
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 37882f1..9a22f4c 100644
--- a/src/app/data-collection/linkage-forces/linkage-forces.component.html
+++ b/src/app/data-collection/linkage-forces/linkage-forces.component.html
@@ -125,9 +125,9 @@
(审核通过)
(审核驳回)
- open_in_browser提交审核
+ open_in_browser提交审核
撤销审核
- save保存
+ save保存
close关闭
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 f46cd80..143ed99 100644
--- a/src/app/data-collection/water-collection/water-collection.component.html
+++ b/src/app/data-collection/water-collection/water-collection.component.html
@@ -87,9 +87,9 @@
(审核通过)
(审核驳回)
- open_in_browser提交审核
+ open_in_browser提交审核
撤销审核
- save保存
+ save保存
close关闭
diff --git a/src/app/gis-management/fire-facilities/fire-facilities.component.html b/src/app/gis-management/fire-facilities/fire-facilities.component.html
index 9623bec..1bc4861 100644
--- a/src/app/gis-management/fire-facilities/fire-facilities.component.html
+++ b/src/app/gis-management/fire-facilities/fire-facilities.component.html
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-11-23 09:28:54
* @LastEditors: sueRimn
- * @LastEditTime: 2020-11-27 16:17:53
+ * @LastEditTime: 2021-03-15 16:35:56
-->
@@ -45,9 +45,9 @@
楼层/区域名称: {{tableMsg.name? tableMsg.name: '暂无名称'}}
-
+
{{header}} |
- {{body[header]? body[header] : '暂无数据'}} |
+ {{body[header]? body[header] : '暂无数据'}} |
diff --git a/src/app/gis-management/plan-list/plan-list.component.scss b/src/app/gis-management/plan-list/plan-list.component.scss
index a1939e9..b346dcf 100644
--- a/src/app/gis-management/plan-list/plan-list.component.scss
+++ b/src/app/gis-management/plan-list/plan-list.component.scss
@@ -21,11 +21,13 @@
padding: 20px;
display: flex;
flex-wrap: wrap;
- justify-content: space-between;
+ justify-content: flex-start;
.contantitem{
+ margin-right: 6px;
div{
width: 110px;
height: 110px;
+
img{
width: 100%;
height: 100%;
diff --git a/src/app/key-unit/basicinfo-look/basicinfo.component.html b/src/app/key-unit/basicinfo-look/basicinfo.component.html
index 1d9bfe4..9c17057 100644
--- a/src/app/key-unit/basicinfo-look/basicinfo.component.html
+++ b/src/app/key-unit/basicinfo-look/basicinfo.component.html
@@ -1,6 +1,6 @@
-
+
diff --git a/src/app/key-unit/basicinfo/basicinfo.component.html b/src/app/key-unit/basicinfo/basicinfo.component.html
index dad7ced..fb514e0 100644
--- a/src/app/key-unit/basicinfo/basicinfo.component.html
+++ b/src/app/key-unit/basicinfo/basicinfo.component.html
@@ -1,6 +1,6 @@
-
+
diff --git a/src/app/plan-audit/fire-facilities/fire-facilities.component.html b/src/app/plan-audit/fire-facilities/fire-facilities.component.html
index 9623bec..a2aae13 100644
--- a/src/app/plan-audit/fire-facilities/fire-facilities.component.html
+++ b/src/app/plan-audit/fire-facilities/fire-facilities.component.html
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-11-23 09:28:54
* @LastEditors: sueRimn
- * @LastEditTime: 2020-11-27 16:17:53
+ * @LastEditTime: 2021-03-15 16:32:59
-->
@@ -45,9 +45,9 @@
楼层/区域名称: {{tableMsg.name? tableMsg.name: '暂无名称'}}
-
+
{{header}} |
- {{body[header]? body[header] : '暂无数据'}} |
+ {{body[header]? body[header] : '暂无数据'}} |
diff --git a/src/app/plan-audit/plan-audit-routing.module.ts b/src/app/plan-audit/plan-audit-routing.module.ts
index b217fd5..312c7fe 100644
--- a/src/app/plan-audit/plan-audit-routing.module.ts
+++ b/src/app/plan-audit/plan-audit-routing.module.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-24 10:59:48
* @LastEditors: sueRimn
- * @LastEditTime: 2021-02-02 15:48:12
+ * @LastEditTime: 2021-03-15 15:53:17
*/
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
@@ -19,7 +19,7 @@ const routes: Routes = [
{ path: 'planaudit', component: PlanAuditComponent },
//{ path: 'planpass', component: PlanPassComponent },
{ path: 'planrecord', component: PlanRecordComponent },//预案审核记录
- { path: 'waitexamineer', component: WaitExamineerComponent },//预案待审核
+ { path: 'waitexamineergis', component: WaitExamineerComponent },//预案待审核
];
@NgModule({
diff --git a/src/app/plan-audit/plan-list/plan-list.component.ts b/src/app/plan-audit/plan-list/plan-list.component.ts
index 8dc7ae8..c8e41b2 100644
--- a/src/app/plan-audit/plan-list/plan-list.component.ts
+++ b/src/app/plan-audit/plan-list/plan-list.component.ts
@@ -71,7 +71,7 @@ export class PlanListComponent implements OnInit {
export class OpenPlanToolDialog {
constructor(public http: HttpClient,public snackBar: MatSnackBar,public dialogRef: MatDialogRef
,
- @Inject(MAT_DIALOG_DATA) public data,private render2: Renderer2,public dialog: MatDialog) {}
+ @Inject(MAT_DIALOG_DATA) public data,private render2: Renderer2,public dialog: MatDialog) {}
@ViewChild( 'plan',{static: false} ) plan:any //子组件
@@ -88,7 +88,7 @@ export class OpenPlanToolDialog {
buildingIndex: this.data.key, //总平面图/建筑 index
storeyId: this.data.select.id
}
- this.http.get("/api/Buildings",{params:{companyId : sessionStorage.getItem('unitId')} }).subscribe((data:any)=>{
+ this.http.get("/api/Buildings",{params:{companyId : sessionStorage.getItem('companyId')} }).subscribe((data:any)=>{
this.plan.allBuildings = data
this.plan.seekPanelPoint(parameter)
})
diff --git a/src/app/plan-audit/plan-record/plan-record.component.html b/src/app/plan-audit/plan-record/plan-record.component.html
index 6991fe5..34a1613 100644
--- a/src/app/plan-audit/plan-record/plan-record.component.html
+++ b/src/app/plan-audit/plan-record/plan-record.component.html
@@ -102,7 +102,7 @@
{{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.contentType=='6'?'应急预案(国家级)':item.contentType=='7'?'应急预案(市级)':item.contentType=='8'?'类型预案':item.contentType=='11'?'重点单位':item.contentType=='12'?'水源':item.contentType=='13'?'消防力量':item.contentType=='14'?'联动力量':'未知'}}
{{item.title}} |
{{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}} |
{{item.verifyOrganizationName}} |
@@ -162,7 +162,7 @@
-
+
@@ -187,5 +187,17 @@
查看详情
+
+
+
+
+
+
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 0c950d1..7fc0c71 100644
--- a/src/app/plan-audit/plan-record/plan-record.component.scss
+++ b/src/app/plan-audit/plan-record/plan-record.component.scss
@@ -66,12 +66,14 @@
.boxright{
height: 100%;
width: 55%;
+ flex: 1;
background-color: #FFFFFF;
margin-left: 10px;
+ display: flex;
+ flex-direction: column;
.word{
width: 100%;
height: 100%;
- //margin: 10px 10px 0 10px;
iframe{
height: 94%;
width: 97%;
@@ -85,6 +87,12 @@
width: 97%;
height: 94%;
}
+ .waterAudit,.fireForceAudit,.LinkageForcesAudit{
+ flex: 1;
+ width: 100%;
+ height: 100%;
+ box-sizing: border-box;
+ }
}
}
th,td{
diff --git a/src/app/plan-audit/plan-record/plan-record.component.ts b/src/app/plan-audit/plan-record/plan-record.component.ts
index 47b1516..5133df8 100644
--- a/src/app/plan-audit/plan-record/plan-record.component.ts
+++ b/src/app/plan-audit/plan-record/plan-record.component.ts
@@ -132,6 +132,10 @@ export class PlanRecordComponent implements OnInit {
}
//表格点击事件
viewer//全景图对象
+ waterData:any//需要传递给子组件的水源信息
+ LinkageForceDetailInfo:any//需要传递给子组件的联动力量信息
+ fireForceDetailInfo:any//需要传递给子组件的消防力量信息
+ postlevel:any
tableClick(e,item){
this.showtype = -1
//e.target.parentElement.bgColor='#2196F3'
@@ -147,13 +151,31 @@ export class PlanRecordComponent implements OnInit {
},0)
}else if(item.contentType == 12){
//水源
- this.showtype = 12
+ this.http.get(`/api/WaterSources/${item.itemId}`).subscribe((data)=>{
+ this.waterData = data
+ this.showtype = 12
+ })
}else if(item.contentType == 13){
//消防力量
- this.showtype = 13
+ 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',data)
+ data.fireForceDetailInfo.location ? null : data.fireForceDetailInfo.location={x:null,y:null}
+ this.fireForceDetailInfo = data.fireForceDetailInfo
+ this.showtype = 13
+ })
}else if(item.contentType == 14){
//联动力量
- this.showtype = 14
+ this.http.get(`/api/LinkageForces/${item.itemId}`).subscribe((data:any)=>{
+
+ data.location ? null : data.location={x:null,y:null}
+ this.LinkageForceDetailInfo = data
+ this.showtype = 14
+ })
}else{
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{
this.companyId=data.companyId
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 ceca217..e544d3b 100644
--- a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
+++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-25 16:13:50
* @LastEditors: sueRimn
- * @LastEditTime: 2021-03-10 08:36:31
+ * @LastEditTime: 2021-03-15 15:51:30
*/
import { Component, Inject, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@@ -28,6 +28,7 @@ export class WaitExamineerComponent implements OnInit {
}
ngOnInit(): void {
+ sessionStorage.setItem('gisplan','look')
let level = sessionStorage.getItem("level");
if(level == "0"){//如果是总队
this.preparelevels = [
@@ -182,7 +183,7 @@ export class WaitExamineerComponent implements OnInit {
}else{
this.postlevel = data.level
}
- console.log('xxx',this.postlevel)
+ console.log('xxx',data)
data.fireForceDetailInfo.location ? null : data.fireForceDetailInfo.location={x:null,y:null}
this.fireForceDetailInfo = data.fireForceDetailInfo
this.showtype = 13
@@ -344,98 +345,97 @@ export class WaitExamineerComponent implements OnInit {
var agreeList=[]
var companyAgreeList=[]
const config = new MatSnackBarConfig();
- config.verticalPosition = 'top';
- config.duration = 3000
- console.log(this.shenheTable)
- if(this.shenheTable.length==0){
- this.snackBar.open('请勾选要审核的条目!','确定',config);
- }
- //单个审核
- else if(this.shenheTable.length == 1){
- let isTrue = window.confirm('确定同意选中条目的审核吗?')
- if(isTrue){
- //重点单位审核
- if(this.shenheTable[0].contentType == 11){
- let body:any = {
- id:this.shenheTable[0].id,
- itemId:this.shenheTable[0].itemId,
- verifyState:4,
- contentType:11,
- title:this.shenheTable[0].title+'基本信息'
- }
- this.http.put(`/api/ContentVerifies`,body).subscribe(data=>{
+ config.verticalPosition = 'top';
+ config.duration = 3000
+ console.log(this.shenheTable)
+ if(this.shenheTable.length==0){
+ this.snackBar.open('请勾选要审核的条目!','确定',config);
+ }
+ //单个审核
+ else if(this.shenheTable.length == 1){
+ let isTrue = window.confirm('确定同意选中条目的审核吗?')
+ if(isTrue){
+ //重点单位审核
+ if(this.shenheTable[0].contentType == 11){
+ let body:any = {
+ id:this.shenheTable[0].id,
+ itemId:this.shenheTable[0].itemId,
+ verifyState:4,
+ contentType:11,
+ title:this.shenheTable[0].title+'基本信息'
+ }
+ this.http.put(`/api/ContentVerifies`,body).subscribe(data=>{
+ this.snackBar.open('操作成功!','确定',config);
+ 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,
+ verifyState:4,
+ contentType:this.shenheTable[0].contentType,
+ title:this.shenheTable[0].title
+ }
+ this.http.put(`/api/ContentVerifies`,body).subscribe(data=>{
+ this.snackBar.open('操作成功!','确定',config);
+ this.showtype = -1
+ this.getAlltabledate()
+ })
+ }else{
+ //预案审核
+ if(this.shenheTable[0].verifyState==0){
+ this.http.put(`/api/PlanAudits/${this.shenheTable[0].itemId}/First`,{auditStatus:16}).subscribe(data=>{
this.snackBar.open('操作成功!','确定',config);
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,
- verifyState:4,
- contentType:this.shenheTable[0].contentType,
- title:this.shenheTable[0].title
- }
- this.http.put(`/api/ContentVerifies`,body).subscribe(data=>{
+ }else if(this.shenheTable[0].verifyState==3){
+ this.http.put(`/api/PlanAudits/${this.radioid}`,{auditStatus:2}).subscribe(data=>{
this.snackBar.open('操作成功!','确定',config);
- this.showtype = -1
this.getAlltabledate()
})
- }else{
- //预案审核
- if(this.shenheTable[0].verifyState==0){
- this.http.put(`/api/PlanAudits/${this.shenheTable[0].itemId}/First`,{auditStatus:16}).subscribe(data=>{
- this.snackBar.open('操作成功!','确定',config);
- this.getAlltabledate()
- })
- }else if(this.shenheTable[0].verifyState==3){
- this.http.put(`/api/PlanAudits/${this.radioid}`,{auditStatus:2}).subscribe(data=>{
- this.snackBar.open('操作成功!','确定',config);
- this.getAlltabledate()
- })
- }
}
- this.shenheTable=[]
}
-
+ this.shenheTable=[]
}
- //批量审核
- else{
- let isTrue = window.confirm('确定同意选中条目的审核吗?')
- if(isTrue){
- if(this.shenheTable[0].contentType==11||this.shenheTable[0].contentType==12){ //批量审批水源和重点单位
- for(var i=0;i
{
- this.snackBar.open('操作成功!','确定',config);
- this.getAlltabledate()
- })
- }else{ //批量审核预案
- for(var i=0;i{
+ this.snackBar.open('操作成功!','确定',config);
+ this.getAlltabledate()
+ })
+ }else{ //批量审核预案
+ for(var i=0;i{
- this.snackBar.open('操作成功!','确定',config);
- this.getAlltabledate()
- })
+ agreeList.push(cart)
}
- this.shenheTable=[]
+ this.http.put(`/api/PlanAudits/Batch`,agreeList).subscribe(data=>{
+ this.snackBar.open('操作成功!','确定',config);
+ this.getAlltabledate()
+ })
}
-
+ this.shenheTable=[]
}
- }
+ }
+ }
//拒绝操作
refuse(){
const config = new MatSnackBarConfig();
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 c23bacc..cc4d7f7 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
@@ -162,7 +162,7 @@ export class EntryPlanLookComponent implements OnInit {
sessionStorage.setItem("editable","0")
sessionStorage.setItem("planName",e.name)
let companyId = sessionStorage.getItem("companyId")
- window.open(`/keyUnit/viewunitinfoplan?id=${companyId}`);
+ window.open(`/keyUnit/viewunitinfoplan?id=${companyId}&orName=${this.route.snapshot.queryParams.orName}&orId=${this.route.snapshot.queryParams.orId}`);
}
if(e.planMode == 3){ //如果是跳转网页
sessionStorage.setItem("url",e.url)
@@ -179,7 +179,7 @@ export class EntryPlanLookComponent implements OnInit {
sessionStorage.setItem("editable","1")
sessionStorage.setItem("planName",e.name)
let companyId = sessionStorage.getItem("companyId")
- window.open(`/keyUnit/editunitinfo?id=${companyId}`);
+ window.open(`/keyUnit/editunitinfo?id=${companyId}&orName=${this.route.snapshot.queryParams.orName}&orId=${this.route.snapshot.queryParams.orId}`);
}
}
allPlanComponents:any //所有预案组件
diff --git a/src/app/plan-management/entry-plan/entry-plan.component.ts b/src/app/plan-management/entry-plan/entry-plan.component.ts
index d5d4151..e00c887 100644
--- a/src/app/plan-management/entry-plan/entry-plan.component.ts
+++ b/src/app/plan-management/entry-plan/entry-plan.component.ts
@@ -322,7 +322,7 @@ export class EntryPlanComponent implements OnInit {
routerTo(element){
this.level=='0'?this.operation=false:true
sessionStorage.setItem("companyName",element.company.name)
- window.open(`/planManagement/entryPlandetail?unitId=${element.company.id}&unitTypeId=${element.company.buildingTypes.length == 0 ? null :element.company.buildingTypes[0].id}&operation=${this.operation}&pagetype=entryplan&unitName=${element.company.name}&orName=${element.company.organizationName}&unitType=${element.company.buildingTypes.length == 0 ? null :element.company.buildingTypes[0].name}&unitAdd=${element.company.address}&usci=${element.company.usci}`);
+ window.open(`/planManagement/entryPlandetail?unitId=${element.company.id}&unitTypeId=${element.company.buildingTypes.length == 0 ? null :element.company.buildingTypes[0].id}&operation=${this.operation}&pagetype=entryplan&unitName=${element.company.name}&orName=${element.company.organizationName}&orId=${element.company.organizationId}&unitType=${element.company.buildingTypes.length == 0 ? null :element.company.buildingTypes[0].name}&unitAdd=${element.company.address}&usci=${element.company.usci}`);
}
//查询
onSubmit (value) {
diff --git a/src/app/statistic-analysis/addUnit/add-unit-three-line-details/add-unit-three-line-details.component.ts b/src/app/statistic-analysis/addUnit/add-unit-three-line-details/add-unit-three-line-details.component.ts
index b39c046..26632cf 100644
--- a/src/app/statistic-analysis/addUnit/add-unit-three-line-details/add-unit-three-line-details.component.ts
+++ b/src/app/statistic-analysis/addUnit/add-unit-three-line-details/add-unit-three-line-details.component.ts
@@ -134,13 +134,13 @@ export class AddUnitThreeLineDetailsComponent implements OnInit {
//提示框
tooltip: {
trigger: 'axis',
- formatter: (params)=>{
+ /* formatter: (params)=>{
if(params[0].seriesName == "year"){
return this.serviceData.tableTooltip(this.serviceData.monthTooltip,params[0].name)
}else{
return this.serviceData.tableTooltip(this.serviceData.tableDataZhi,params[0].name)
}
- },
+ }, */
position:this.serviceData.tableTooltipNoShow2
},
// x轴
diff --git a/src/app/statistic-analysis/addUnit/add-unit-two-time/add-unit-two-time.component.ts b/src/app/statistic-analysis/addUnit/add-unit-two-time/add-unit-two-time.component.ts
index 9084779..8e86a3a 100644
--- a/src/app/statistic-analysis/addUnit/add-unit-two-time/add-unit-two-time.component.ts
+++ b/src/app/statistic-analysis/addUnit/add-unit-two-time/add-unit-two-time.component.ts
@@ -340,13 +340,13 @@ export class AddUnitTwoTimeComponent implements OnInit {
//提示框
tooltip: {
trigger: 'axis',
- formatter: (params)=>{
+ /* formatter: (params)=>{
if(params[0].seriesName == "year"){
return this.serviceData.tableTooltip(this.serviceData.monthTooltip,params[0].name)
}else{
return this.serviceData.tableTooltip(this.serviceData.tableDataZhi,params[0].name)
}
- },
+ }, */
position: this.serviceData.tableTooltipNoShow2
},
// x轴
diff --git a/src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts b/src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts
index ba4f526..59da13e 100644
--- a/src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts
+++ b/src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts
@@ -151,11 +151,11 @@ export class AddUnitTwoTypeDetailsComponent implements OnInit {
const pointInPixel= [params.offsetX, params.offsetY];
if (this.detailPlanEchart.containPixel('grid',pointInPixel)){
let xIndex=this.detailPlanEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
- if(this.echartsData.level=='0'||this.echartsData.level=='1'){
+ if((this.echartsData.level=='0'||this.echartsData.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){
//总队和支队跳转
- this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time/three_barDetails'],{queryParams:{'time':'','buildingTpye':option.xAxis.data[xIndex]+this.organizationName,'zhuid':option.xAxis.id[xIndex],'id':this.canshuId}});
+ this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time/three_barDetails'],{queryParams:{'time':'','buildingTpye':option.xAxis.data[xIndex]+this.organizationName,'zhuid':option.xAxis.id[xIndex],'id':this.echartsData.zuzhiorBuilding=='zhi'?this.canshuId:this.lastId}});
}else{
- this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}});
+ this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex]}});
}
}
diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.html b/src/app/statistic-analysis/all-plan/all-plan.component.html
new file mode 100644
index 0000000..c60fb08
--- /dev/null
+++ b/src/app/statistic-analysis/all-plan/all-plan.component.html
@@ -0,0 +1,54 @@
+
+
+
+
+ {{titlename}}
+
+
+
+
+ 名称 |
+ {{element.name}} |
+
+
+ 修改时间 |
+ {{element.modifiedTime|date:'yyyy-MM-dd'}} |
+
+
+ 消防救援站 |
+ {{element.organizationName}} |
+
+
+ 类型 |
+ {{element.buildingTypes.length != 0 ? element.buildingTypes[0].name : ''}} |
+
+
+ 操作 |
+
+ 详情
+ |
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.scss b/src/app/statistic-analysis/all-plan/all-plan.component.scss
new file mode 100644
index 0000000..dceb5cf
--- /dev/null
+++ b/src/app/statistic-analysis/all-plan/all-plan.component.scss
@@ -0,0 +1,73 @@
+.body{
+ display: flex;
+ flex-direction: column;
+ .topbox{
+ width: 100%;
+ height: 80px;
+ min-height: 80px;
+ border-bottom: 1px gray solid;
+ .btnbox{
+ display: flex;
+ flex-direction:row-reverse;
+ float: right;
+ justify-content: center;
+ align-items: center;
+ height: 100%;
+ button{
+ width: 88px;
+ height: 36px;
+ }
+ margin-right:4%;
+
+ }
+ }
+ .title{
+ width: 100%;
+ text-align: center;
+ margin-top: 2%;
+ span{
+ text-align: center;
+ font-size: 28px;
+ }
+ }
+ .buttonbox{
+ padding-left: 50px;
+ button{
+ margin:0 10px
+ }
+ }
+ .tablebox{
+ width: 100%;
+ text-align: center;
+ table{
+ width: 50%;
+ text-align: center;
+ margin-left: 25%;
+ margin-top:20px;
+ th,td{
+ text-align: center;
+ font-size: 15px;
+ color: #000000;
+ }
+ }
+ mat-paginator{
+ width: 100%;
+ margin-left: 0%;
+ }
+ .mat-column-unitname{
+ width: 15%;
+ }
+ .mat-column-integrity{
+ width: 13%;
+ }
+ .mat-column-operation{
+ width: 5%;
+ }
+ .mat-column-jurisdictionsquadron{
+ width: 10%;
+ }
+ span:hover{
+ text-decoration:underline
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.spec.ts b/src/app/statistic-analysis/all-plan/all-plan.component.spec.ts
new file mode 100644
index 0000000..d383a7d
--- /dev/null
+++ b/src/app/statistic-analysis/all-plan/all-plan.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { AllPlanComponent } from './all-plan.component';
+
+describe('AllPlanComponent', () => {
+ let component: AllPlanComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ AllPlanComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(AllPlanComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.ts b/src/app/statistic-analysis/all-plan/all-plan.component.ts
new file mode 100644
index 0000000..89f0fe4
--- /dev/null
+++ b/src/app/statistic-analysis/all-plan/all-plan.component.ts
@@ -0,0 +1,63 @@
+/*
+ * @Descripttion:
+ * @version:
+ * @Author: sueRimn
+ * @Date: 2021-03-15 11:32:30
+ * @LastEditors: sueRimn
+ * @LastEditTime: 2021-03-15 13:51:48
+ */
+import { Component, OnInit, ViewChild, Inject } from '@angular/core';
+import { HttpClient } from '@angular/common/http'
+import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
+import { MatPaginator } from '@angular/material/paginator';
+import { FlatTreeControl } from '@angular/cdk/tree';
+import { FormControl } from '@angular/forms';
+import { Router,ActivatedRoute } from '@angular/router'
+import { PageEvent } from '@angular/material/paginator';
+import { MatDialogRef, MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog';
+import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';
+import { TreeService } from '../../http-interceptors/tree.service'
+import { MatTableDataSource } from '@angular/material/table';
+declare var CryptoJS
+
+@Component({
+ selector: 'app-all-plan',
+ templateUrl: './all-plan.component.html',
+ styleUrls: ['./all-plan.component.scss']
+})
+export class AllPlanComponent implements OnInit {
+
+ constructor(private http: HttpClient,public snackBar: MatSnackBar,public route: ActivatedRoute,private router: Router) { }
+
+ ngOnInit(): void {
+ this.route.queryParams.subscribe(params => {
+ this.titlename = params['name'];
+ this.type = params['type'];
+ this.jsId=params['jsid']
+ });
+ }
+ displayedColumns: string[] = ['unitname','modifiedTime','organizationName','buildingTypes','operation'];
+ tabledataSource
+ titlename //上个页面传过来的名称
+ type //上个页面传过来:1重点单位 2预案
+ jsId //组织机构id
+ //分页
+ @ViewChild(MatPaginator, {static: true})
+ pageEvent: PageEvent;
+ paginator: MatPaginator;
+ length:any; //共多少条数据
+ pageSize:any; //每页条数
+ pageSizeOptions: number[] = [10] //设置每页条数
+ PageNumber:any; //第几页
+ //分页事件
+ changePage(e){
+ this.PageNumber = e.pageIndex+1
+ //this.getAlltabledate()
+ }
+ //返回
+ goBack () {
+ history.go(-1)
+ //this.echartsData.statefulInspectionToggle = true
+ }
+
+}
diff --git a/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts b/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
index 1145a2f..4c88ae9 100644
--- a/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
+++ b/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
@@ -104,7 +104,7 @@ export class BuildingTypeOneComponent implements OnInit {
this.router.navigate(['/statisticanalysis/buildingType_one/buildingType_two_reverse'],{queryParams:{'level':params.name,'id':params.data.id}});
}else if(this.echartsData.level=='3'){
//中队跳转
- this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}});
+ this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1,'buildid':params.id}});
}
});
diff --git a/src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts b/src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts
index 24a98d4..6edb22d 100644
--- a/src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts
+++ b/src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts
@@ -173,7 +173,6 @@ export class BuildingTypeThreeDetailsComponent implements OnInit {
this.tiao=true
}
else{
- console.log(option.series[0].id)
this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex]}});
}
diff --git a/src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts b/src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts
index 4cbd064..092d9a5 100644
--- a/src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts
+++ b/src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts
@@ -321,12 +321,12 @@ export class BuildingTypeTwoReverseComponent implements OnInit {
if (item.echart.containPixel('grid',pointInPixel)) {
let xIndex=item.echart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
/*事件处理代码书写位置*/
- if(this.data.level=='0'||this.data.level=='1'){
+ if((this.data.level=='0'||this.data.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){
//总队,支队跳转
this.router.navigate(['/statisticanalysis/buildingType_one/buildingType_three_details'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'buildId':this.buildId,'organizationId':option.xAxis.id[xIndex]}})
}
else{
- this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}});
+ this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.buildId}});
}
//this.router.navigate(['/statisticanalysis/delete_one/delete_four'],{queryParams:{'level':this.option.xAxis.data[xIndex]+headName}});
}
diff --git a/src/app/statistic-analysis/compang-info/compang-info.component.ts b/src/app/statistic-analysis/compang-info/compang-info.component.ts
index fe03854..b68ff07 100644
--- a/src/app/statistic-analysis/compang-info/compang-info.component.ts
+++ b/src/app/statistic-analysis/compang-info/compang-info.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2021-03-05 15:57:08
* @LastEditors: sueRimn
- * @LastEditTime: 2021-03-12 10:05:29
+ * @LastEditTime: 2021-03-15 14:40:56
*/
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'
@@ -34,6 +34,7 @@ export class CompangInfoComponent implements OnInit{
this.titlename = params['name'];
this.type = params['type'];
this.jsId=params['jsid']
+ this.BuildingTypeId=params['buildid']
});
this.getAlltabledate()
}
@@ -42,6 +43,7 @@ export class CompangInfoComponent implements OnInit{
titlename //上个页面传过来的名称
type //上个页面传过来:1重点单位 2预案
jsId //组织机构id
+ BuildingTypeId//建筑类型id
//分页
@ViewChild(MatPaginator, {static: true})
pageEvent: PageEvent;
@@ -67,6 +69,7 @@ export class CompangInfoComponent implements OnInit{
//重点单位
let paramsdata:any = {
OrganizationId: this.jsId || '',
+ BuildingTypeId:this.BuildingTypeId|| '',
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0],
IntegrityScoreMin:0,
diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts
index 2119436..87b7d79 100644
--- a/src/app/statistic-analysis/echarts-data.service.ts
+++ b/src/app/statistic-analysis/echarts-data.service.ts
@@ -486,24 +486,66 @@ export class EchartsDataService {
apidata=[]
biaogeTishiyuan(datas){
//localStorage.setItem('tishi',this.tishiData)
+ console.log(datas)
let paramdata={
planStatus:datas.type
}
- if(localStorage.getItem('tishi')==undefined){
- this.http.get(`/api/StatisticsAnalysis/Plans/Status`).subscribe((data:any)=>{
- this.tishiData=data.organizations
- localStorage.setItem('tishi',JSON.stringify(this.tishiData))
- })
+ if(datas.name=='预案新增'){
+ this.localData=''
+ if(localStorage.getItem('addtishi')==undefined){
+ this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{
+ this.tishiData=data.organizations
+ localStorage.setItem('addtishi',JSON.stringify(this.tishiData))
+ })
+ }
+ this.localData=localStorage.getItem('addtishi')
+ }else if(datas.name=='预案审核中'){
+ this.localData=''
+ if(localStorage.getItem('shenheingtishi')==undefined){
+ this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{
+ this.tishiData=data.organizations
+ localStorage.setItem('shenheingtishi',JSON.stringify(this.tishiData))
+ })
+ }
+ this.localData=localStorage.getItem('shenheingtishi')
+ }else if(datas.name=='预案审核退回'){
+ this.localData=''
+ if(localStorage.getItem('shenhetuitishi')==undefined){
+ this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{
+ this.tishiData=data.organizations
+ localStorage.setItem('shenhetuitishi',JSON.stringify(this.tishiData))
+ })
+ }
+ this.localData=localStorage.getItem('shenhetuitishi')
+ }else if(datas.name='预案审核通过'){
+ this.localData=''
+ if(localStorage.getItem('yuansuccesstishi')==undefined){
+ this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{
+ this.tishiData=data.organizations
+ localStorage.setItem('yuansuccesstishi',JSON.stringify(this.tishiData))
+ })
+ }
+ this.localData=localStorage.getItem('yuansuccesstishi')
+ }else{
+ this.localData=''
+ if(localStorage.getItem('yuanbiantishi')==undefined){
+ this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{
+ this.tishiData=data.organizations
+ localStorage.setItem('yuanbiantishi',JSON.stringify(this.tishiData))
+ })
+ }
+ this.localData=localStorage.getItem('yuanbiantishi')
}
- this.localData=localStorage.getItem('tishi')
-
- /* window.setTimeout(()=>{
+
+ console.log(JSON.parse(this.localData) )
+ this.localData=JSON.parse(this.localData)
+ window.setTimeout(()=>{
var countall=0//总计
var countbi=0//站比
var allCountbi=0//总站比
- for(var i=0;i '
this.res+='