diff --git a/proxy.config.json b/proxy.config.json index f8ce786..5f2b935 100644 --- a/proxy.config.json +++ b/proxy.config.json @@ -1,6 +1,6 @@ { "/api": { - "target": "http://121.36.37.70:8207/", + "target": "http://183.194.244.232:8088/", "测试": "http://121.36.37.70:8207/", "生产": "http://183.194.244.232:8088/", "secure": false, diff --git a/src/app/ui/collection-tools-building/collection-tools.component.ts b/src/app/ui/collection-tools-building/collection-tools.component.ts index 670217f..6e93e29 100644 --- a/src/app/ui/collection-tools-building/collection-tools.component.ts +++ b/src/app/ui/collection-tools-building/collection-tools.component.ts @@ -901,7 +901,21 @@ export class CollectionToolsComponent2 implements OnInit { let SitePlanData = JSON.parse( JSON.stringify(this.canvasData.originaleveryStoreyData) ); + + for (const key in SitePlanData.data) { + if (Object.prototype.hasOwnProperty.call(SitePlanData.data, key)) { + const element = SitePlanData.data[key]; + element.Width = Number(element.Width); + element.Height = Number(element.Height); + element.PropertyInfos.forEach((item) => { + item.PropertyType = Number(item.PropertyType); + item.PropertyValue = String(item.PropertyValue); + }); + } + } + SitePlanData.data = JSON.stringify(SitePlanData.data); + let CompanyData = JSON.parse( JSON.stringify(this.canvasData.originalcompanyBuildingData) ); diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index b487fdc..66f4b92 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -898,6 +898,17 @@ export class CollectionToolsComponent implements OnInit { let SitePlanData = JSON.parse( JSON.stringify(this.canvasData.originaleveryStoreyData) ); + for (const key in SitePlanData.data) { + if (Object.prototype.hasOwnProperty.call(SitePlanData.data, key)) { + const element = SitePlanData.data[key]; + element.Width = Number(element.Width); + element.Height = Number(element.Height); + element.PropertyInfos.forEach((item) => { + item.PropertyType = Number(item.PropertyType); + item.PropertyValue = String(item.PropertyValue); + }); + } + } SitePlanData.data = JSON.stringify(SitePlanData.data); let CompanyData = JSON.parse( JSON.stringify(this.canvasData.originalcompanyBuildingData)