|
|
|
@ -311,7 +311,7 @@ export class FireForceComponent implements OnInit {
|
|
|
|
|
this.http.get(`/api/FireForceDetail/${type}/${node.id}`).subscribe((data:any) => { |
|
|
|
|
this.isMasklayer = false |
|
|
|
|
this.FireForceDetailInfo = data |
|
|
|
|
console.log(888,data) |
|
|
|
|
// console.log(888,data)
|
|
|
|
|
if(data.location && data.location.x){//如果已经标注单位坐标
|
|
|
|
|
this.positionLngLat = data.location |
|
|
|
|
this.map.setCenter([data.location.x,data.location.y]); |
|
|
|
@ -416,7 +416,7 @@ export class FireForceComponent implements OnInit {
|
|
|
|
|
//删除某条消防队
|
|
|
|
|
deleteFireForce(item,e){ |
|
|
|
|
e.stopPropagation() |
|
|
|
|
console.log(this.dataSource.data) |
|
|
|
|
// console.log(this.dataSource.data)
|
|
|
|
|
let isDelete = window.confirm(`确定要删除${item.name}吗`) |
|
|
|
|
if(isDelete){ |
|
|
|
|
// this.http.delete(`/api/CustomFireForce/${item.id}`).subscribe(data => {
|
|
|
|
@ -647,7 +647,7 @@ export class FireForceComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
this.FireForceDetailInfo.jurisdictionArea = Number(this.FireForceDetailInfo.jurisdictionArea) |
|
|
|
|
this.FireForceDetailInfo.relevantInfomationData = JSON.stringify(this.AttachmentArr) |
|
|
|
|
console.log(1111,this.FireForceDetailInfo) |
|
|
|
|
// console.log(1111,this.FireForceDetailInfo)
|
|
|
|
|
//如果是总支大中
|
|
|
|
|
this.FireForceDetailInfo.location = {x:'',y:''} |
|
|
|
|
if(this.atLastPositionLngLat.x){ |
|
|
|
@ -674,7 +674,7 @@ export class FireForceComponent implements OnInit {
|
|
|
|
|
this.FireForceDetailInfo.contactData = JSON.stringify(this.DaZhongcontactData) |
|
|
|
|
this.FireForceDetailInfo.dutyForceData = null |
|
|
|
|
} |
|
|
|
|
console.log('body',body) |
|
|
|
|
// console.log('body',body)
|
|
|
|
|
this.http.put(`/api/FireForceDetail/0/${this.selectedFireForce.id}`,body).subscribe(data => { |
|
|
|
|
let config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
@ -745,7 +745,7 @@ export class FireForceComponent implements OnInit {
|
|
|
|
|
submitAudit(){ |
|
|
|
|
let isTrue = window.confirm('请确认保存后提交审核,否则将无法审核最新内容,是否继续?') |
|
|
|
|
if(isTrue){ |
|
|
|
|
console.log('提交审核的消防力量',this.FireForceDetailInfo) |
|
|
|
|
// console.log('提交审核的消防力量',this.FireForceDetailInfo)
|
|
|
|
|
let body = { |
|
|
|
|
title: this.FireForceDetailInfo.stationName, |
|
|
|
|
operation: this.selectedFireForce.contentVerify ? 1 : 0,//操作方式
|
|
|
|
|