|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { HttpClient } from '@angular/common/http'; |
|
|
|
|
import { Component, OnInit } from '@angular/core'; |
|
|
|
|
import { Component, Input, OnInit } from '@angular/core'; |
|
|
|
|
import { MatDialog } from '@angular/material/dialog'; |
|
|
|
|
import { MatSnackBar } from '@angular/material/snack-bar'; |
|
|
|
|
import Viewer from 'viewerjs' |
|
|
|
@ -12,36 +12,10 @@ declare var AMap: any;
|
|
|
|
|
styleUrls: ['./fireforce-audit.component.scss'] |
|
|
|
|
}) |
|
|
|
|
export class FireforceAuditComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
@Input() public FireForceDetailInfo: any;//data名字根据引用场景自定义
|
|
|
|
|
@Input() public level: any;//data名字根据引用场景自定义
|
|
|
|
|
constructor(public snackBar: MatSnackBar,private http:HttpClient,public dialog: MatDialog) { } |
|
|
|
|
selectedFireForceLevel:any = 0 |
|
|
|
|
|
|
|
|
|
FireForceDetailInfo:any = { |
|
|
|
|
id: "600144ffe7036e11b8121684", |
|
|
|
|
stationName: "上海总队", |
|
|
|
|
isIndependentAlarm: true, |
|
|
|
|
phoneNumber: "13864340193", |
|
|
|
|
faxNumber: "120", |
|
|
|
|
jurisdictionArea: 999, |
|
|
|
|
remark: "暂无备注", |
|
|
|
|
address: "齐鲁树谷", |
|
|
|
|
location: { |
|
|
|
|
x:0, |
|
|
|
|
y:0 |
|
|
|
|
}, |
|
|
|
|
personCountData: "[{\"PropertyName\":\"现役官兵人数\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"政府专职消防员数\",\"PropertyValue\":\"2\"},{\"PropertyName\":\"消防文员数\",\"PropertyValue\":\"3\"}]", |
|
|
|
|
personCountItems: null, |
|
|
|
|
contactData: "[{\"PropertyName\":\"总队长名称\",\"PropertyValue\":\"4\"},{\"PropertyName\":\"总队长联系方式\",\"PropertyValue\":\"5\"},{\"PropertyName\":\"总队政委名称\",\"PropertyValue\":\"6\"},{\"PropertyName\":\"总队政委联系方式\",\"PropertyValue\":\"7\"}]", |
|
|
|
|
contactItems: null, |
|
|
|
|
dutyForceData: null, |
|
|
|
|
dutyForceItems: null, |
|
|
|
|
relevantInfomationData: null, |
|
|
|
|
integrityScore: 0, |
|
|
|
|
integrityTotalCount: 0, |
|
|
|
|
integrityNotEmptyCount: 0, |
|
|
|
|
RelevantInfomationData:"[{\"objectName\":\"FireForce/1/601b69697cea2c03587c4c6d.png\",\"fileName\":\"楼层区域.png\",\"fileLength\":4079},{\"objectName\":\"FireForce/1/601b696e7cea2c03587c4c6e.mp4\",\"fileName\":\"李志 《天空之城》.mp4\",\"fileLength\":56362628},{\"objectName\":\"FireForce/1/601b69867cea2c03587c4c6f.docx\",\"fileName\":\"完整度规划20200724.docx\",\"fileLength\":16480}]" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selectedFireForceLevel:any |
|
|
|
|
ZongpersonCountData |
|
|
|
|
ZongcontactData |
|
|
|
|
ZhicontactData |
|
|
|
@ -51,15 +25,17 @@ export class FireforceAuditComponent implements OnInit {
|
|
|
|
|
otherpersonCountData |
|
|
|
|
AttachmentArr |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.ZongpersonCountData = JSON.parse(this.FireForceDetailInfo.personCountData) |
|
|
|
|
this.ZongcontactData = JSON.parse(this.FireForceDetailInfo.contactData) |
|
|
|
|
this.ZhicontactData = JSON.parse(this.FireForceDetailInfo.contactData) |
|
|
|
|
this.DaZhongpersonCountData = JSON.parse(this.FireForceDetailInfo.personCountData) |
|
|
|
|
this.DaZhongcontactData = JSON.parse(this.FireForceDetailInfo.contactData) |
|
|
|
|
this.othercontactData = JSON.parse(this.FireForceDetailInfo.contactData) |
|
|
|
|
this.otherpersonCountData = JSON.parse(this.FireForceDetailInfo.personCountData) |
|
|
|
|
this.AttachmentArr = JSON.parse(this.FireForceDetailInfo.RelevantInfomationData) |
|
|
|
|
|
|
|
|
|
// console.log(12345,this.FireForceDetailInfo)
|
|
|
|
|
this.selectedFireForceLevel = this.level |
|
|
|
|
this.FireForceDetailInfo.personCountData ? this.ZongpersonCountData = JSON.parse(this.FireForceDetailInfo.personCountData): null |
|
|
|
|
this.FireForceDetailInfo.contactData ? this.ZongcontactData = JSON.parse(this.FireForceDetailInfo.contactData): null |
|
|
|
|
this.FireForceDetailInfo.contactData ? this.ZhicontactData = JSON.parse(this.FireForceDetailInfo.contactData): null |
|
|
|
|
this.FireForceDetailInfo.personCountData ? this.DaZhongpersonCountData = JSON.parse(this.FireForceDetailInfo.personCountData): null |
|
|
|
|
this.FireForceDetailInfo.contactData ? this.DaZhongcontactData = JSON.parse(this.FireForceDetailInfo.contactData): null |
|
|
|
|
this.FireForceDetailInfo.contactData ? this.othercontactData = JSON.parse(this.FireForceDetailInfo.contactData): null |
|
|
|
|
this.FireForceDetailInfo.personCountData ? this.otherpersonCountData = JSON.parse(this.FireForceDetailInfo.personCountData): null |
|
|
|
|
this.FireForceDetailInfo.RelevantInfomationData ? this.AttachmentArr = JSON.parse(this.FireForceDetailInfo.RelevantInfomationData) : null |
|
|
|
|
console.log(789,this.ZongcontactData) |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.map = new AMap.Map('container', { |
|
|
|
|
zoom:18 |
|
|
|
|