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