|
|
@ -4,7 +4,7 @@ |
|
|
|
* @Author: sueRimn |
|
|
|
* @Author: sueRimn |
|
|
|
* @Date: 2020-12-25 16:13:50 |
|
|
|
* @Date: 2020-12-25 16:13:50 |
|
|
|
* @LastEditors: sueRimn |
|
|
|
* @LastEditors: sueRimn |
|
|
|
* @LastEditTime: 2021-01-28 11:30:48 |
|
|
|
* @LastEditTime: 2021-01-29 15:45:27 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
import { Component, OnInit } from '@angular/core'; |
|
|
|
import { Component, OnInit } from '@angular/core'; |
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
@ -12,6 +12,7 @@ import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; |
|
|
|
import { HttpClient } from '@angular/common/http' |
|
|
|
import { HttpClient } from '@angular/common/http' |
|
|
|
import CryptoJS from 'crypto-js/crypto-js' |
|
|
|
import CryptoJS from 'crypto-js/crypto-js' |
|
|
|
import { DomSanitizer } from '@angular/platform-browser'; |
|
|
|
import { DomSanitizer } from '@angular/platform-browser'; |
|
|
|
|
|
|
|
import { Viewer } from 'photo-sphere-viewer'; |
|
|
|
declare var echarts: any; |
|
|
|
declare var echarts: any; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
@ -101,6 +102,7 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
chuorzhong//判断初审还是终审
|
|
|
|
chuorzhong//判断初审还是终审
|
|
|
|
radioid//选中的id
|
|
|
|
radioid//选中的id
|
|
|
|
shenheTable=[]//选中要审核的对象
|
|
|
|
shenheTable=[]//选中要审核的对象
|
|
|
|
|
|
|
|
showAllimg=false |
|
|
|
|
|
|
|
|
|
|
|
//获取表格数据
|
|
|
|
//获取表格数据
|
|
|
|
getAlltabledate(){ |
|
|
|
getAlltabledate(){ |
|
|
@ -144,11 +146,25 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
//radio点击事件
|
|
|
|
//radio点击事件
|
|
|
|
radioClick(e,item){ |
|
|
|
radioClick(e,item){ |
|
|
|
//e.target.parentElement.bgColor='#2196F3'
|
|
|
|
//e.target.parentElement.bgColor='#2196F3'
|
|
|
|
console.log(e,item) |
|
|
|
//console.log(e,item)
|
|
|
|
let filename:string |
|
|
|
let filename:string |
|
|
|
let fetchUrl |
|
|
|
let fetchUrl |
|
|
|
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{ |
|
|
|
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{ |
|
|
|
fetchUrl=data.attachmentUrls[0] |
|
|
|
fetchUrl=data.attachmentUrls[0] |
|
|
|
|
|
|
|
if(fetchUrl.substr(0,3)=='psw'){ |
|
|
|
|
|
|
|
this.wordShow=false |
|
|
|
|
|
|
|
this.showAllimg=true |
|
|
|
|
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
|
|
|
const viewer = new Viewer({ |
|
|
|
|
|
|
|
container: document.querySelector('#viewer'), |
|
|
|
|
|
|
|
panorama:'/api/Objects/PlanPlatform/'+ fetchUrl, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.wordShow=true |
|
|
|
|
|
|
|
this.showAllimg=false |
|
|
|
this.http.get(`/api/ObjectMetadata/PlanPlatform/${fetchUrl}`).subscribe((data:any)=>{ |
|
|
|
this.http.get(`/api/ObjectMetadata/PlanPlatform/${fetchUrl}`).subscribe((data:any)=>{ |
|
|
|
filename=data.fileName
|
|
|
|
filename=data.fileName
|
|
|
|
let json={ |
|
|
|
let json={ |
|
|
@ -156,7 +172,7 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
docId: item.id,
|
|
|
|
docId: item.id,
|
|
|
|
title: filename, |
|
|
|
title: filename, |
|
|
|
//title: filename,
|
|
|
|
//title: filename,
|
|
|
|
fetchUrl: "http://39.106.78.171:8000/api/Objects/PlanPlatform/"+fetchUrl |
|
|
|
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+fetchUrl |
|
|
|
}, |
|
|
|
}, |
|
|
|
user: { |
|
|
|
user: { |
|
|
|
uid: "test", |
|
|
|
uid: "test", |
|
|
@ -174,6 +190,8 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
this.iframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.src); |
|
|
|
this.iframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.src); |
|
|
|
//window.open(`http://121.5.10.84/apps/editor/openPreview?data=${base64}`)
|
|
|
|
//window.open(`http://121.5.10.84/apps/editor/openPreview?data=${base64}`)
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if(e.checked){ |
|
|
|
if(e.checked){ |
|
|
|