|
|
@ -113,7 +113,7 @@ export class EntryPlanLookComponent implements OnInit { |
|
|
|
height:'800px', |
|
|
|
height:'800px', |
|
|
|
data: e.attachmentUrls[0] |
|
|
|
data: e.attachmentUrls[0] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}else if(e.attachmentUrls[0].substr(e.attachmentUrls[0].length-3,e.attachmentUrls[0].length)=='JPG'||e.attachmentUrls[0].substr(e.attachmentUrls[0].length-3,e.attachmentUrls[0].length)=='png'||e.attachmentUrls[0].substr(e.attachmentUrls[0].length-3,e.attachmentUrls[0].length)=='jpeg'){ |
|
|
|
}else if(e.attachmentUrls[0].substr(e.attachmentUrls[0].length-3,e.attachmentUrls[0].length)=='JPG'||e.attachmentUrls[0].substr(e.attachmentUrls[0].length-3,e.attachmentUrls[0].length)=='png'||e.attachmentUrls[0].substr(e.attachmentUrls[0].length-3,e.attachmentUrls[0].length)=='jpeg'||e.attachmentUrls[0].substr(e.attachmentUrls[0].length-3,e.attachmentUrls[0].length)=='jpg'){ |
|
|
|
let data = e |
|
|
|
let data = e |
|
|
|
const dialogRef = this.dialog.open(ImgDetails, {//调用open方法打开对话框并且携带参数过去
|
|
|
|
const dialogRef = this.dialog.open(ImgDetails, {//调用open方法打开对话框并且携带参数过去
|
|
|
|
data:data.attachmentUrls, |
|
|
|
data:data.attachmentUrls, |
|
|
@ -137,7 +137,7 @@ export class EntryPlanLookComponent implements OnInit { |
|
|
|
doc: { |
|
|
|
doc: { |
|
|
|
docId: docId, |
|
|
|
docId: docId, |
|
|
|
title: filename, |
|
|
|
title: filename, |
|
|
|
fetchUrl: `http://172.18.0.1:8000/api/Objects/PlanPlatform/`+fetchUrl, |
|
|
|
fetchUrl: `http://39.106.78.171:8000/api/Objects/PlanPlatform/`+fetchUrl, |
|
|
|
}, |
|
|
|
}, |
|
|
|
user: { |
|
|
|
user: { |
|
|
|
uid: identityJsonparse.sub, |
|
|
|
uid: identityJsonparse.sub, |
|
|
@ -153,7 +153,7 @@ export class EntryPlanLookComponent 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://10.81.73.39:18080/apps/editor/openPreview?data=${base64}`) |
|
|
|
window.open(`http://121.5.10.84:80/apps/editor/openPreview?data=${base64}`) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|