|
|
@ -4,7 +4,7 @@ |
|
|
|
* @Author: sueRimn |
|
|
|
* @Author: sueRimn |
|
|
|
* @Date: 2021-03-15 11:32:30 |
|
|
|
* @Date: 2021-03-15 11:32:30 |
|
|
|
* @LastEditors: sueRimn |
|
|
|
* @LastEditors: sueRimn |
|
|
|
* @LastEditTime: 2021-04-20 17:14:54 |
|
|
|
* @LastEditTime: 2021-04-28 15:33:00 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
import { Component, OnInit, ViewChild, Inject } from '@angular/core'; |
|
|
|
import { Component, OnInit, ViewChild, Inject } from '@angular/core'; |
|
|
|
import { HttpClient } from '@angular/common/http' |
|
|
|
import { HttpClient } from '@angular/common/http' |
|
|
@ -82,7 +82,7 @@ export class AllPlanComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
//查看详情
|
|
|
|
//查看详情
|
|
|
|
lookPlan(e){ |
|
|
|
lookPlan(e){ |
|
|
|
if(e.planMode == 0){
|
|
|
|
if(e.planType == 16||e.planType == 4){
|
|
|
|
var index=e.attachmentUrls[0].indexOf("\/") |
|
|
|
var index=e.attachmentUrls[0].indexOf("\/") |
|
|
|
if(e.attachmentUrls[0].substr(0,index)=='psw'){ |
|
|
|
if(e.attachmentUrls[0].substr(0,index)=='psw'){ |
|
|
|
const dialogRef = this.dialog.open(PsViewer, { |
|
|
|
const dialogRef = this.dialog.open(PsViewer, { |
|
|
@ -122,17 +122,21 @@ export class AllPlanComponent implements OnInit { |
|
|
|
var stringjson=JSON.stringify(json) |
|
|
|
var stringjson=JSON.stringify(json) |
|
|
|
var wordArray = CryptoJS.enc.Utf8.parse(stringjson); |
|
|
|
var wordArray = CryptoJS.enc.Utf8.parse(stringjson); |
|
|
|
var base64 = CryptoJS.enc.Base64.stringify(wordArray); |
|
|
|
var base64 = CryptoJS.enc.Base64.stringify(wordArray); |
|
|
|
window.open(`http://121.5.10.84/apps/editor/openPreview?data=${base64}`) |
|
|
|
window.open(`http://172.26.166.38:18080/apps/editor/openPreview?data=${base64}`) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(e.planMode == 1){ |
|
|
|
/* if(e.planType == 4){ |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
var index=e.attachmentUrls[0].indexOf("\/") |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
if(e.attachmentUrls[0].substr(0,index)=='psw'){ |
|
|
|
config.duration = 3000 |
|
|
|
const dialogRef = this.dialog.open(PsViewer, { |
|
|
|
this.snackBar.open('查看导入word文件','确定',config); |
|
|
|
width: '1500px', |
|
|
|
|
|
|
|
height:'800px', |
|
|
|
|
|
|
|
data: e.attachmentUrls[0] |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if(e.planMode == 2){ //如果是在线编辑
|
|
|
|
} */ |
|
|
|
|
|
|
|
if(e.planType == 1){ //如果是在线编辑
|
|
|
|
let id = e.id
|
|
|
|
let id = e.id
|
|
|
|
sessionStorage.setItem("planId",id) |
|
|
|
sessionStorage.setItem("planId",id) |
|
|
|
sessionStorage.setItem("companyId",e.company.id) |
|
|
|
sessionStorage.setItem("companyId",e.company.id) |
|
|
@ -142,7 +146,7 @@ export class AllPlanComponent implements OnInit { |
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
window.open(`/keyUnit/viewunitinfoplan?id=${companyId}&orName=${this.route.snapshot.queryParams.orName}&orId=${this.route.snapshot.queryParams.orId}`); |
|
|
|
window.open(`/keyUnit/viewunitinfoplan?id=${companyId}&orName=${this.route.snapshot.queryParams.orName}&orId=${this.route.snapshot.queryParams.orId}`); |
|
|
|
} |
|
|
|
} |
|
|
|
if(e.planMode == 3){ //如果是跳转网页
|
|
|
|
if(e.planType == 2){ //如果是跳转网页
|
|
|
|
sessionStorage.setItem("url",e.url) |
|
|
|
sessionStorage.setItem("url",e.url) |
|
|
|
window.open(`/planManagement/webLook`) |
|
|
|
window.open(`/planManagement/webLook`) |
|
|
|
} |
|
|
|
} |
|
|
|