|
|
|
@ -366,16 +366,18 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
//动态属性素材input框值改变
|
|
|
|
|
assetInputChange(i, e) { |
|
|
|
|
let index = this.canvasAssetObj.PropertyInfos.findIndex((item) => { |
|
|
|
|
return i.PropertyName == item.PropertyName; |
|
|
|
|
}); |
|
|
|
|
if (this.myIsNaN(e.target.value)) { |
|
|
|
|
e.target.value = String(e.target.value); |
|
|
|
|
} |
|
|
|
|
this.canvasAssetObj.PropertyInfos[index].PropertyValue = e.target.value; |
|
|
|
|
this.canvasData.isChange = true; |
|
|
|
|
if (!this.isGis) { |
|
|
|
|
this.canvas.refreshIcon(this.canvasAssetObj.Id); |
|
|
|
|
if (e.target.value) { |
|
|
|
|
let index = this.canvasAssetObj.PropertyInfos.findIndex((item) => { |
|
|
|
|
return i.PropertyName == item.PropertyName; |
|
|
|
|
}); |
|
|
|
|
if (this.myIsNaN(e.target.value)) { |
|
|
|
|
e.target.value = String(e.target.value); |
|
|
|
|
} |
|
|
|
|
this.canvasAssetObj.PropertyInfos[index].PropertyValue = e.target.value; |
|
|
|
|
this.canvasData.isChange = true; |
|
|
|
|
if (!this.isGis) { |
|
|
|
|
this.canvas.refreshIcon(this.canvasAssetObj.Id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1014,7 +1016,6 @@ export class CollectionToolsPlanComponent implements OnInit {
|
|
|
|
|
//如果是基本信息编辑模式
|
|
|
|
|
// console.log(1234, object);
|
|
|
|
|
for (const key in object) { |
|
|
|
|
|
|
|
|
|
if (object[key].Name == "毗邻") { |
|
|
|
|
//如果是相同楼层,则筛选出毗邻
|
|
|
|
|
object[key].PropertyInfos.forEach((element) => { |
|
|
|
|