Browse Source

地址修改

chenlei 3 weeks ago
parent
commit
093e504c2d
1 changed files with 7 additions and 5 deletions
  1. 7 5
      src/views/report/Detail.vue

+ 7 - 5
src/views/report/Detail.vue

@@ -89,7 +89,9 @@ async function getReportInfo() {
     }else{
       htmlStr=reportInfo.value.Content
     }
+    htmlStr = modifyReportContentIframeData(htmlStr)
     splitReportContent(htmlStr)
+    
 
     // 智能研报将富文本盒子高度设置为自动
     if(res.Data.Report.ReportLayout===2){
@@ -104,11 +106,11 @@ async function getReportInfo() {
 getReportInfo()
 
 // // 修改报告中嵌入的图表地址
-// function modifyReportContentIframeData(str){
-//   let temStr=str.replace(/http:\/\/eta.dwfutures.com:8001/g,'https://dwresearch.dwfutures.com')
-//   temStr=temStr.replace(/http:\/\/192.168.43.22:8001/g,'https://dwresearch.dwfutures.com')
-//   return temStr.replace(/http:\/\/58.210.74.21:9100\/etastatic/g,'https://dwresearch.dwfutures.com/etastatic')
-// }
+function modifyReportContentIframeData(str){
+  let temStr=str.replace(/http:\/\/etachart.jrqh.com.cn:8001/g,'https://eta.jrqh.com.cn:59091')
+  temStr=temStr.replace(/http:\/\/etaminio.jrqh.com.cn:9000/g,'https://eta.jrqh.com.cn:59090')
+  return temStr
+}
 
 
 // 报告内容分页