|
|
|
@ -159,7 +159,8 @@ export class FireFightingDeviceComponent implements OnInit {
|
|
|
|
|
data[key].forEach(element => { //表格内容
|
|
|
|
|
let everyBody = {} |
|
|
|
|
element.propertyInfos.forEach((elements,index) => { |
|
|
|
|
if (elements.propertyType!=3) { everyBody[elements.propertyName] = elements.propertyValue } |
|
|
|
|
if (elements.propertyType!=3 && elements.propertyType!=6) { everyBody[elements.propertyName] = elements.propertyValue+elements.physicalUnit } |
|
|
|
|
if (elements.propertyType==6) { everyBody[elements.propertyName] = elements.propertyValue=='1'?'是':'否' } |
|
|
|
|
}); |
|
|
|
|
tableMsg.body.push(everyBody) |
|
|
|
|
}); |
|
|
|
@ -178,7 +179,8 @@ export class FireFightingDeviceComponent implements OnInit {
|
|
|
|
|
data.forEach(element => { //表格内容
|
|
|
|
|
let everyBody = {} |
|
|
|
|
element.propertyInfos.forEach((elements,index) => { |
|
|
|
|
if (elements.propertyType!=3) { everyBody[elements.propertyName] = elements.propertyValue } |
|
|
|
|
if (elements.propertyType!=3 && elements.propertyType!=6) { everyBody[elements.propertyName] = elements.propertyValue+elements.physicalUnit } |
|
|
|
|
if (elements.propertyType==6) { everyBody[elements.propertyName] = elements.propertyValue=='1'?'是':'否' } |
|
|
|
|
}); |
|
|
|
|
e.body.push(everyBody) |
|
|
|
|
}); |
|
|
|
@ -316,7 +318,8 @@ export class FireFightingDeviceComponent implements OnInit {
|
|
|
|
|
data[key].forEach(element => { //表格内容
|
|
|
|
|
let everyBody = {} |
|
|
|
|
element.propertyInfos.forEach((elements,index) => { |
|
|
|
|
if (elements.propertyType!=3) { everyBody[elements.propertyName] = elements.propertyValue } |
|
|
|
|
if (elements.propertyType!=3 && elements.propertyType!=6) { everyBody[elements.propertyName] = elements.propertyValue+elements.physicalUnit } |
|
|
|
|
if (elements.propertyType==6) { everyBody[elements.propertyName] = elements.propertyValue=='1'?'是':'否' } |
|
|
|
|
}); |
|
|
|
|
tableMsg.body.push(everyBody) |
|
|
|
|
}); |
|
|
|
@ -335,7 +338,8 @@ export class FireFightingDeviceComponent implements OnInit {
|
|
|
|
|
data.forEach(element => { //表格内容
|
|
|
|
|
let everyBody = {} |
|
|
|
|
element.propertyInfos.forEach((elements,index) => { |
|
|
|
|
if (elements.propertyType!=3) { everyBody[elements.propertyName] = elements.propertyValue } |
|
|
|
|
if (elements.propertyType!=3 && elements.propertyType!=6) { everyBody[elements.propertyName] = elements.propertyValue+elements.physicalUnit } |
|
|
|
|
if (elements.propertyType==6) { everyBody[elements.propertyName] = elements.propertyValue=='1'?'是':'否' } |
|
|
|
|
}); |
|
|
|
|
e.body.push(everyBody) |
|
|
|
|
}); |
|
|
|
@ -354,9 +358,14 @@ export class FireFightingDeviceComponent implements OnInit {
|
|
|
|
|
let newData = this.companyEachDetails[e.name] |
|
|
|
|
if (newData) { |
|
|
|
|
let data = {name:e.name, images:[]} |
|
|
|
|
let imgName
|
|
|
|
|
for (let key in newData) { |
|
|
|
|
newData[key].forEach(element => { |
|
|
|
|
element.propertyInfos.forEach(elements => { if (elements.propertyType==3) {data.images.push(elements)} }); |
|
|
|
|
element.propertyInfos.forEach( elements => {
|
|
|
|
|
if (elements.propertyName.includes('名称')) {imgName = elements.propertyValue} |
|
|
|
|
if (elements.propertyType==3) { |
|
|
|
|
elements.propertyName = imgName |
|
|
|
|
data.images.push(elements)} }); |
|
|
|
|
}); |
|
|
|
|
} //for
|
|
|
|
|
if (data.images.length) { |
|
|
|
@ -375,10 +384,15 @@ export class FireFightingDeviceComponent implements OnInit {
|
|
|
|
|
this.snackBar.open('暂无图片数据','确定',config); } |
|
|
|
|
} else { //非逐层统计时
|
|
|
|
|
let newData = this.companyDetails[e.name] |
|
|
|
|
let imgName
|
|
|
|
|
if (newData) { |
|
|
|
|
let data = {name:e.name, images:[]} |
|
|
|
|
newData.forEach(element => { |
|
|
|
|
element.propertyInfos.forEach(elements => { if (elements.propertyType==3) {data.images.push(elements)} }); |
|
|
|
|
element.propertyInfos.forEach(elements => {
|
|
|
|
|
if (elements.propertyName.includes('名称')) {imgName = elements.propertyValue} |
|
|
|
|
if (elements.propertyType==3) { |
|
|
|
|
elements.propertyName = imgName |
|
|
|
|
data.images.push(elements)} }); |
|
|
|
|
}); |
|
|
|
|
if (data.images.length) { |
|
|
|
|
let dialogRef = this.dialog.open(ImagesData,{width:'1350px',height:'700px',data}); //打开图片弹窗
|
|
|
|
@ -404,9 +418,14 @@ export class FireFightingDeviceComponent implements OnInit {
|
|
|
|
|
let newData = item.buildingEachDetails[e.name] |
|
|
|
|
if (newData) { |
|
|
|
|
let data = {name:e.name, images:[]} |
|
|
|
|
let imgName
|
|
|
|
|
for (let key in newData) { |
|
|
|
|
newData[key].forEach(element => { |
|
|
|
|
element.propertyInfos.forEach(elements => { if (elements.propertyType==3) {data.images.push(elements)} }); |
|
|
|
|
element.propertyInfos.forEach(elements => {
|
|
|
|
|
if (elements.propertyName.includes('名称')) {imgName = elements.propertyValue} |
|
|
|
|
if (elements.propertyType==3) { |
|
|
|
|
elements.propertyName = imgName |
|
|
|
|
data.images.push(elements)} }); |
|
|
|
|
}); |
|
|
|
|
} //for
|
|
|
|
|
if (data.images.length) { |
|
|
|
@ -425,10 +444,15 @@ export class FireFightingDeviceComponent implements OnInit {
|
|
|
|
|
this.snackBar.open('暂无图片数据','确定',config); } |
|
|
|
|
} else { //非逐层统计时
|
|
|
|
|
let newData = item.buildingDetails[e.name] |
|
|
|
|
let imgName
|
|
|
|
|
if (newData) { |
|
|
|
|
let data = {name:e.name, images:[]} |
|
|
|
|
newData.forEach(element => { |
|
|
|
|
element.propertyInfos.forEach(elements => { if (elements.propertyType==3) {data.images.push(elements)} }); |
|
|
|
|
element.propertyInfos.forEach(elements => {
|
|
|
|
|
if (elements.propertyName.includes('名称')) {imgName = elements.propertyValue} |
|
|
|
|
if (elements.propertyType==3)
|
|
|
|
|
elements.propertyName = imgName |
|
|
|
|
{data.images.push(elements)} }); |
|
|
|
|
}); |
|
|
|
|
if (data.images.length) { |
|
|
|
|
let dialogRef = this.dialog.open(ImagesData,{width:'1350px',height:'700px',data}); //打开图片弹窗
|
|
|
|
|