@ -73,10 +73,12 @@ export class planComponent implements OnInit {
setTimeout ( ( ) = > {
obj . PropertyInfos . forEach ( item = > {
if ( item . PropertyType == 4 ) {
if ( document . getElementById ( 'viewerjs' ) ) {
this . gallery = new Viewer ( document . getElementById ( 'viewerjs' ) , {
url : 'data-original'
} ) ;
}
}
} )
} , 0 ) ;
@ -142,6 +144,12 @@ export class planComponent implements OnInit {
rightSwitch ( type ) {
if ( type == 1 ) {
this . isProperty = true
setTimeout ( ( ) = > {
this . gallery = new Viewer ( document . getElementById ( 'viewerjs' ) , {
url : 'data-original'
} ) ;
this . gallery . update ( )
} , 0 ) ;
} else {
this . isProperty = false
}
@ -715,6 +723,7 @@ export class planComponent implements OnInit {
for ( let key in storeyData . data ) { //筛选数据 没有匹配全部放入到 其他 数组
let noMatch = this . allFireElements . find ( every = > every . id === storeyData . data [ key ] . FireElementId )
if ( ! noMatch ) {
storeyData . data [ key ] . isLook = true
this . allFireElements [ this . allFireElements . length - 1 ] . children . push ( storeyData . data [ key ] )
}
}