|
|
|
@ -632,10 +632,10 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
AxMessageSystem.addListener('selectionChanged', ()=>{ |
|
|
|
|
if(this.canvas.selection.size() == 1){//如果是单选
|
|
|
|
|
this.isMultipleAsset = false |
|
|
|
|
console.log('单选',this.canvas.selection.first().assetData) |
|
|
|
|
// console.log('单选',this.canvas.selection.first().assetData)
|
|
|
|
|
this.setAssetsProperty(this.canvas.selection.first().assetData) |
|
|
|
|
}else if(this.canvas.selection.size()){ |
|
|
|
|
console.log('多选') |
|
|
|
|
// console.log('多选')
|
|
|
|
|
this.multipleAssetData = this.canvas.selection.all() |
|
|
|
|
this.firstMultipleAssetData = this.canvas.selection.first() |
|
|
|
|
this.multipleAsset = { |
|
|
|
@ -672,7 +672,7 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
})
|
|
|
|
|
}) |
|
|
|
|
console.log(666,_this.multipleAsset.PropertyInfos) |
|
|
|
|
// console.log(666,_this.multipleAsset.PropertyInfos)
|
|
|
|
|
} |
|
|
|
|
}, this) |
|
|
|
|
|
|
|
|
@ -772,7 +772,7 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
multipleAssetInputChange(i,e){ |
|
|
|
|
e.stopPropagation() |
|
|
|
|
this.multipleAssetData.forEach(item=>{ |
|
|
|
|
console.log(item) |
|
|
|
|
// console.log(item)
|
|
|
|
|
item.assetData.PropertyInfos.forEach(element => { |
|
|
|
|
if(element.PropertyName == i.PropertyName){ |
|
|
|
|
element.PropertyValue = i.PropertyValue |
|
|
|
@ -786,7 +786,7 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
multipleAssetRadioChange(i,value){ |
|
|
|
|
// e.stopPropagation()
|
|
|
|
|
this.multipleAssetData.forEach(item=>{ |
|
|
|
|
console.log(item) |
|
|
|
|
// console.log(item)
|
|
|
|
|
item.assetData.PropertyInfos.forEach(element => { |
|
|
|
|
if(element.PropertyName == i.PropertyName){ |
|
|
|
|
element.PropertyValue = value |
|
|
|
@ -800,7 +800,7 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
multipleSupplyArea(i,e){ |
|
|
|
|
e.stopPropagation() |
|
|
|
|
this.multipleAssetData.forEach(item=>{ |
|
|
|
|
console.log(item) |
|
|
|
|
// console.log(item)
|
|
|
|
|
item.assetData.PropertyInfos.forEach(element => { |
|
|
|
|
if(element.PropertyName == i.PropertyName){ |
|
|
|
|
element.PropertyValue = i.PropertyValue |
|
|
|
|