|
|
@ -6,6 +6,7 @@ import { Component, OnInit } from '@angular/core'; |
|
|
|
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; |
|
|
|
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; |
|
|
|
import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; |
|
|
|
import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; |
|
|
|
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree'; |
|
|
|
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree'; |
|
|
|
|
|
|
|
import { Console } from 'console'; |
|
|
|
import { TreeService } from 'src/app/http-interceptors/tree.service'; |
|
|
|
import { TreeService } from 'src/app/http-interceptors/tree.service'; |
|
|
|
import Viewer from 'viewerjs' |
|
|
|
import Viewer from 'viewerjs' |
|
|
|
declare var CryptoJS |
|
|
|
declare var CryptoJS |
|
|
@ -158,22 +159,23 @@ export class FireForceComponent implements OnInit { |
|
|
|
data.relevantInfomationData ? this.AttachmentArr = JSON.parse(data.relevantInfomationData) : null |
|
|
|
data.relevantInfomationData ? this.AttachmentArr = JSON.parse(data.relevantInfomationData) : null |
|
|
|
|
|
|
|
|
|
|
|
if(node.forceType == 0 && node.level == 0){ |
|
|
|
if(node.forceType == 0 && node.level == 0){ |
|
|
|
this.ZongpersonCountData = JSON.parse(data.personCountData) |
|
|
|
this.ZongpersonCountData = JSON.parse(data.personCountData) || this.ZongpersonCountData |
|
|
|
this.ZongcontactData = JSON.parse(data.contactData) |
|
|
|
this.ZongcontactData = JSON.parse(data.contactData) || this.ZongcontactData |
|
|
|
} |
|
|
|
} |
|
|
|
if(node.forceType == 0 && node.level == 1){ |
|
|
|
if(node.forceType == 0 && node.level == 1){ |
|
|
|
this.ZongpersonCountData = JSON.parse(data.personCountData) |
|
|
|
this.ZongpersonCountData = JSON.parse(data.personCountData) || this.ZongpersonCountData |
|
|
|
this.ZhicontactData = JSON.parse(data.contactData) |
|
|
|
this.ZhicontactData = JSON.parse(data.contactData) || this.ZhicontactData |
|
|
|
} |
|
|
|
} |
|
|
|
if(node.forceType == 0 && (node.level == 2 || node.level == 3)){ |
|
|
|
if(node.forceType == 0 && (node.level == 2 || node.level == 3)){ |
|
|
|
this.DaZhongpersonCountData = JSON.parse(data.personCountData) |
|
|
|
this.DaZhongpersonCountData = JSON.parse(data.personCountData) || this.DaZhongpersonCountData
|
|
|
|
this.DaZhongcontactData = JSON.parse(data.contactData) |
|
|
|
this.DaZhongcontactData = JSON.parse(data.contactData) || this.DaZhongcontactData |
|
|
|
} |
|
|
|
} |
|
|
|
if(node.forceType != 0){ |
|
|
|
if(node.forceType != 0){ |
|
|
|
this.otherpersonCountData = JSON.parse(data.personCountData) |
|
|
|
this.otherpersonCountData = JSON.parse(data.personCountData) || this.otherpersonCountData |
|
|
|
this.othercontactData = JSON.parse(data.contactData) |
|
|
|
this.othercontactData = JSON.parse(data.contactData) || this.otherpersonCountData |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//寻找管辖单位
|
|
|
|
//寻找管辖单位
|
|
|
|
this.allFireForceList.forEach(item => { |
|
|
|
this.allFireForceList.forEach(item => { |
|
|
@ -328,25 +330,25 @@ export class FireForceComponent implements OnInit { |
|
|
|
//相关资料
|
|
|
|
//相关资料
|
|
|
|
data.relevantInfomationData ? this.AttachmentArr = JSON.parse(data.relevantInfomationData) : null |
|
|
|
data.relevantInfomationData ? this.AttachmentArr = JSON.parse(data.relevantInfomationData) : null |
|
|
|
|
|
|
|
|
|
|
|
if(node.forceType == 0 && node.level == 0){ |
|
|
|
if (node.forceType == 0 && node.level == 0) { |
|
|
|
this.ZongpersonCountData = JSON.parse(data.personCountData) |
|
|
|
this.ZongpersonCountData = JSON.parse(data.personCountData) || this.ZongpersonCountData |
|
|
|
this.ZongcontactData = JSON.parse(data.contactData) |
|
|
|
this.ZongcontactData = JSON.parse(data.contactData) || this.ZongcontactData |
|
|
|
} |
|
|
|
} |
|
|
|
if(node.forceType == 0 && node.level == 1){ |
|
|
|
if (node.forceType == 0 && node.level == 1) { |
|
|
|
this.ZongpersonCountData = JSON.parse(data.personCountData) |
|
|
|
this.ZongpersonCountData = JSON.parse(data.personCountData) || this.ZongpersonCountData |
|
|
|
this.ZhicontactData = JSON.parse(data.contactData) |
|
|
|
this.ZhicontactData = JSON.parse(data.contactData) || this.ZhicontactData |
|
|
|
} |
|
|
|
} |
|
|
|
if(node.forceType == 0 && (node.level == 2 || node.level == 3)){ |
|
|
|
if (node.forceType == 0 && (node.level == 2 || node.level == 3)) { |
|
|
|
this.DaZhongpersonCountData = JSON.parse(data.personCountData) |
|
|
|
this.DaZhongpersonCountData = JSON.parse(data.personCountData) || this.DaZhongpersonCountData |
|
|
|
this.DaZhongcontactData = JSON.parse(data.contactData) |
|
|
|
this.DaZhongcontactData = JSON.parse(data.contactData) || this.DaZhongcontactData |
|
|
|
} |
|
|
|
} |
|
|
|
if(node.forceType != 0){ |
|
|
|
if (node.forceType != 0) { |
|
|
|
this.otherpersonCountData = JSON.parse(data.personCountData) |
|
|
|
this.otherpersonCountData = JSON.parse(data.personCountData) || this.otherpersonCountData |
|
|
|
this.othercontactData = JSON.parse(data.contactData) |
|
|
|
this.othercontactData = JSON.parse(data.contactData) || this.othercontactData |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
this.map.setCity('上海市'); |
|
|
|
this.map.setCity('上海市'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -514,6 +516,10 @@ export class FireForceComponent implements OnInit { |
|
|
|
//其他消防力量联系方式
|
|
|
|
//其他消防力量联系方式
|
|
|
|
othercontactData:any = [ |
|
|
|
othercontactData:any = [ |
|
|
|
{PropertyName :'队长',PropertyValue:''}, |
|
|
|
{PropertyName :'队长',PropertyValue:''}, |
|
|
|
|
|
|
|
{PropertyName :'联系方式',PropertyValue:''}, |
|
|
|
|
|
|
|
{PropertyName :'站长',PropertyValue:''}, |
|
|
|
|
|
|
|
{PropertyName :'联系方式',PropertyValue:''}, |
|
|
|
|
|
|
|
{PropertyName :'负责人',PropertyValue:''}, |
|
|
|
{PropertyName :'联系方式',PropertyValue:''} |
|
|
|
{PropertyName :'联系方式',PropertyValue:''} |
|
|
|
] |
|
|
|
] |
|
|
|
//其他消防力量人员数量
|
|
|
|
//其他消防力量人员数量
|
|
|
@ -584,6 +590,10 @@ export class FireForceComponent implements OnInit { |
|
|
|
] |
|
|
|
] |
|
|
|
this.othercontactData = [ |
|
|
|
this.othercontactData = [ |
|
|
|
{PropertyName :'队长',PropertyValue:''}, |
|
|
|
{PropertyName :'队长',PropertyValue:''}, |
|
|
|
|
|
|
|
{PropertyName :'联系方式',PropertyValue:''}, |
|
|
|
|
|
|
|
{PropertyName :'站长',PropertyValue:''}, |
|
|
|
|
|
|
|
{PropertyName :'联系方式',PropertyValue:''}, |
|
|
|
|
|
|
|
{PropertyName :'负责人',PropertyValue:''}, |
|
|
|
{PropertyName :'联系方式',PropertyValue:''} |
|
|
|
{PropertyName :'联系方式',PropertyValue:''} |
|
|
|
] |
|
|
|
] |
|
|
|
this.otherpersonCountData = [ |
|
|
|
this.otherpersonCountData = [ |
|
|
@ -721,7 +731,7 @@ export class FireForceComponent implements OnInit { |
|
|
|
this.newselectedFireForceId = data.id |
|
|
|
this.newselectedFireForceId = data.id |
|
|
|
this.selectedFireForce = data |
|
|
|
this.selectedFireForce = data |
|
|
|
let body = this.FireForceDetailInfo |
|
|
|
let body = this.FireForceDetailInfo |
|
|
|
body.personCountData = JSON.stringify(this.otherpersonCountData)
|
|
|
|
body.personCountData = JSON.stringify(this.otherpersonCountData) |
|
|
|
body.contactData = JSON.stringify(this.othercontactData) |
|
|
|
body.contactData = JSON.stringify(this.othercontactData) |
|
|
|
body.dutyForceData = null |
|
|
|
body.dutyForceData = null |
|
|
|
this.http.put(`/api/FireForceDetail/1/${data.id}`,body).subscribe(data2 => { |
|
|
|
this.http.put(`/api/FireForceDetail/1/${data.id}`,body).subscribe(data2 => { |
|
|
|