Browse Source

[修正]消防设施图片BUG修正

develop
陈鹏飞 5 years ago
parent
commit
2a77582a1e
  1. 3
      src/app/ui/fire-fighting-device/fire-fighting-device.component.scss
  2. 13
      src/app/ui/fire-fighting-device/fire-fighting-device.component.ts

3
src/app/ui/fire-fighting-device/fire-fighting-device.component.scss

@ -72,6 +72,9 @@ textarea {
width: 100%;
text-align: center;
border-collapse:collapse;
word-break:break-all;
word-wrap:break-all;
table-layout:fixed;
th {
height: 35px;
border: 1px solid #999;}

13
src/app/ui/fire-fighting-device/fire-fighting-device.component.ts

@ -363,7 +363,7 @@ export class FireFightingDeviceComponent implements OnInit {
newData[key].forEach(element => {
element.propertyInfos.forEach( elements => {
if (elements.propertyName.includes('名称')) {imgName = elements.propertyValue}
if (elements.propertyType==3) {
if (elements.propertyType===3) {
elements.propertyName = imgName
data.images.push(elements)} });
});
@ -390,7 +390,7 @@ export class FireFightingDeviceComponent implements OnInit {
newData.forEach(element => {
element.propertyInfos.forEach(elements => {
if (elements.propertyName.includes('名称')) {imgName = elements.propertyValue}
if (elements.propertyType==3) {
if (elements.propertyType===3) {
elements.propertyName = imgName
data.images.push(elements)} });
});
@ -423,7 +423,7 @@ export class FireFightingDeviceComponent implements OnInit {
newData[key].forEach(element => {
element.propertyInfos.forEach(elements => {
if (elements.propertyName.includes('名称')) {imgName = elements.propertyValue}
if (elements.propertyType==3) {
if (elements.propertyType===3) {
elements.propertyName = imgName
data.images.push(elements)} });
});
@ -450,9 +450,10 @@ export class FireFightingDeviceComponent implements OnInit {
newData.forEach(element => {
element.propertyInfos.forEach(elements => {
if (elements.propertyName.includes('名称')) {imgName = elements.propertyValue}
if (elements.propertyType==3)
elements.propertyName = imgName
{data.images.push(elements)} });
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}); //打开图片弹窗

Loading…
Cancel
Save