|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: sueRimn |
|
|
|
|
* @Date: 2020-12-25 16:13:50 |
|
|
|
|
* @LastEditors: sueRimn |
|
|
|
|
* @LastEditTime: 2021-06-04 10:14:51 |
|
|
|
|
* @LastEditTime: 2021-07-08 09:32:41 |
|
|
|
|
*/ |
|
|
|
|
import { Component, Inject, OnInit } from '@angular/core'; |
|
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
|
@ -165,6 +165,7 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
differentContentOfBuildingsInfo: any//当前单位变更数据 之 建筑信息
|
|
|
|
|
differentContentOfFunction: any = []//当前单位变更数据 之 功能分区
|
|
|
|
|
differentContentOfPicture: any//当前单位变更数据 之 实景图
|
|
|
|
|
bianzhi=false |
|
|
|
|
radioClick(e, item) { |
|
|
|
|
this.selectedItem = item |
|
|
|
|
console.log(item) |
|
|
|
@ -209,18 +210,22 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
this.id = item.id |
|
|
|
|
this.fetchUrl = '' |
|
|
|
|
this.viewer = {} |
|
|
|
|
|
|
|
|
|
if (item.contentType == 11) { |
|
|
|
|
this.bianzhi=false |
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
this.showtype = 3 |
|
|
|
|
sessionStorage.setItem('companyId', item.itemId) |
|
|
|
|
}, 0) |
|
|
|
|
} else if (item.contentType == 12) { |
|
|
|
|
this.bianzhi=false |
|
|
|
|
//水源
|
|
|
|
|
this.http.get(`/api/WaterSources/${item.itemId}`).subscribe((data) => { |
|
|
|
|
this.waterData = data |
|
|
|
|
this.showtype = 12 |
|
|
|
|
}) |
|
|
|
|
} else if (item.contentType == 13) { |
|
|
|
|
this.bianzhi=false |
|
|
|
|
//消防力量
|
|
|
|
|
this.http.get(`/api/CustomFireForce/${item.itemId}`).subscribe((data: any) => { |
|
|
|
|
if (data.forceType != 0) {//如果是其他消防力量
|
|
|
|
@ -242,6 +247,7 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} else if (item.contentType == 14) { |
|
|
|
|
this.bianzhi=false |
|
|
|
|
//联动力量
|
|
|
|
|
this.http.get(`/api/LinkageForces/${item.itemId}`).subscribe((data: any) => { |
|
|
|
|
|
|
|
|
@ -251,9 +257,16 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data: any) => { |
|
|
|
|
//console.log(data)
|
|
|
|
|
this.companyId = data.companyId |
|
|
|
|
this.companyName = data.companyName |
|
|
|
|
if (data.planType != 2 && data.planType != 1) { |
|
|
|
|
if(data.planMode==2){ |
|
|
|
|
this.bianzhi=true |
|
|
|
|
this.src=`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${data.companyId}&planName=${data.name}&unitName=${data.companyName}&planCategory=${data.planCategory}&planId=${data.id}&unitTypeId=${data.company.buildingTypes[0].id}&orName=${data.company.organizationName}&orId=${data.company.organizationId}&pattern=false` |
|
|
|
|
//this.src=`/keyUnit/viewunitinfoplan?id=${data.companyId}&orName=${data.company.organizationId}&orId=${data.company.organizationName}`
|
|
|
|
|
}else{ |
|
|
|
|
this.bianzhi=false |
|
|
|
|
this.fetchUrl = data.attachmentUrls[0] |
|
|
|
|
var index = this.fetchUrl.indexOf("\/") |
|
|
|
|
if (this.fetchUrl.substr(0, index) == 'psw') { |
|
|
|
@ -273,7 +286,10 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
} else { |
|
|
|
|
this.lookWord() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
this.bianzhi=false |
|
|
|
|
this.organizationName = item.organizationName |
|
|
|
|
this.planData = data |
|
|
|
|
this.handleData() |
|
|
|
|