|
@@ -1384,7 +1384,7 @@ export default {
|
|
|
res.data[0][k].stage == worksDetail[i].stage &&
|
|
|
res.data[0][k].task == worksDetail[i].task
|
|
|
) {
|
|
|
- workJson[k].img.push({ src: JSON.parse(worksDetail[i].content).url, id: i });
|
|
|
+ workJson[k].img.push({ src: worksDetail[i].content, id: i });
|
|
|
}
|
|
|
}
|
|
|
for (var i = 0; i < askInfo.length; i++) {
|
|
@@ -1515,18 +1515,26 @@ export default {
|
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
|
if (
|
|
|
a.indexOf(
|
|
|
- JSON.parse(pptInfo[i].content).url.split(".")[JSON.parse(pptInfo[i].content).url.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ pptInfo[i].content
|
|
|
+ .split(".")
|
|
|
+ [
|
|
|
+ pptInfo[i].content.split(".").length - 1
|
|
|
+ ].toLocaleUpperCase()
|
|
|
) != -1
|
|
|
) {
|
|
|
var a =
|
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
- JSON.parse(pptInfo[i].content).url;
|
|
|
+ pptInfo[i].content;
|
|
|
workJson[k].wpptInfo.push(a);
|
|
|
this.showPDF = false;
|
|
|
} else if (
|
|
|
- JSON.parse(pptInfo[i].content).url.split(".")[JSON.parse(pptInfo[i].content).url.split(".").length - 1].toLocaleUpperCase() == "PDF"
|
|
|
+ pptInfo[i].content
|
|
|
+ .split(".")
|
|
|
+ [
|
|
|
+ pptInfo[i].content.split(".").length - 1
|
|
|
+ ].toLocaleUpperCase() == "PDF"
|
|
|
) {
|
|
|
- workJson[k].wpptInfo.push(JSON.parse(pptInfo[i].content).url);
|
|
|
+ workJson[k].wpptInfo.push(pptInfo[i].content);
|
|
|
this.showPDF = true;
|
|
|
}
|
|
|
}
|