|
|
@ -4,7 +4,7 @@ |
|
|
|
* @Author: sueRimn |
|
|
|
* @Author: sueRimn |
|
|
|
* @Date: 2020-12-25 10:19:31 |
|
|
|
* @Date: 2020-12-25 10:19:31 |
|
|
|
* @LastEditors: sueRimn |
|
|
|
* @LastEditors: sueRimn |
|
|
|
* @LastEditTime: 2021-03-20 15:12:24 |
|
|
|
* @LastEditTime: 2021-03-26 15:21:16 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
import { Component, OnInit,Inject } from '@angular/core'; |
|
|
|
import { Component, OnInit,Inject } from '@angular/core'; |
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
@ -24,7 +24,13 @@ export class PlanRecordComponent 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) { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pcshow |
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
if(window.matchMedia("(max-width: 1300px)").matches){ |
|
|
|
|
|
|
|
this.pcshow=false |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.pcshow=true |
|
|
|
|
|
|
|
} |
|
|
|
let level = sessionStorage.getItem("level"); |
|
|
|
let level = sessionStorage.getItem("level"); |
|
|
|
if(level == "0"){//如果是总队
|
|
|
|
if(level == "0"){//如果是总队
|
|
|
|
this.preparelevels = [ |
|
|
|
this.preparelevels = [ |
|
|
@ -82,6 +88,7 @@ export class PlanRecordComponent implements OnInit { |
|
|
|
organizationName |
|
|
|
organizationName |
|
|
|
planData |
|
|
|
planData |
|
|
|
id |
|
|
|
id |
|
|
|
|
|
|
|
itemid |
|
|
|
companyId |
|
|
|
companyId |
|
|
|
fetchUrl |
|
|
|
fetchUrl |
|
|
|
companyName |
|
|
|
companyName |
|
|
@ -139,8 +146,9 @@ export class PlanRecordComponent implements OnInit { |
|
|
|
tableClick(e,item){ |
|
|
|
tableClick(e,item){ |
|
|
|
this.showtype = -1 |
|
|
|
this.showtype = -1 |
|
|
|
//e.target.parentElement.bgColor='#2196F3'
|
|
|
|
//e.target.parentElement.bgColor='#2196F3'
|
|
|
|
//console.log(e,item)
|
|
|
|
console.log(item) |
|
|
|
this.organizationName='' |
|
|
|
this.organizationName='' |
|
|
|
|
|
|
|
this.itemid=item.itemId |
|
|
|
this.id=item.id |
|
|
|
this.id=item.id |
|
|
|
this.fetchUrl='' |
|
|
|
this.fetchUrl='' |
|
|
|
this.viewer={} |
|
|
|
this.viewer={} |
|
|
@ -298,11 +306,11 @@ export class PlanRecordComponent implements OnInit { |
|
|
|
}) |
|
|
|
}) |
|
|
|
sessionStorage.setItem("buildingTypeId", this.compantData.buildingTypes.length? this.compantData.buildingTypes[0].id: undefined); |
|
|
|
sessionStorage.setItem("buildingTypeId", this.compantData.buildingTypes.length? this.compantData.buildingTypes[0].id: undefined); |
|
|
|
sessionStorage.setItem("companyId",this.companyId); |
|
|
|
sessionStorage.setItem("companyId",this.companyId); |
|
|
|
sessionStorage.setItem("planId",this.id); |
|
|
|
sessionStorage.setItem("planId",this.itemid); |
|
|
|
sessionStorage.setItem("editable",'0'); |
|
|
|
sessionStorage.setItem("editable",'0'); |
|
|
|
sessionStorage.setItem("planName",data.name) |
|
|
|
sessionStorage.setItem("planName",data.name) |
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
this.thirdPartyURL=this.sanitizer.bypassSecurityTrustResourceUrl(`/planAudit/planpass?id=${this.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`); |
|
|
|
this.thirdPartyURL=this.sanitizer.bypassSecurityTrustResourceUrl(`/keyUnit/viewunitinfoplans?id=${companyId}`); |
|
|
|
//window.open(`/keyUnit/viewunitinfoplan?id=${companyId}`)
|
|
|
|
//window.open(`/keyUnit/viewunitinfoplan?id=${companyId}`)
|
|
|
|
} else if (this.planData.planMode==3) { //预案planMode=3时, 第三方网址'
|
|
|
|
} else if (this.planData.planMode==3) { //预案planMode=3时, 第三方网址'
|
|
|
|
this.showtype=2 |
|
|
|
this.showtype=2 |
|
|
|