-
-
-
-
-
-
-
-
-
- 平面图
-
-
-
-
- 四周毗邻
-
-
-
-
- 消防设施
-
-
-
-
- 重点部位
-
-
-
-
- 功能分区
-
-
-
-
- 实景图
-
-
-
-
- cad
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/plan-audit/plan-record/plan-record.component.ts b/src/app/plan-audit/plan-record/plan-record.component.ts
index f0b0bbf..47b1516 100644
--- a/src/app/plan-audit/plan-record/plan-record.component.ts
+++ b/src/app/plan-audit/plan-record/plan-record.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-25 10:19:31
* @LastEditors: sueRimn
- * @LastEditTime: 2021-02-22 10:49:38
+ * @LastEditTime: 2021-03-03 14:01:47
*/
import { Component, OnInit,Inject } from '@angular/core';
import { FormControl } from '@angular/forms';
@@ -133,48 +133,67 @@ export class PlanRecordComponent implements OnInit {
//表格点击事件
viewer//全景图对象
tableClick(e,item){
+ this.showtype = -1
//e.target.parentElement.bgColor='#2196F3'
//console.log(e,item)
this.organizationName=''
this.id=item.id
this.fetchUrl=''
-
- this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{
- this.companyId=data.companyId
- this.companyName=data.companyName
- if(data.planType!=2&&data.planType!=1){
- this.fetchUrl=data.attachmentUrls[0]
- var index=this.fetchUrl.indexOf("\/")
- if(this.fetchUrl.substr(0,index)=='psw'){
- this.showtype=1
- var obj=document.getElementById('viewer')
- if(obj!=null){
- obj.innerHTML=''
+ this.viewer={}
+ if(item.contentType == 11){
+ window.setTimeout(()=>{
+ this.showtype = 3
+ sessionStorage.setItem('companyId',item.itemId)
+ },0)
+ }else if(item.contentType == 12){
+ //水源
+ this.showtype = 12
+ }else if(item.contentType == 13){
+ //消防力量
+ this.showtype = 13
+ }else if(item.contentType == 14){
+ //联动力量
+ this.showtype = 14
+ }else{
+ this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{
+ this.companyId=data.companyId
+ this.companyName=data.companyName
+ if(data.planType!=2&&data.planType!=1){
+ this.fetchUrl=data.attachmentUrls[0]
+ var index=this.fetchUrl.indexOf("\/")
+ if(this.fetchUrl.substr(0,index)=='psw'){
+ this.showtype=1
+ var obj=document.getElementById('viewer')
+ if(obj!=null){
+ obj.innerHTML=''
+ }
+ window.setTimeout(()=>{
+ this.viewer = new Viewer({
+ container: document.querySelector('#viewer'),
+ panorama:'/api/Objects/PlanPlatform/'+ this.fetchUrl,
+
+ });
+ })
+
+ }else{
+ this.lookWord()
}
- window.setTimeout(()=>{
- this.viewer = new Viewer({
- container: document.querySelector('#viewer'),
- panorama:'/api/Objects/PlanPlatform/'+ this.fetchUrl,
-
- });
- })
-
}else{
- this.lookWord()
+ this.organizationName=item.organizationName
+ this.planData = data
+ this.handleData()
+ return
+
+ //this.src=`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`
+ //this.iframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.src);
+ //window.open(`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`)
}
- }else{
- this.organizationName=item.organizationName
- this.planData = data
- this.handleData()
- return
- //this.src=`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`
- //this.iframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.src);
- //window.open(`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`)
- }
-
-
- })
+
+ })
+ }
+
+
if(e.checked){
this.shenheTable.push(item)
diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.html b/src/app/plan-audit/wait-examineer/wait-examineer.component.html
index a8fd8c8..b367861 100644
--- a/src/app/plan-audit/wait-examineer/wait-examineer.component.html
+++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.html
@@ -82,7 +82,7 @@
+
diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
index a8aef5f..95ffacf 100644
--- a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
+++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-25 16:13:50
* @LastEditors: sueRimn
- * @LastEditTime: 2021-03-02 15:12:43
+ * @LastEditTime: 2021-03-03 14:35:23
*/
import { Component, Inject, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@@ -163,8 +163,10 @@ export class WaitExamineerComponent implements OnInit {
this.fetchUrl=''
this.viewer={}
if(item.contentType == 11){
- this.showtype = 3
- sessionStorage.setItem('companyId',item.itemId)
+ window.setTimeout(()=>{
+ this.showtype = 3
+ sessionStorage.setItem('companyId',item.itemId)
+ },0)
}else if(item.contentType == 12){
//水源
this.showtype = 12
@@ -440,7 +442,7 @@ export class WaitExamineerComponent implements OnInit {
var body={
id:this.shenheTable[i].id,
itemId:this.shenheTable[i].itemId,
- verifyState:4
+ verifyState:5
}
companyrefuseList.push(body)
}