|
|
@ -14,24 +14,24 @@ import { MaskLayerService } from 'src/app/mask-layer.service'; |
|
|
|
export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
constructor( |
|
|
|
constructor( |
|
|
|
private http:HttpClient, |
|
|
|
private http: HttpClient, |
|
|
|
public dialog: MatDialog, |
|
|
|
public dialog: MatDialog, |
|
|
|
public snackBar: MatSnackBar, |
|
|
|
public snackBar: MatSnackBar, |
|
|
|
public dialogRef: MatDialogRef<any>, |
|
|
|
public dialogRef: MatDialogRef<any>, |
|
|
|
@Inject(MAT_DIALOG_DATA) public data,public canvasData: CanvasShareDataService,private maskLayerService:MaskLayerService,) { } |
|
|
|
@Inject(MAT_DIALOG_DATA) public data, public canvasData: CanvasShareDataService, private maskLayerService: MaskLayerService,) { } |
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
params = {companyId: sessionStorage.getItem('companyId')} |
|
|
|
params = { companyId: sessionStorage.getItem('companyId') } |
|
|
|
checked:boolean = false;//是否为避难层
|
|
|
|
checked: boolean = false;//是否为避难层
|
|
|
|
file:any = null; //上传的文件
|
|
|
|
file: any = null; //上传的文件
|
|
|
|
|
|
|
|
|
|
|
|
//选择文件
|
|
|
|
//选择文件
|
|
|
|
selectFile (e) { |
|
|
|
selectFile(e) { |
|
|
|
if (e.target.files.length) { |
|
|
|
if (e.target.files.length) { |
|
|
|
let maxSize = 100*1024*1024 //100MB限制
|
|
|
|
let maxSize = 100 * 1024 * 1024 //100MB限制
|
|
|
|
if (e.target.files[0].size <= maxSize) { |
|
|
|
if (e.target.files[0].size <= maxSize) { |
|
|
|
this.file = e.target.files[0] |
|
|
|
this.file = e.target.files[0] |
|
|
|
this.selectedType = 'image' |
|
|
|
this.selectedType = 'image' |
|
|
@ -39,15 +39,15 @@ export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
|
this.snackBar.open('上传图片需小于100MB','确定',config); |
|
|
|
this.snackBar.open('上传图片需小于100MB', '确定', config); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
selectedType:String //新建平面图的底图类型 gis/image
|
|
|
|
selectedType: String //新建平面图的底图类型 gis/image
|
|
|
|
|
|
|
|
|
|
|
|
//导入GIS
|
|
|
|
//导入GIS
|
|
|
|
toGIS () { |
|
|
|
toGIS() { |
|
|
|
this.selectedType = 'gis'; |
|
|
|
this.selectedType = 'gis'; |
|
|
|
this.file = null; |
|
|
|
this.file = null; |
|
|
|
(<HTMLInputElement>document.getElementById('uploadFile')).value = null; //清空input框缓存
|
|
|
|
(<HTMLInputElement>document.getElementById('uploadFile')).value = null; //清空input框缓存
|
|
|
@ -58,20 +58,20 @@ export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//提交表单创建平面图
|
|
|
|
//提交表单创建平面图
|
|
|
|
onSubmit (e) { |
|
|
|
onSubmit(e) { |
|
|
|
if (this.file && this.selectedType == 'image') { |
|
|
|
if (this.file && this.selectedType == 'image') { |
|
|
|
if (this.file.name.toLowerCase().indexOf('png') == -1 && this.file.name.toLowerCase().indexOf('jpg') == -1 && this.file.name.toLowerCase().indexOf('jpeg') == -1) { |
|
|
|
if (this.file.name.toLowerCase().indexOf('png') == -1 && this.file.name.toLowerCase().indexOf('jpg') == -1 && this.file.name.toLowerCase().indexOf('jpeg') == -1) { |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
|
this.snackBar.open('请上传图片后缀为png,jpg,jpeg的文件', '确定', config); |
|
|
|
this.snackBar.open('请上传图片后缀为png,jpg,jpeg的文件', '确定', config); |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
this.maskLayerService.sendMessage(true) |
|
|
|
this.maskLayerService.sendMessage(true) |
|
|
|
if (this.file.size<=5*1024*1024) { //小于5MB
|
|
|
|
if (this.file.size <= 5 * 1024 * 1024) { //小于5MB
|
|
|
|
let formData = new FormData() |
|
|
|
let formData = new FormData() |
|
|
|
formData.append("file",this.file) |
|
|
|
formData.append("file", this.file) |
|
|
|
this.http.post(`/api/Objects/WebPlan2D/${sessionStorage.getItem('companyId')}`,formData).subscribe((data:any)=>{ |
|
|
|
this.http.post(`/api/Objects/WebPlan2D/${sessionStorage.getItem('companyId')}`, formData).subscribe((data: any) => { |
|
|
|
let imgURL = '/api/Objects/WebPlan2D/' + data.objectName |
|
|
|
let imgURL = '/api/Objects/WebPlan2D/' + data.objectName |
|
|
|
let that = this |
|
|
|
let that = this |
|
|
|
let img = new Image() |
|
|
|
let img = new Image() |
|
|
@ -82,15 +82,15 @@ export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
companyId: sessionStorage.getItem('companyId'), |
|
|
|
companyId: sessionStorage.getItem('companyId'), |
|
|
|
name: e.name, |
|
|
|
name: e.name, |
|
|
|
order: that.data.order, |
|
|
|
order: that.data.order, |
|
|
|
area:Number(e.area), |
|
|
|
area: Number(e.area), |
|
|
|
details:e.details, |
|
|
|
details: e.details, |
|
|
|
enabled: true, |
|
|
|
enabled: true, |
|
|
|
modifiedTime: new Date(), |
|
|
|
modifiedTime: new Date(), |
|
|
|
imageUrl: imgURL, |
|
|
|
imageUrl: imgURL, |
|
|
|
imageWidth: img.width, |
|
|
|
imageWidth: img.width, |
|
|
|
imageHeight: img.height |
|
|
|
imageHeight: img.height |
|
|
|
} |
|
|
|
} |
|
|
|
that.http.post('/api/SitePlans',data).subscribe(data=>{ |
|
|
|
that.http.post('/api/SitePlans', data).subscribe(data => { |
|
|
|
that.dialogRef.close('总平面图'); |
|
|
|
that.dialogRef.close('总平面图'); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { //建筑 创建楼层/区域
|
|
|
|
} else { //建筑 创建楼层/区域
|
|
|
@ -99,23 +99,23 @@ export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
buildingId: that.data.Panel.id, |
|
|
|
buildingId: that.data.Panel.id, |
|
|
|
name: e.name, |
|
|
|
name: e.name, |
|
|
|
order: that.data.order, |
|
|
|
order: that.data.order, |
|
|
|
area:Number(e.area), |
|
|
|
area: Number(e.area), |
|
|
|
details:e.details, |
|
|
|
details: e.details, |
|
|
|
enabled: true, |
|
|
|
enabled: true, |
|
|
|
modifiedTime: new Date(), |
|
|
|
modifiedTime: new Date(), |
|
|
|
imageUrl: imgURL, |
|
|
|
imageUrl: imgURL, |
|
|
|
imageWidth: img.width, |
|
|
|
imageWidth: img.width, |
|
|
|
imageHeight: img.height |
|
|
|
imageHeight: img.height |
|
|
|
} |
|
|
|
} |
|
|
|
that.http.post('/api/BuildingAreas',data,{params:that.params}).subscribe(data=>{ |
|
|
|
that.http.post('/api/BuildingAreas', data, { params: that.params }).subscribe(data => { |
|
|
|
that.dialogRef.close('建筑'); |
|
|
|
that.dialogRef.close('建筑'); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) //post
|
|
|
|
}) //post
|
|
|
|
} else if (this.file.size>5*1024*1024 && this.file.size<=100*1024*1024) { //大于5MB
|
|
|
|
} else if (this.file.size > 5 * 1024 * 1024 && this.file.size <= 100 * 1024 * 1024) { //大于5MB
|
|
|
|
let upload = this.canvasData.sectionUpload(sessionStorage.getItem('companyId'),this.file) |
|
|
|
let upload = this.canvasData.sectionUpload(sessionStorage.getItem('companyId'), this.file) |
|
|
|
upload.then(res=>{
|
|
|
|
upload.then(res => { |
|
|
|
let imgURL = '/api/Objects/PlanPlatform/' + res |
|
|
|
let imgURL = '/api/Objects/PlanPlatform/' + res |
|
|
|
let that = this |
|
|
|
let that = this |
|
|
|
let img = new Image() |
|
|
|
let img = new Image() |
|
|
@ -126,15 +126,15 @@ export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
companyId: sessionStorage.getItem('companyId'), |
|
|
|
companyId: sessionStorage.getItem('companyId'), |
|
|
|
name: e.name, |
|
|
|
name: e.name, |
|
|
|
order: that.data.order, |
|
|
|
order: that.data.order, |
|
|
|
area:Number(e.area), |
|
|
|
area: Number(e.area), |
|
|
|
details:e.details, |
|
|
|
details: e.details, |
|
|
|
enabled: true, |
|
|
|
enabled: true, |
|
|
|
modifiedTime: new Date(), |
|
|
|
modifiedTime: new Date(), |
|
|
|
imageUrl: imgURL, |
|
|
|
imageUrl: imgURL, |
|
|
|
imageWidth: img.width, |
|
|
|
imageWidth: img.width, |
|
|
|
imageHeight: img.height |
|
|
|
imageHeight: img.height |
|
|
|
} |
|
|
|
} |
|
|
|
that.http.post('/api/SitePlans',data).subscribe(data=>{ |
|
|
|
that.http.post('/api/SitePlans', data).subscribe(data => { |
|
|
|
that.dialogRef.close('总平面图'); |
|
|
|
that.dialogRef.close('总平面图'); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { //建筑 创建楼层/区域
|
|
|
|
} else { //建筑 创建楼层/区域
|
|
|
@ -143,43 +143,43 @@ export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
buildingId: that.data.Panel.id, |
|
|
|
buildingId: that.data.Panel.id, |
|
|
|
name: e.name, |
|
|
|
name: e.name, |
|
|
|
order: that.data.order, |
|
|
|
order: that.data.order, |
|
|
|
area:Number(e.area), |
|
|
|
area: Number(e.area), |
|
|
|
details:e.details, |
|
|
|
details: e.details, |
|
|
|
enabled: true, |
|
|
|
enabled: true, |
|
|
|
modifiedTime: new Date(), |
|
|
|
modifiedTime: new Date(), |
|
|
|
imageUrl: imgURL, |
|
|
|
imageUrl: imgURL, |
|
|
|
imageWidth: img.width, |
|
|
|
imageWidth: img.width, |
|
|
|
imageHeight: img.height |
|
|
|
imageHeight: img.height |
|
|
|
} |
|
|
|
} |
|
|
|
that.http.post('/api/BuildingAreas',data,{params:that.params}).subscribe(data=>{ |
|
|
|
that.http.post('/api/BuildingAreas', data, { params: that.params }).subscribe(data => { |
|
|
|
that.dialogRef.close('建筑'); |
|
|
|
that.dialogRef.close('建筑'); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} else if(this.selectedType == 'gis'){ |
|
|
|
} else if (this.selectedType == 'gis') { |
|
|
|
let data = { |
|
|
|
let data = { |
|
|
|
companyId: sessionStorage.getItem('companyId'), |
|
|
|
companyId: sessionStorage.getItem('companyId'), |
|
|
|
name: e.name, |
|
|
|
name: e.name, |
|
|
|
order: this.data.order, |
|
|
|
order: this.data.order, |
|
|
|
area:Number(e.area), |
|
|
|
area: Number(e.area), |
|
|
|
details:e.details, |
|
|
|
details: e.details, |
|
|
|
enabled: true, |
|
|
|
enabled: true, |
|
|
|
modifiedTime: new Date(), |
|
|
|
modifiedTime: new Date(), |
|
|
|
imageUrl: 'null', |
|
|
|
imageUrl: 'null', |
|
|
|
imageWidth: 0, |
|
|
|
imageWidth: 0, |
|
|
|
imageHeight: 0, |
|
|
|
imageHeight: 0, |
|
|
|
isGis:true |
|
|
|
isGis: true |
|
|
|
} |
|
|
|
} |
|
|
|
this.http.post('/api/SitePlans',data).subscribe(data=>{ |
|
|
|
this.http.post('/api/SitePlans', data).subscribe(data => { |
|
|
|
this.dialogRef.close('总平面图'); |
|
|
|
this.dialogRef.close('总平面图'); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
|
this.snackBar.open('请上传图片','确定',config); |
|
|
|
this.snackBar.open('请上传图片', '确定', config); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -195,7 +195,7 @@ export class leftFunctionalDomainComponentPlan implements OnInit { |
|
|
|
}) |
|
|
|
}) |
|
|
|
export class editPlaneFigureComponentPlan implements OnInit { |
|
|
|
export class editPlaneFigureComponentPlan implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
constructor(private http:HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar,public dialogRef: MatDialogRef<any>,@Inject(MAT_DIALOG_DATA) public data,public canvasData: CanvasShareDataService,private eventManager: EventManager,) { } |
|
|
|
constructor(private http: HttpClient, public dialog: MatDialog, public snackBar: MatSnackBar, public dialogRef: MatDialogRef<any>, @Inject(MAT_DIALOG_DATA) public data, public canvasData: CanvasShareDataService, private eventManager: EventManager,) { } |
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
console.log(this.data.isGis) |
|
|
|
console.log(this.data.isGis) |
|
|
@ -207,17 +207,17 @@ export class editPlaneFigureComponentPlan implements OnInit { |
|
|
|
this.imgHeight = this.data.buildingData.imageHeight || 0 |
|
|
|
this.imgHeight = this.data.buildingData.imageHeight || 0 |
|
|
|
this.oldWidth = JSON.parse(JSON.stringify(this.data.buildingData.imageWidth || 0)) |
|
|
|
this.oldWidth = JSON.parse(JSON.stringify(this.data.buildingData.imageWidth || 0)) |
|
|
|
this.oldHeight = JSON.parse(JSON.stringify(this.data.buildingData.imageHeight || 0)) |
|
|
|
this.oldHeight = JSON.parse(JSON.stringify(this.data.buildingData.imageHeight || 0)) |
|
|
|
if (this.imgWidth==0 && this.imgHeight==0 && this.data.buildingData.imageUrl) { |
|
|
|
if (this.imgWidth == 0 && this.imgHeight == 0 && this.data.buildingData.imageUrl) { |
|
|
|
let that = this |
|
|
|
let that = this |
|
|
|
let img = new Image() |
|
|
|
let img = new Image() |
|
|
|
img.src = this.data.buildingData.imageUrl |
|
|
|
img.src = this.data.buildingData.imageUrl |
|
|
|
img.onload = function () { |
|
|
|
img.onload = function () { |
|
|
|
that.imgWidth = img.width |
|
|
|
that.imgWidth = img.width |
|
|
|
that.imgHeight = img.height |
|
|
|
that.imgHeight = img.height |
|
|
|
that.imgScale = Number((that.imgWidth/that.imgHeight)) |
|
|
|
that.imgScale = Number((that.imgWidth / that.imgHeight)) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.imgScale = Number((this.imgWidth/this.imgHeight)) |
|
|
|
this.imgScale = Number((this.imgWidth / this.imgHeight)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.eventManager.addGlobalEventListener('window', 'keydown', (event: any) => { |
|
|
|
this.eventManager.addGlobalEventListener('window', 'keydown', (event: any) => { |
|
|
@ -227,22 +227,22 @@ export class editPlaneFigureComponentPlan implements OnInit { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
oldWidth:number; //原图片宽
|
|
|
|
oldWidth: number; //原图片宽
|
|
|
|
oldHeight:number; //原图片高
|
|
|
|
oldHeight: number; //原图片高
|
|
|
|
|
|
|
|
|
|
|
|
params = {companyId: sessionStorage.getItem('companyId')} |
|
|
|
params = { companyId: sessionStorage.getItem('companyId') } |
|
|
|
name:any; //name
|
|
|
|
name: any; //name
|
|
|
|
checked:boolean = false;//是否为避难层
|
|
|
|
checked: boolean = false;//是否为避难层
|
|
|
|
area:number; //面积
|
|
|
|
area: number; //面积
|
|
|
|
details:string; //详情
|
|
|
|
details: string; //详情
|
|
|
|
|
|
|
|
|
|
|
|
imgWidth:number; //图片宽度
|
|
|
|
imgWidth: number; //图片宽度
|
|
|
|
imgHeight:number; //图片高度
|
|
|
|
imgHeight: number; //图片高度
|
|
|
|
isItEqual:boolean = true; //是否等比
|
|
|
|
isItEqual: boolean = true; //是否等比
|
|
|
|
imgScale:number; //图片 宽高比例
|
|
|
|
imgScale: number; //图片 宽高比例
|
|
|
|
|
|
|
|
|
|
|
|
//图片 宽高变化时
|
|
|
|
//图片 宽高变化时
|
|
|
|
inputChange (e) { |
|
|
|
inputChange(e) { |
|
|
|
if (this.isItEqual) { |
|
|
|
if (this.isItEqual) { |
|
|
|
if (e == 0) { //需要改高度
|
|
|
|
if (e == 0) { //需要改高度
|
|
|
|
this.imgHeight = Math.round(this.imgWidth / this.imgScale) |
|
|
|
this.imgHeight = Math.round(this.imgWidth / this.imgScale) |
|
|
@ -260,12 +260,12 @@ export class editPlaneFigureComponentPlan implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//重新计算 宽高比例
|
|
|
|
//重新计算 宽高比例
|
|
|
|
setImgScale (e) { |
|
|
|
setImgScale(e) { |
|
|
|
e.checked? this.imgScale = Number((this.imgWidth/this.imgHeight)) : null |
|
|
|
e.checked ? this.imgScale = Number((this.imgWidth / this.imgHeight)) : null |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//关闭
|
|
|
|
//关闭
|
|
|
|
close () { |
|
|
|
close() { |
|
|
|
if (this.oldWidth === this.imgWidth && this.oldHeight === this.imgHeight) { |
|
|
|
if (this.oldWidth === this.imgWidth && this.oldHeight === this.imgHeight) { |
|
|
|
this.dialogRef.close() |
|
|
|
this.dialogRef.close() |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -276,7 +276,7 @@ export class editPlaneFigureComponentPlan implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//提交表单修改平面图
|
|
|
|
//提交表单修改平面图
|
|
|
|
onSubmit (e) { |
|
|
|
onSubmit(e) { |
|
|
|
if (!this.data.isBuilding) { //总平面图 修改平面图
|
|
|
|
if (!this.data.isBuilding) { //总平面图 修改平面图
|
|
|
|
let data = { |
|
|
|
let data = { |
|
|
|
companyId: sessionStorage.getItem('companyId'), |
|
|
|
companyId: sessionStorage.getItem('companyId'), |
|
|
@ -288,15 +288,15 @@ export class editPlaneFigureComponentPlan implements OnInit { |
|
|
|
imageHeight: this.imgHeight, |
|
|
|
imageHeight: this.imgHeight, |
|
|
|
imageAngle: this.data.buildingData.imageAngle, |
|
|
|
imageAngle: this.data.buildingData.imageAngle, |
|
|
|
order: this.data.buildingData.order, |
|
|
|
order: this.data.buildingData.order, |
|
|
|
area:e.area, |
|
|
|
area: e.area, |
|
|
|
details:e.details, |
|
|
|
details: e.details, |
|
|
|
enabled: this.data.buildingData.enabled, |
|
|
|
enabled: this.data.buildingData.enabled, |
|
|
|
modifiedTime: new Date(), |
|
|
|
modifiedTime: new Date(), |
|
|
|
isGis: this.data.isGis, |
|
|
|
isGis: this.data.isGis, |
|
|
|
zoomLevel:this.data.buildingData.zoomLevel, |
|
|
|
zoomLevel: this.data.buildingData.zoomLevel, |
|
|
|
defaultCenter:this.data.buildingData.defaultCenter |
|
|
|
defaultCenter: this.data.buildingData.defaultCenter |
|
|
|
} |
|
|
|
} |
|
|
|
this.http.put(`/api/SitePlans/${this.data.buildingData.id}`,data).subscribe(data=>{ |
|
|
|
this.http.put(`/api/SitePlans/${this.data.buildingData.id}`, data).subscribe(data => { |
|
|
|
this.dialogRef.close('总平面图'); |
|
|
|
this.dialogRef.close('总平面图'); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { //建筑 修改楼层/区域
|
|
|
|
} else { //建筑 修改楼层/区域
|
|
|
@ -311,12 +311,12 @@ export class editPlaneFigureComponentPlan implements OnInit { |
|
|
|
imageHeight: this.imgHeight, |
|
|
|
imageHeight: this.imgHeight, |
|
|
|
imageAngle: this.data.buildingData.imageAngle, |
|
|
|
imageAngle: this.data.buildingData.imageAngle, |
|
|
|
order: this.data.buildingData.order, |
|
|
|
order: this.data.buildingData.order, |
|
|
|
area:e.area, |
|
|
|
area: e.area, |
|
|
|
details:e.details, |
|
|
|
details: e.details, |
|
|
|
enabled: this.data.buildingData.enabled, |
|
|
|
enabled: this.data.buildingData.enabled, |
|
|
|
modifiedTime: new Date(), |
|
|
|
modifiedTime: new Date(), |
|
|
|
} |
|
|
|
} |
|
|
|
this.http.put(`/api/BuildingAreas/${this.data.buildingData.id}`,data,{params:this.params}).subscribe(data=>{ |
|
|
|
this.http.put(`/api/BuildingAreas/${this.data.buildingData.id}`, data, { params: this.params }).subscribe(data => { |
|
|
|
this.dialogRef.close('建筑'); |
|
|
|
this.dialogRef.close('建筑'); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|