Browse Source

[新增] 单位重点部位/建筑重点部位 新增AssetId

develop
徐振升 4 years ago
parent
commit
bce8e3b179
  1. 18
      src/app/canvas-share-data.service.ts

18
src/app/canvas-share-data.service.ts

@ -56,7 +56,8 @@ export class CanvasShareDataService {
if (item.Name === '毗邻') { if (item.Name === '毗邻') {
const adjoin = new CompanyAdjoinInfo(); const adjoin = new CompanyAdjoinInfo();
adjoin.AssetId = item.Id; adjoin.AssetId = item.Id;
adjoin.ImageUrls = [] adjoin.Id = '';
adjoin.ImageUrls = [];
adjoin.CompanyId = sessionStorage.getItem('companyId'); adjoin.CompanyId = sessionStorage.getItem('companyId');
item.PropertyInfos.forEach(element => { item.PropertyInfos.forEach(element => {
if (element.PropertyName === '方向') { if (element.PropertyName === '方向') {
@ -82,8 +83,9 @@ export class CanvasShareDataService {
if (item.Name === '毗邻') { if (item.Name === '毗邻') {
const adjoin = new BuildingAdjoinInfo(); const adjoin = new BuildingAdjoinInfo();
adjoin.AssetId = item.Id; adjoin.AssetId = item.Id;
adjoin.Id = '';
adjoin.BuildingId = this.selectStorey.buildingId; adjoin.BuildingId = this.selectStorey.buildingId;
adjoin.ImageUrls = [] adjoin.ImageUrls = [];
item.PropertyInfos.forEach(element => { item.PropertyInfos.forEach(element => {
if (element.PropertyName === '方向') { if (element.PropertyName === '方向') {
adjoin.Direction = Number(element.PropertyValue); adjoin.Direction = Number(element.PropertyValue);
@ -107,8 +109,9 @@ export class CanvasShareDataService {
const item = this.originalcompanyBuildingData.data[key]; const item = this.originalcompanyBuildingData.data[key];
if (item.Name === '重点部位') { if (item.Name === '重点部位') {
const important = new CompanyImportantLocationInfo(); const important = new CompanyImportantLocationInfo();
important.Id = item.Id; important.AssetId = item.Id;
important.ImageUrls = [] important.Id = '';
important.ImageUrls = [];
important.CompanyId = sessionStorage.getItem('companyId'); important.CompanyId = sessionStorage.getItem('companyId');
item.PropertyInfos.forEach(element => { item.PropertyInfos.forEach(element => {
if (element.PropertyName === '名称/编号') { if (element.PropertyName === '名称/编号') {
@ -139,8 +142,9 @@ export class CanvasShareDataService {
const item = this.originalcompanyBuildingData.data[key]; const item = this.originalcompanyBuildingData.data[key];
if (item.Name === '重点部位') { if (item.Name === '重点部位') {
const important = new BuildingImportantLocationInfo(); const important = new BuildingImportantLocationInfo();
important.Id = item.Id; important.AssetId = item.Id;
important.ImageUrls = [] important.Id = '';
important.ImageUrls = [];
important.BuildingId = this.selectStorey.buildingId; important.BuildingId = this.selectStorey.buildingId;
item.PropertyInfos.forEach(element => { item.PropertyInfos.forEach(element => {
if (element.PropertyName === '名称/编号') { if (element.PropertyName === '名称/编号') {
@ -240,6 +244,7 @@ export class BuildingImportantLocationInfo {
public Nature: string; public Nature: string;
public Hazards: string; public Hazards: string;
public ImageUrls: string[]; public ImageUrls: string[];
public AssetId: string;
} }
/** /**
* *
@ -253,6 +258,7 @@ export class CompanyImportantLocationInfo {
public Nature: string; public Nature: string;
public Hazards: string; public Hazards: string;
public ImageUrls: string[]; public ImageUrls: string[];
public AssetId: string;
} }
/** /**
* *

Loading…
Cancel
Save