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

feat:摘要页组件替换

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