|
@@ -1,20 +1,29 @@
|
|
|
<template>
|
|
|
<div id="reportdtl" v-if="isshow">
|
|
|
- <header>{{reportInfo.Title}}</header>
|
|
|
+ <header>
|
|
|
+ <span>{{reportInfo.Title}}</span>
|
|
|
+ <img :src="configInfo.ReportLogo" alt="" v-if="configInfo.ReportEnLogoShow==='true'"/>
|
|
|
+ </header>
|
|
|
<div style="padding:0 35px 0; box-sizing:border-box; color:#666; font-size:24px; overflow:hidden;">
|
|
|
<span>{{$route.query.fromPage=='strategyReport'?'Horizon Insights FICC Team':reportInfo.Author}}</span>
|
|
|
<!-- 已发布、已通过展示发布时间 -->
|
|
|
<span style="float:right;" v-if="[2,6].includes(reportInfo.State)">{{reportInfo.PublishTime}}</span>
|
|
|
</div>
|
|
|
|
|
|
- <!-- 英文版摘要+overview 必填-->
|
|
|
- <div id="abstract-en" v-if="$route.query.fromPage=='en'||isEn">
|
|
|
- <div
|
|
|
- class="abstract"
|
|
|
- :style="{borderBottom:reportInfo.Overview?'1px solid #C1C1C1':'none',paddingBottom:reportInfo.Overview?'20px':'0'}"
|
|
|
- >
|
|
|
- <div>Abstract:{{reportInfo.Abstract}}</div>
|
|
|
+ <div id="abstract" v-if="$route.query.fromPage=='strategyReport'">
|
|
|
+ <div>
|
|
|
+ <div v-if="reportInfo.Abstract">Abstract:<span v-html="reportInfo.Abstract"></span></div>
|
|
|
+ <div>Key Takeaways:<span v-html="reportInfo.KeyTakeaways"></span></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <template v-else>
|
|
|
+ <div id="abstract" v-if="reportInfo.Abstract">
|
|
|
+ <div>{{($route.query.fromPage=='en'||isEn)?'Abstract':'摘要'}}:{{reportInfo.Abstract}}</div>
|
|
|
</div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 英文版摘要+overview 必填-->
|
|
|
+ <div id="overview-wrapper" v-if="$route.query.fromPage=='en'||isEn">
|
|
|
<div id="overview" v-if="reportInfo.KeyTakeaways" :style="{borderBottom:reportInfo.Overview?'1px solid #C1C1C1':'none',paddingBottom:reportInfo.Overview?'20px':'0'}">
|
|
|
<p style="margin-bottom:20px;"><strong>KeyTakeaways:</strong></p>
|
|
|
<div class="overview" style="overflow:hidden;" v-html="reportInfo.KeyTakeaways"></div>
|
|
@@ -25,17 +34,7 @@
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <div id="abstract" v-else-if="$route.query.fromPage=='strategyReport'">
|
|
|
- <div>
|
|
|
- <div v-if="reportInfo.Abstract">Abstract:<span v-html="reportInfo.Abstract"></span></div>
|
|
|
- <div>Key Takeaways:<span v-html="reportInfo.KeyTakeaways"></span></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <template v-else>
|
|
|
- <div id="abstract" v-if="reportInfo.Abstract">
|
|
|
- <div>{{($route.query.fromPage=='en'||isEn)?'Abstract':'摘要'}}:{{reportInfo.Abstract}}</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
+
|
|
|
<div id="resetsty" style="padding:30px; box-sizing:border-box; overflow:hidden;">
|
|
|
<block v-if="reportInfo.ChapterType=='day'||reportInfo.ChapterType=='week'">
|
|
|
<div class="chapter-item" v-for="item in reportInfo.ChapterList" :key="item.ReportChapterId">
|
|
@@ -50,6 +49,9 @@
|
|
|
<div id="resetcss" style="overflow:hidden;" v-html="reportInfo.Content"></div>
|
|
|
</block>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="disclaimer-cont" v-html="configInfo.DisclaimerEn" v-if="configInfo.DisclaimerEn"></div>
|
|
|
+
|
|
|
<div v-if="linkUrl" style="width:100px;height30px;position:absolute;right:-100px;top:100px;cursor:pointer;">
|
|
|
<div v-permission="$route.query.fromPage==='en'
|
|
|
?permissionBtn.enReportManageBtn.enReport_reportView_copyWechat
|
|
@@ -70,6 +72,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { reportdetail,departInterence } from 'api/api.js';
|
|
|
+ import {etaBaseConfigInterence} from '@/api/modules/etaBaseConfigApi.js';
|
|
|
import http from '@/api/http.js';
|
|
|
import * as reportEnInterface from '@/api/modules/reportEnApi';
|
|
|
import {strategyReportInterence} from '@/api/api.js'
|
|
@@ -118,7 +121,8 @@
|
|
|
isShowCode:false,
|
|
|
|
|
|
systemUserInfo:null,
|
|
|
- // linkUrl:this.$route.query.code?'https://share.hzinsights.com/reportdtl?code='+this.$route.query.code:''
|
|
|
+
|
|
|
+ configInfo: {}
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -135,6 +139,7 @@
|
|
|
this.isshow=true;
|
|
|
}
|
|
|
this.getSystemUserInfo()
|
|
|
+ this.getConfigSet()
|
|
|
},
|
|
|
updated(){
|
|
|
$('#resetcss').find('img').css({display:'block',margin:'0 auto'});
|
|
@@ -142,6 +147,16 @@
|
|
|
$("#resetcss").find("pre").css({display: "block",whiteSpace: "pre-wrap"});
|
|
|
},
|
|
|
methods: {
|
|
|
+ async getConfigSet() {
|
|
|
+ const res = await etaBaseConfigInterence.getBaseConfig()
|
|
|
+
|
|
|
+ if(res.Ret!==200) return
|
|
|
+ const {ReportLogo,Disclaimer,DisclaimerEn,ReportCenterLogoShow,ReportEnLogoShow} = res.Data
|
|
|
+ this.configInfo = {
|
|
|
+ ReportLogo,DisclaimerEn,ReportEnLogoShow
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
getSystemUserInfo(){
|
|
|
departInterence.systemUserInfo().then(res=>{
|
|
|
if(res.Ret===200){
|
|
@@ -193,9 +208,24 @@
|
|
|
<style lang="scss">
|
|
|
#reportdtl{ background:#fff; max-width:1200px; margin:10px auto;position:relative;
|
|
|
img{ display:'block'; width:'100%'; margin:'0 auto'; }
|
|
|
- header{ padding:10px 30px; box-sizing:border-box; font-size:28px; font-weight:500; color:#333; background:#fff; }
|
|
|
+ header{
|
|
|
+ padding:10px 30px; box-sizing:border-box; font-size:28px; font-weight:500; color:#333; background:#fff;
|
|
|
+ display: flex;justify-content: space-between;
|
|
|
+ }
|
|
|
#abstract{ padding:10px 30px 0; box-sizing:border-box; font-size:22px; line-height:36px;
|
|
|
- >div{ padding:10px 20px; box-sizing:border-box; background:rgba(20,121,253,0.1); color:#4099ef; border-radius:10px; }
|
|
|
+ >div{
|
|
|
+ padding:10px 20px; box-sizing:border-box; border-radius:10px;
|
|
|
+ position: relative;
|
|
|
+ &::after {
|
|
|
+ position: absolute;
|
|
|
+ width: 5px;
|
|
|
+ height: 100%;
|
|
|
+ content: '';
|
|
|
+ background:#007aff;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
#resetsty{
|
|
|
img{ display:block; max-width:100%; height:auto; margin:0 auto; }
|
|
@@ -221,19 +251,13 @@
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
- #abstract-en{
|
|
|
+ #overview-wrapper{
|
|
|
margin:35px 35px;
|
|
|
padding:20px;
|
|
|
background-color: rgba(77, 130, 191, 0.1);
|
|
|
border: 1px solid #E2E2E2;
|
|
|
- .abstract{
|
|
|
- font-size: 24px;
|
|
|
- font-weight: 600;
|
|
|
- padding-bottom: 20px;
|
|
|
- border-bottom: 1px solid #C1C1C1;
|
|
|
- }
|
|
|
+
|
|
|
#overview{
|
|
|
- margin-top:20px;
|
|
|
font-size: 24px;
|
|
|
.overview{
|
|
|
margin-top:20px;
|
|
@@ -252,9 +276,14 @@
|
|
|
list-style-position: inside !important;
|
|
|
}
|
|
|
}
|
|
|
- @media (max-width:1400px) {
|
|
|
- margin-right: 100px;
|
|
|
-
|
|
|
- }
|
|
|
+ @media (max-width:1400px) {
|
|
|
+ margin-right: 100px;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .disclaimer-cont {
|
|
|
+ padding: 30px;
|
|
|
+ border-top: 1px solid #E2E2E2;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|