提交 2dbd281c authored 作者: 朱政's avatar 朱政

feat:摘要页组件替换

上级 6714a4e9
...@@ -121,14 +121,12 @@ ...@@ -121,14 +121,12 @@
<div class="box3"> <div class="box3">
<AnalysisBox title="报告摘要" :showAllBtn="true"> <AnalysisBox title="报告摘要" :showAllBtn="true">
<div class="box3-main"> <div class="box3-main">
<div class="box3-top"> <AiSummary>
<div class="top-title"> <template #summary-content>
<div class="title-image"> {{ box1Data }}
<img src="../images/title-image.png" alt="" /> </template>
</div> </AiSummary>
</div>
</div>
<div class="box3-text"> {{ box1Data }}</div>
</div> </div>
</AnalysisBox> </AnalysisBox>
</div> </div>
...@@ -210,6 +208,7 @@ import { ...@@ -210,6 +208,7 @@ import {
import { getChartAnalysis } from "@/api/aiAnalysis/index"; import { getChartAnalysis } from "@/api/aiAnalysis/index";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import "echarts-wordcloud"; import "echarts-wordcloud";
import AiSummary from '@/components/base/Ai/AiSummary/index.vue'
const router = useRouter(); const router = useRouter();
...@@ -881,7 +880,7 @@ onMounted(() => { ...@@ -881,7 +880,7 @@ onMounted(() => {
.box3 { .box3 {
width: 1103px; width: 1103px;
height: 545px; height: 890px;
// border: 1px solid rgba(234, 236, 238, 1); // border: 1px solid rgba(234, 236, 238, 1);
// border-radius: 10px; // border-radius: 10px;
...@@ -889,9 +888,10 @@ onMounted(() => { ...@@ -889,9 +888,10 @@ onMounted(() => {
// background: rgba(255, 255, 255, 1); // background: rgba(255, 255, 255, 1);
.box3-main { .box3-main {
width: 1058px; width: 1058px;
height: 466px; height: 830px;
margin-top: 3px; margin-top: 3px;
margin-left: 22px; margin-left: 22px;
padding-bottom: 22px;
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
<div class="main"> <div class="main">
<div class="main-header"> <div class="main-header">
<div style=" margin-top: 17px;"> <div style=" margin-top: 17px;">
智库报告原文 智库报告原文
</div> </div>
<div class="btn-box"> <div class="btn-box">
...@@ -44,38 +44,14 @@ ...@@ -44,38 +44,14 @@
</div> </div>
<div class="text">{{ "下载" }}</div> <div class="text">{{ "下载" }}</div>
</div> </div>
<div class="btn search-btn" @click="showSearchInput = !showSearchInput">
<div class="icon">
<img src="../ReportDetail/images/Line_Search.png" alt="" />
</div>
<div class="text">{{ "查找" }}</div>
</div>
<div v-if="showSearchInput" class="search-input-wrap">
<el-input
v-model="searchKeywordText"
placeholder="输入关键词查找页码"
clearable
size="small"
style="width: 200px;"
@keyup.enter="handleSearchInPdf"
/>
<el-button type="primary" size="small" @click="handleSearchInPdf">查找</el-button>
</div>
</div> </div>
</div> </div>
<div class="report-box"> <div class="report-box">
<pdf <pdf v-if="valueSwitch && reportUrlEnWithPage" ref="leftPdfRef" :pdfUrl="reportUrlEnWithPage"
v-if="valueSwitch && reportUrlEnWithPage" class="pdf-pane" />
ref="leftPdfRef" <pdf v-if="reportUrlWithPage" ref="rightPdfRef" :pdfUrl="reportUrlWithPage"
:pdfUrl="reportUrlEnWithPage" :class="['pdf-pane', { 'pdf-pane-full': !valueSwitch }]" />
class="pdf-pane"
/>
<pdf
v-if="reportUrlWithPage"
ref="rightPdfRef"
:pdfUrl="reportUrlWithPage"
:class="['pdf-pane', { 'pdf-pane-full': !valueSwitch }]"
/>
</div> </div>
</div> </div>
</div> </div>
...@@ -138,7 +114,7 @@ const handleSearchInPdf = async () => { ...@@ -138,7 +114,7 @@ const handleSearchInPdf = async () => {
try { try {
const { ElMessage } = await import('element-plus') const { ElMessage } = await import('element-plus')
ElMessage.warning('未找到包含该关键词的页面') ElMessage.warning('未找到包含该关键词的页面')
} catch (_) {} } catch (_) { }
} }
} }
...@@ -167,7 +143,7 @@ const handleDownload = async () => { ...@@ -167,7 +143,7 @@ const handleDownload = async () => {
try { try {
const { ElMessage } = await import('element-plus') const { ElMessage } = await import('element-plus')
ElMessage.warning('暂无下载链接') ElMessage.warning('暂无下载链接')
} catch (_) {} } catch (_) { }
return return
} }
const baseName = (thinkInfo.value?.name || '报告原文').replace(/[/\\?%*:|"<>]/g, '-') const baseName = (thinkInfo.value?.name || '报告原文').replace(/[/\\?%*:|"<>]/g, '-')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论