|
@@ -676,7 +676,14 @@ function openDateSelect(){
|
|
|
|
|
|
<template>
|
|
<template>
|
|
<div class="chart-detail-page" v-if="chartInfo">
|
|
<div class="chart-detail-page" v-if="chartInfo">
|
|
- <div class="chart-title">{{currentLang==='en'?(chartInfo.ChartNameEn||chartInfo.ChartName):chartInfo.ChartName}}</div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="chart-title"
|
|
|
|
+ :style="chartInfo.ChartThemeStyle?`
|
|
|
|
+ text-align:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.align};
|
|
|
|
+ font-size:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.style.fontSize}px;
|
|
|
|
+ color:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.style.color}
|
|
|
|
+ `:''"
|
|
|
|
+ >{{currentLang==='en'?(chartInfo.ChartNameEn||chartInfo.ChartName):chartInfo.ChartName}}</div>
|
|
|
|
|
|
<!-- 一般曲线图选择时间区间或者季节图选择日期 -->
|
|
<!-- 一般曲线图选择时间区间或者季节图选择日期 -->
|
|
<div
|
|
<div
|
|
@@ -722,8 +729,35 @@ function openDateSelect(){
|
|
<img class="pad-change-chart-btn" src="@/assets/imgs/icon_arrow2.png" alt="" @click="handleSwitchChart('prev')" v-if="chartSortListData.length>0">
|
|
<img class="pad-change-chart-btn" src="@/assets/imgs/icon_arrow2.png" alt="" @click="handleSwitchChart('prev')" v-if="chartSortListData.length>0">
|
|
<img class="pad-change-chart-btn pad-change-chart-next-btn" src="@/assets/imgs/icon_arrow2.png" alt="" @click="handleSwitchChart('next')" v-if="chartSortListData.length>0">
|
|
<img class="pad-change-chart-btn pad-change-chart-next-btn" src="@/assets/imgs/icon_arrow2.png" alt="" @click="handleSwitchChart('next')" v-if="chartSortListData.length>0">
|
|
<div class="chart-box" id="chart-box"></div>
|
|
<div class="chart-box" id="chart-box"></div>
|
|
|
|
+
|
|
|
|
+ <!-- 底部来源,图表说明 -->
|
|
|
|
+ <div class="chart-bottom-insruction-info"
|
|
|
|
+ v-if="(chartInfo.SourcesFrom&&JSON.parse(chartInfo.SourcesFrom).isShow) || (chartInfo.Instructions&&JSON.parse(chartInfo.Instructions).isShow)">
|
|
|
|
+
|
|
|
|
+ <div
|
|
|
|
+ class="chart-source"
|
|
|
|
+ v-if="chartInfo.SourcesFrom&&JSON.parse(chartInfo.SourcesFrom).isShow"
|
|
|
|
+ :style="`
|
|
|
|
+ color: ${ JSON.parse(chartInfo.SourcesFrom).color };
|
|
|
|
+ font-size: ${ JSON.parse(chartInfo.SourcesFrom).fontSize }px;
|
|
|
|
+ `"
|
|
|
|
+ >
|
|
|
|
+ 数据来源:{{JSON.parse(chartInfo.SourcesFrom).text}}
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 图表说明 -->
|
|
|
|
+ <div
|
|
|
|
+ class="chart-instruction text_oneLine"
|
|
|
|
+ v-if="chartInfo.Instructions&&JSON.parse(chartInfo.Instructions).isShow"
|
|
|
|
+ v-text="JSON.parse(chartInfo.Instructions).text"
|
|
|
|
+ :style="`
|
|
|
|
+ color: ${JSON.parse(chartInfo.Instructions).color};
|
|
|
|
+ font-size: ${ JSON.parse(chartInfo.Instructions).fontSize }px
|
|
|
|
+ `"
|
|
|
|
+ ></div>
|
|
|
|
+ </div>
|
|
<!-- 作者 -->
|
|
<!-- 作者 -->
|
|
<div class="author-box" style="text-align:right">作者:{{chartInfo.SysUserRealName}}</div>
|
|
<div class="author-box" style="text-align:right">作者:{{chartInfo.SysUserRealName}}</div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
<!-- 手机端选择时间区间模块 -->
|
|
<!-- 手机端选择时间区间模块 -->
|
|
<div class="select-year-box" v-if="sameOptionType.includes(chartInfo.ChartType)">
|
|
<div class="select-year-box" v-if="sameOptionType.includes(chartInfo.ChartType)">
|
|
@@ -1043,6 +1077,11 @@ function openDateSelect(){
|
|
height: 700px;
|
|
height: 700px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .chart-bottom-insruction-info {
|
|
|
|
+ width: 100%;
|
|
|
|
+ margin: 0 auto;
|
|
|
|
+ }
|
|
|
|
+
|
|
.select-time-box{
|
|
.select-time-box{
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -1274,6 +1313,10 @@ function openDateSelect(){
|
|
height: 370px;
|
|
height: 370px;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
+ .chart-bottom-insruction-info {
|
|
|
|
+ width: 85%;
|
|
|
|
+ margin: 0 auto;
|
|
|
|
+ }
|
|
.select-time-box,.select-year-box,.fix-bot-action-box{
|
|
.select-time-box,.select-year-box,.fix-bot-action-box{
|
|
display: none;
|
|
display: none;
|
|
}
|
|
}
|