|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
* @LastEditors: sueRimn |
|
|
|
|
* @LastEditTime: 2021-08-16 11:12:52 |
|
|
|
|
*/ |
|
|
|
|
import { Component, Inject, OnInit } from '@angular/core'; |
|
|
|
|
import { Component, ElementRef, Inject, OnInit } from '@angular/core'; |
|
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
|
|
import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; |
|
|
|
|
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; |
|
|
|
@ -26,7 +26,7 @@ declare var echarts: any;
|
|
|
|
|
}) |
|
|
|
|
export class WaitExamineerComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
constructor(private http: HttpClient, public snackBar: MatSnackBar, private sanitizer: DomSanitizer, public dialog: MatDialog) { |
|
|
|
|
constructor(private http: HttpClient, public snackBar: MatSnackBar, private sanitizer: DomSanitizer, public dialog: MatDialog,private elementRef: ElementRef) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
preparelevels: any//编制级别下拉框
|
|
|
|
@ -180,17 +180,13 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
differentContentOfPicture: any//当前单位变更数据 之 实景图
|
|
|
|
|
bianzhi = false |
|
|
|
|
radioClick(e, item) { |
|
|
|
|
e.stopPropagation(); |
|
|
|
|
this.selectedItem = item |
|
|
|
|
//console.log(item)
|
|
|
|
|
// console.log('当前选择的信息',JSON.parse(this.selectedItem.differentContent) )
|
|
|
|
|
if (item.contentType == 11 && this.selectedItem.differentContent) { |
|
|
|
|
|
|
|
|
|
let differentContent = JSON.parse(this.selectedItem.differentContent) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//console.log('差异信息', differentContent)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 单位信息
|
|
|
|
|
this.differentContentOfUnitInfo = differentContent.filter(item => item.propertyName == 'basicInfo') |
|
|
|
|
// 实景图
|
|
|
|
@ -342,17 +338,38 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (e.checked) { |
|
|
|
|
|
|
|
|
|
let div = this.elementRef.nativeElement.querySelector(`.check${item.id}`) |
|
|
|
|
div.checked = true |
|
|
|
|
let isTrue = this.shenheTable.find(element=>{ return element.id == item.id }) |
|
|
|
|
if (!isTrue) { |
|
|
|
|
this.shenheTable.push(item) |
|
|
|
|
} |
|
|
|
|
this.radioid = item.itemId |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// check change
|
|
|
|
|
checkChange(e, item) { |
|
|
|
|
if (e.target.checked) { |
|
|
|
|
let isTrue = this.shenheTable.find(element=>{ return element.id == item.id }) |
|
|
|
|
if (!isTrue) { |
|
|
|
|
this.shenheTable.push(item) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
for (var i = 0; i < this.shenheTable.length; i++) { |
|
|
|
|
if (this.shenheTable[i].id == item.id) { |
|
|
|
|
this.shenheTable.splice(i, 1) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (!this.shenheTable.length) { |
|
|
|
|
this.showtype = -1 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.radioid = item.itemId |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stopClick(e) { |
|
|
|
|
e.stopPropagation(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//毕升
|
|
|
|
@ -368,8 +385,9 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
} else if (suffix == 'pdf') { |
|
|
|
|
this.src = `/api/Objects/PlanPlatform/` + this.fetchUrl |
|
|
|
|
} else if (suffix == 'jpeg' || suffix == 'jpg' || suffix == 'png') { |
|
|
|
|
this.src = "" |
|
|
|
|
this.lookImg(this.fetchUrl) |
|
|
|
|
this.showtype = 1024 //图片
|
|
|
|
|
this.src = `/api/Objects/PlanPlatform/` + this.fetchUrl |
|
|
|
|
return |
|
|
|
|
} else if (suffix == 'mp4' || suffix == 'MP4') { |
|
|
|
|
this.showtype = 1080 //视频
|
|
|
|
|
this.src = `/api/Objects/PlanPlatform/` + this.fetchUrl |
|
|
|
|